Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix(recall): max_chars stays off the starter tool list (schema budget); harness code still sets it

garrytanaf8380c7bff3
diff --git a/src/core/operation-manifest.generated.ts b/src/core/operation-manifest.generated.ts
index 791d1713d6..d81f674ea9 100644
--- a/src/core/operation-manifest.generated.ts
+++ b/src/core/operation-manifest.generated.ts
@@ -5809,7 +5809,8 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
},
"max_chars": {
"type": "integer",
- "description": "Cap on fact (then results) text, 200-12000; whole items only, truncated says if cut."
+ "description": "Cap on fact (then results) text, 200-12000; whole items only, truncated says if cut.",
+ "fullSurfaceOnly": true
}
},
"scope": "read",
diff --git a/src/core/ops/facts.ts b/src/core/ops/facts.ts
index 037a341bd4..40a165d1f4 100644
--- a/src/core/ops/facts.ts
+++ b/src/core/ops/facts.ts
@@ -310,7 +310,7 @@ const recall: Operation = {
return_unit: { type: 'string', enum: ['chunk', 'window', 'section', 'page', 'auto'], description: 'results[] unit (see search).', fullSurfaceOnly: true },
return_window: { type: 'number', description: 'Window 1-3.', fullSurfaceOnly: true },
min_trust: MIN_TRUST_PARAM,
- max_chars: { type: 'integer', description: `Cap on fact (then results) text, ${MEMORY_RECALL_MAX_CHARS.min}-${MEMORY_RECALL_MAX_CHARS.max}; whole items only, truncated says if cut.` },
+ max_chars: { type: 'integer', description: `Cap on fact (then results) text, ${MEMORY_RECALL_MAX_CHARS.min}-${MEMORY_RECALL_MAX_CHARS.max}; whole items only, truncated says if cut.`, fullSurfaceOnly: true },
},
scope: 'read',
verb: true,