# extract_tool_calls

> **Function** in `langchain_anthropic`

📖 [View in docs](https://reference.langchain.com/python/langchain-anthropic/output_parsers/extract_tool_calls)

Extract tool calls from a list of content blocks.

## Signature

```python
extract_tool_calls(
    content: str | list[str | dict],
) -> list[ToolCall]
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/ee95ad6907f5eab94644183393a20aa2a032bb19/libs/partners/anthropic/langchain_anthropic/output_parsers.py#L80)