Repro
Ask the assistant in chat:
do you have an ability that adds context to the page where you are calling this chat from?
Actual
The ReAct loop picks `wp-agentic-admin/read-file`, fails to extract a path, and the UI renders the error.
A: Could not read file: <something>
(A separate fix in 3cc2993 stops it rendering literal `undefined` — but the tool still shouldn't be called.)
Expected
Meta questions about the assistant's own capabilities ("do you have", "can you", "what abilities…", "how does this work") should be answered conversationally without invoking any ability.
Root cause (two contributing factors)
- Over-aggressive tool description. `src/extensions/abilities/read-file.js:155` says "Always use this tool for file reading requests" — that primes the LLM to grab it on weak signal.
- Broad keyword set. Same file, lines 157–172: `show`, `view`, `open`, `display`, `contents`, `source` — generic verbs that overlap with non-file intents.
Suggested fixes (pick one, ideally both)
Notes
Repro
Ask the assistant in chat:
Actual
The ReAct loop picks `wp-agentic-admin/read-file`, fails to extract a path, and the UI renders the error.
(A separate fix in 3cc2993 stops it rendering literal `undefined` — but the tool still shouldn't be called.)
Expected
Meta questions about the assistant's own capabilities ("do you have", "can you", "what abilities…", "how does this work") should be answered conversationally without invoking any ability.
Root cause (two contributing factors)
Suggested fixes (pick one, ideally both)
Notes