Skip to content

Tool Use

  • Defining tools with a name, description, and input schema
  • The round trip: model emits tool_use, your code runs it, you send back tool_result
  • Annotated JSON walkthrough