feat(tools): add per-tool result size thresholds and search_files output cap

Declares max_result_size_chars on each tool registration so the persistence
layer can apply per-tool limits instead of the global 50K default. Adds a
Layer 1 output cap inside search_tool() to prevent context overflow, and
adds a schema maximum of 10000 to the search_files limit parameter.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
alt-glitch
2026-04-02 14:20:05 +05:30
committed by Hermes Agent
parent 3dfce74099
commit 9cbfa1309b
4 changed files with 18 additions and 5 deletions

View File

@@ -1344,4 +1344,5 @@ registry.register(
enabled_tools=kw.get("enabled_tools")),
check_fn=check_sandbox_requirements,
emoji="🐍",
max_result_size_chars=30_000,
)