MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / tool_addition

Function tool_addition

tests/lib/threads/helpers.py:200–204  ·  view source on GitHub ↗
(definition: BetaToolUnionParam)

Source from the content-addressed store, hash-verified

198
199
200def tool_addition(definition: BetaToolUnionParam) -> BetaMessageParam:
201 return {
202 "role": "system",
203 "content": [{"type": "tool_addition", "tool": {"type": "tool_definition", "definition": definition}}],
204 }
205
206
207def tool_removal(name: str) -> BetaMessageParam:

Calls

no outgoing calls