> ## Documentation Index
> Fetch the complete documentation index at: https://www.adaline.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ToolCallContent

# ToolCallContent

Tool/function call request from the LLM.

```python theme={null}
from adaline_api.models.tool_call_content import ToolCallContent
```

***

## Fields

**modality** `str` *required*

Must be `"tool-call"`.

**index** `int` *required*

Zero-based index of the tool call. Minimum: 0.

**id** `str` *required*

Unique identifier for this tool call.

**name** `str` *required*

Name of the function to call.

**arguments** `str` *required*

JSON-encoded string of function arguments.

**server\_name** `str | None`

Optional MCP server name. Aliased as `serverName` in JSON.

***

## Example

```python theme={null}
import json
from adaline_api.models.tool_call_content import ToolCallContent
from adaline_api.models.message_content import MessageContent

tool_call = ToolCallContent(
    modality="tool-call",
    index=0,
    id="call_abc123",
    name="get_weather",
    arguments=json.dumps({"city": "San Francisco", "units": "fahrenheit"})
)

content = MessageContent(actual_instance=tool_call)
```

**JSON**:

```json theme={null}
{
  "modality": "tool-call",
  "index": 0,
  "id": "call_abc123",
  "name": "get_weather",
  "arguments": "{\"city\":\"San Francisco\",\"units\":\"fahrenheit\"}"
}
```

***

## Related

* [ToolResponseContent](https://www.adaline.ai/docs/reference/sdk/v2/python/types/ToolResponseContent.md) — the corresponding tool response
* [MessageContent](https://www.adaline.ai/docs/reference/sdk/v2/python/types/MessageContent.md) — union wrapper for all content types
* [PromptMessage](https://www.adaline.ai/docs/reference/sdk/v2/python/types/PromptMessage.md) — chat message containing content arrays


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.