Skip to main content

Minimal request

cURL example

Python example

Node.js example

Best practices

  • Send tool results back as tool_result blocks
  • Preserve the assistant blocks returned before the tool call
  • Clear tool descriptions improve parameter stability more than clever naming