# 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[str, Any]],
) -> list[ToolCall]
```

---

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