Skip to content
DOOLS

OpenAI Tool Definition Builder

Visually design function definitions for the OpenAI tool-calling API and export as JSON.

Tool Definition

Parameters

Parameter 1
Parameter 2

Tool Definition JSON

{
  "type": "function",
  "function": {
    "name": "get_weather",
    "description": "Get the current weather for a location",
    "parameters": {
      "type": "object",
      "properties": {
        "location": {
          "type": "string",
          "description": "The city and state, e.g. San Francisco, CA"
        },
        "unit": {
          "type": "string",
          "description": "Temperature unit",
          "enum": [
            "celsius",
            "fahrenheit"
          ]
        }
      },
      "required": [
        "location"
      ]
    }
  }
}
Lines: 27Characters: 573