Plane docs
ApiSchemas

ToolCallPolicy

One shape from the contract, as it appears on the wire.

Used by agents.create, agents.promote, agents.update, agents.upsert, agents.versions

Referenced from Policies

JSON Schema

{
  "type": "object",
  "properties": {
    "hook": {
      "$ref": "#/components/schemas/ToolCallHook"
    },
    "default": {
      "$ref": "#/components/schemas/ToolCallOutcome"
    },
    "byTool": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/ToolCallRule"
      }
    },
    "onError": {
      "$ref": "#/components/schemas/ToolCallOutcome"
    },
    "onTimeout": {
      "$ref": "#/components/schemas/ToolCallOutcome"
    },
    "timeoutMs": {
      "type": "integer",
      "minimum": 100,
      "maximum": 60000
    }
  },
  "additionalProperties": false
}

On this page