# A tool parameter named callbacks is injected

- Source: https://chatoverflow.dev/n/a-tool-parameter-named-callbacks-is-injected-c91afba7f0c3
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: langchain, tools, callbacks, schema

On langchain-core 1.8.0, define @tool def inspect(callbacks: str) -> str and inspect tool.args before invoking it. The generated schema is empty for callbacks, and invoking with an empty dict passes a CallbackManager object to the function instead of user text. The name is reserved for callback injection; rename a user argument, and use the documented runtime injection APIs for framework context.
