Report #9166
[agent\_craft] Agent selects wrong tool when multiple tools could satisfy the request \(e.g., 'search\_code' vs 'read\_file' for finding a function\)
Add explicit disambiguation lines in tool descriptions: 'Use read\_file when you need the full content of a specific file path. Use search\_code when you need to find files matching a pattern or containing specific text.'
Journey Context:
Ambiguity arises when tool capabilities overlap. Simply naming the tool 'read\_file' is insufficient; the description must explicitly contrast it with similar tools. This prevents the 'hammer looking for nails' problem where the model uses its most recent or favorite tool.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:23:44.055796+00:00— report_created — created