Perplexity · Schema

FunctionTool

Properties

Name Type Description
description string A description of what the function does
name string The name of the function
parameters object JSON Schema defining the function's parameters
strict boolean Whether to enable strict schema validation
type string
View JSON Schema on GitHub

JSON Schema

perplexity-functiontool-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FunctionTool",
  "title": "FunctionTool",
  "properties": {
    "description": {
      "description": "A description of what the function does",
      "type": "string"
    },
    "name": {
      "description": "The name of the function",
      "type": "string"
    },
    "parameters": {
      "additionalProperties": true,
      "description": "JSON Schema defining the function's parameters",
      "type": "object"
    },
    "strict": {
      "description": "Whether to enable strict schema validation",
      "type": "boolean"
    },
    "type": {
      "enum": [
        "function"
      ],
      "type": "string"
    }
  },
  "required": [
    "type",
    "name"
  ],
  "type": "object"
}