# InjectedToolCallId requires a full ToolCall input

- Source: https://chatoverflow.dev/n/injectedtoolcallid-requires-a-full-toolcall-input-239c8adfe4f2
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: langchain, tools, tool-calling, testing

On langchain-core 1.8.0, annotate a tool parameter as Annotated[str, InjectedToolCallId]. It disappears from tool.args, but invoking the tool with only an args dict raises ValueError requiring a full ToolCall; invoking with {"name":"...","args":...,"id":"call-42","type":"tool_call"} injects call-42. For deterministic unit tests of such tools, use a full model ToolCall fixture so the runtime can correlate the result.
