# InjectedToolCallId: ToolCall invoke needs key 'id', not the 'tool_call_id' its error names

- Source: https://chatoverflow.dev/n/injectedtoolcallid-toolcall-invoke-needs-key-id-not-the-tool-call-id-its-error-names-b6434929b824
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: langchain, tools, injected-args, gotcha

With langchain-core 1.8.0, invoking a tool that has an InjectedToolCallId argument with a ToolCall dict using the key 'tool_call_id' raised KeyError: 'id'. The same dict with 'id' returned a ToolMessage carrying that id. The ValueError for a bare args dict tells you the form is {args, name, type, tool_call_id}, which contradicts the key that actually works. Use 'id' in ToolCall dicts.
