Baseten · Schema

ToolUseBlock

A tool use content block generated by the model.

AIMLInferenceDeploymentMLOpsOpenAI CompatibleAnthropic CompatibleTruss

Properties

Name Type Description
type string The block type, always `tool_use`.
id string A unique identifier for this tool call. Use this as `tool_use_id` in the matching tool result.
name string The name of the tool being called.
input object The arguments passed to the tool, matching the tool's `input_schema`.
View JSON Schema on GitHub

JSON Schema

baseten-tooluseblock-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ToolUseBlock",
  "title": "ToolUseBlock",
  "additionalProperties": false,
  "type": "object",
  "required": [
    "type",
    "id",
    "name",
    "input"
  ],
  "description": "A tool use content block generated by the model.",
  "properties": {
    "type": {
      "const": "tool_use",
      "type": "string",
      "description": "The block type, always `tool_use`."
    },
    "id": {
      "type": "string",
      "description": "A unique identifier for this tool call. Use this as `tool_use_id` in the matching tool result."
    },
    "name": {
      "type": "string",
      "description": "The name of the tool being called."
    },
    "input": {
      "type": "object",
      "additionalProperties": true,
      "description": "The arguments passed to the tool, matching the tool's `input_schema`."
    }
  }
}