Skip to content

tool.execute.before: output.args mutations not propagated to tool execution #26910

Closed as not planned

Description

@gretel

Summary

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

  1. Register a tool.execute.before hook
  2. In the hook, mutate output.args — e.g. set output.args.model = { providerID: "X", modelID: "Y" }
  3. Observe: the hook can read back the mutation, and side-effects (toasts, logs) work fine
  4. 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

  1. github-actions commented on May 11, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Please review those issues and consider closing this one if it is already covered.

  2. github-actions commented on Jul 11, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions