You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tool.execute.before: output.args mutations not propagated to tool execution #26910
Mutating output.args in a tool.execute.before hook does not affect the tool's actual behavior. The mutation is visible to the plugin code (can read back what was set), but the tool ignores the modified values.
Steps to reproduce
Register a tool.execute.before hook
In the hook, mutate output.args — e.g. set output.args.model = { providerID: "X", modelID: "Y" }
Observe: the hook can read back the mutation, and side-effects (toasts, logs) work fine
Check what the tool actually does — the tool ignores the mutated args and uses defaults
Expected
Mutations to output.args in tool.execute.before should propagate to the tool execution. Without this, the hook is effectively read-only — it can observe and notify, but cannot influence tool behavior.
This is a general issue, not specific to any particular field. Any plugin that needs to override tool parameters via this hook will be broken.
Activity
github-actions commentedon May 11, 2026
This issue might be a duplicate of existing issues. Please check:
output.argsmutations intool.execute.beforenot propagated to tool execution (opened just before this one)tool.execute.beforehook cannot replace/mutate tool call arguments; the wrapper ignores mutated hook outputPlease review those issues and consider closing this one if it is already covered.
github-actions commentedon Jul 11, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.