---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/anthropic_messages/exceptions/variables/E_ANTHROPIC_MESSAGES_INVALID_TOOL_CALL_ARGS.md
description: >-
  Instantiated for invalid model-emitted tool arguments and persisted as an
  error `ToolCall`.
---

# Variable: E\_ANTHROPIC\_MESSAGES\_INVALID\_TOOL\_CALL\_ARGS

```ts
const E_ANTHROPIC_MESSAGES_INVALID_TOOL_CALL_ARGS: CreatedException<
  [string, string]
>;
```

Defined in: [src/batteries/llm/anthropic\_messages/exceptions.ts:96](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/anthropic_messages/exceptions.ts#L96)

Instantiated for invalid model-emitted tool arguments and persisted as an error `ToolCall`.

## Remarks

The adapter must not throw this exception. It creates the exception, copies the message into a
tool-result payload, and persists a failed `ToolCall` so the model can self-correct on the next
iteration.
