{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "api.duvo.ai",
    "site": "duvo.ai",
    "addresses": [
      {
        "address": "107.178.248.197",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 396982,
          "name": "GOOGLE-CLOUD-PLATFORM - Google LLC",
          "prefix": "107.178.224.0/19",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "107.178.248.197"
        ],
        "first_seen": "2026-11-21T15:23:03.571Z",
        "last_seen": "2026-11-22T19:42:04.390Z",
        "checks": 2
      }
    ],
    "hosting": [
      {
        "value": "Google Cloud",
        "evidence": "Server header \"Google Frontend\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "duvo-public-api",
      "version": "1.0.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "Google Frontend",
      "strict-transport-security": "max-age=300"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 0,
      "sample": []
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.duvoai",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/duvoai/duvo-website-2026",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "29224",
    "server_name": "io.github.duvoai/duvo",
    "url": "https://api.duvo.ai/v1/mcp",
    "host": "api.duvo.ai",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T19:42:04.390Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "24f0248fa3ebe54e83ad7e0d5e2e67ffe50a2b3f5ecadd08960800df1740d5de",
    "first_listed_at": "2026-11-21T15:23:03.571Z",
    "created_at": "2026-11-21T09:40:05.297Z",
    "resolved_addresses": [
      "107.178.248.197"
    ]
  },
  "server": {
    "name": "io.github.duvoai/duvo",
    "title": "Duvo MCP",
    "description": "Governed retail, FMCG, and CPG operational tools: runs, cases, approvals, audit-ready execution.",
    "version": "2026-05-24",
    "registry_status": "active",
    "repository_url": "https://github.com/duvoai/duvo-website-2026",
    "website_url": "https://www.duvo.ai",
    "published_at": "2026-05-24T12:28:21.690Z",
    "updated_at": "2026-05-24T12:28:21.690Z",
    "first_seen": "2026-11-21T09:40:04.781Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "runs-agents",
      "writes-files"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:45:13.183Z"
  },
  "operator": {
    "key": "duvo.ai",
    "name": "duvo.ai",
    "platform": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 1226,
    "first_check_in_window": "2026-11-21T15:23:03.571Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "24f0248fa3ebe54e83ad7e0d5e2e67ffe50a2b3f5ecadd08960800df1740d5de",
    "tools": 393,
    "resources": 16,
    "prompts": 0,
    "first_seen": "2026-11-21T15:23:04.856Z",
    "tool_names": [
      "listAgentMemoryFiles",
      "getAgentMemoryFile",
      "listPluginCatalog",
      "createSchedule",
      "updateSchedule",
      "deleteSchedule",
      "getTeam",
      "startNativeOAuth",
      "authorizeMcpOAuth",
      "checkMcpOAuth",
      "listPulseDashboards",
      "createPulseDashboard",
      "getPulseDashboard",
      "getPulseDashboardHtml",
      "getPulseDashboardPdf",
      "exportPulseDashboardHtml",
      "updatePulseDashboard",
      "publishPulseDashboard",
      "deletePulseDashboard",
      "duplicatePulseDashboard",
      "sendPulseDashboardMessage",
      "createPulseDashboardAttachmentUploadUrl",
      "getPulseDashboardAttachmentDownloadUrl",
      "refreshPulseDashboard",
      "stopPulseDashboardMessage",
      "listPulseDashboardConnections",
      "attachPulseDashboardConnection",
      "detachPulseDashboardConnection",
      "answerPulseDashboardQuestion",
      "listPulseDashboardMessages",
      "listPulseDashboardComments",
      "createPulseDashboardComment",
      "createPulseDashboardCommentReply",
      "setPulseDashboardCommentResolution",
      "deletePulseDashboardComment",
      "listPulseDashboardVersions",
      "getPulseDashboardVersionHtml",
      "restorePulseDashboardVersion",
      "createSandbox",
      "createSandboxUploadUrl",
      "listSandboxFiles",
      "uploadSandboxFile",
      "getRunEvaluation",
      "getEvalScores",
      "getEvalRubrics",
      "createEvalRubric",
      "replaceEvalRubrics",
      "updateEvalRubric",
      "deleteEvalRubric",
      "listAgentSchedules",
      "listAllAgentSchedules",
      "listAgentCaseTriggers",
      "previewAgentCaseTriggerConflicts",
      "getAgentCaseTrigger",
      "createAgentCaseTrigger",
      "updateAgentCaseTrigger",
      "deleteAgentCaseTrigger",
      "listAgentTriggers",
      "upsertAgentTrigger",
      "deleteAgentTrigger",
      "listAgentTriggerTypes",
      "createAgentSlackTrigger",
      "listAgentSlackTriggers",
      "updateSlackTrigger",
      "listAgentSlackBoundWorkspaces",
      "deleteSlackTrigger",
      "acceptRevisionGeneration",
      "generateRevision",
      "promoteRevision",
      "resumeBuilderRun",
      "cancelBuilderRun",
      "createRevision",
      "declineRevisionGeneration",
      "getRevision",
      "getBuilderRun",
      "getRevisionBody",
      "listAgentRevisions",
      "updateRevision",
      "uploadCodeStepFile",
      "duplicateAgent",
      "getAgent",
      "updateAgent",
      "deleteAgent",
      "moveAgent",
      "getAutomation",
      "updateAutomation",
      "generateAutomationProcessMap",
      "generateAutomationProposal",
      "approveAutomationProposal",
      "getAutomationTabs",
      "updateAutomationTabs",
      "deleteAutomation",
      "duplicateAutomation",
      "getAutomationCurrent",
      "getAutomationCurrentFlow",
      "getAutomationReadiness",
      "readAutomationDashboardData",
      "listProcessRoles",
      "assignProcessMember",
      "addAutomationAgent"
    ],
    "declared": {
      "tools": [
        {
          "name": "listAgentMemoryFiles",
          "title": "List Agent Memory Files",
          "description": "List the memory files stored for an agent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Agent Memory Files",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getAgentMemoryFile",
          "title": "Get Agent Memory File",
          "description": "Get the contents of a single memory file for an agent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "path"
            ],
            "properties": {
              "path": {
                "type": "string",
                "minLength": 1,
                "description": "Relative path to the memory file, e.g. notes.md or context/customer.md"
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Get Agent Memory File",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listPluginCatalog",
          "title": "List Plugin Catalog",
          "description": "List plugins that can be referenced by name in a build's plugins array. Builds may also reference any public GitHub repository URL (https://github.com/owner/repo) as a plugin; those are not enumerated here.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "List Plugin Catalog",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "createSchedule",
          "title": "Create Schedule",
          "description": "Create a schedule for an agent. The schedule fires against the agent's live build. The authenticated user owns the schedule. On a team with revisions, a repeating schedule for an Agent in an automation joins that automation's revisions: one matching a schedule the automation already runs fires at once, and a new one is saved to the automation's draft and fires once the draft is made active (see `pending_change`).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "enabled",
              "frequency",
              "timezone"
            ],
            "properties": {
              "day": {
                "anyOf": [
                  {
                    "enum": [
                      "monday",
                      "tuesday",
                      "wednesday",
                      "thursday",
                      "friday",
                      "saturday",
                      "sunday"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "cron": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "time": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "enabled": {
                "type": "boolean"
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "timezone": {
                "type": "string"
              },
              "frequency": {
                "enum": [
                  "every_5_minutes",
                  "every_15_minutes",
                  "hourly",
                  "daily",
                  "workday",
                  "weekly",
                  "monthly",
                  "custom"
                ],
                "type": "string"
              },
              "recurring": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "day_of_month": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 31,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "annotations": {
            "title": "Create Schedule",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "updateSchedule",
          "title": "Update Schedule",
          "description": "Update fields on an existing schedule. Only supplied fields are changed; omitted fields retain their current values. Owners may update their own schedules; team superadmins may update any schedule on agents in the current team. A schedule that belongs to an automation with revisions keeps firing as its automation's active revision says: a change to its timing is saved to the automation's draft and takes effect when the draft is made active (see `pending_change`), while `enabled` applies at once.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "schedule_id"
            ],
            "properties": {
              "day": {
                "anyOf": [
                  {
                    "enum": [
                      "monday",
                      "tuesday",
                      "wednesday",
                      "thursday",
                      "friday",
                      "saturday",
                      "sunday"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "cron": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "time": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "enabled": {
                "type": "boolean"
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "timezone": {
                "type": "string"
              },
              "frequency": {
                "enum": [
                  "every_5_minutes",
                  "every_15_minutes",
                  "hourly",
                  "daily",
                  "workday",
                  "weekly",
                  "monthly",
                  "custom"
                ],
                "type": "string"
              },
              "recurring": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "schedule_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The schedule's unique identifier"
              },
              "day_of_month": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 31,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "annotations": {
            "title": "Update Schedule",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteSchedule",
          "title": "Delete Schedule",
          "description": "Delete a schedule. Owners may delete their own schedules; team superadmins may delete any schedule on agents in the current team. Deleting a schedule that belongs to an automation with revisions stops it for its owner at once; the automation's revisions keep the schedule for anyone else subscribed to it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "schedule_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "schedule_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The schedule's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Delete Schedule",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "getTeam",
          "title": "Get Team",
          "description": "Get a team by ID. The caller must be scoped to the requested team.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "team_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Duvo team UUID to operate on. API keys are pinned to a single team — omit this (it falls back to the key's team) or pass that same team; a different team is rejected. OAuth callers, who can span multiple teams, should pass the target team here."
              }
            }
          },
          "annotations": {
            "title": "Get Team",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "startNativeOAuth",
          "title": "Start Native OAuth",
          "description": "Start an OAuth-based connection with a native provider (Gmail, Google Sheets, Outlook, etc.). The provider path parameter is the native OAuth provider key from listIntegrations, not the integration type. Returns an authorization URL that must be opened in a browser by a human end-user; once they grant consent, Duvo creates the matching connection and redirects the browser to the optional `return_url` (or the Duvo dashboard if none is provided). Poll `/v2/teams/:team_id/connections` to detect the new connection.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "provider"
            ],
            "properties": {
              "team_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Duvo team UUID to operate on. API keys are pinned to a single team — omit this (it falls back to the key's team) or pass that same team; a different team is rejected. OAuth callers, who can span multiple teams, should pass the target team here."
              },
              "provider": {
                "type": "string",
                "description": "Native OAuth provider key, not the integration type. Use oauth_provider_key from listIntegrations (for example, google_gmail for integration type gmail, google_sheets for googlesheets, or microsoft_outlook for outlook); passing an integration type returns 404 \"Unknown OAuth provider\"."
              },
              "return_url": {
                "type": "string",
                "description": "Where to send the user's browser after OAuth completes."
              },
              "reconnect_instance_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "When set, the OAuth flow will update the existing connection in place rather than creating a new one."
              }
            }
          },
          "annotations": {
            "title": "Start Native OAuth",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "authorizeMcpOAuth",
          "title": "Authorize Mcp OAuth",
          "description": "Start an OAuth-based connection with a remote MCP server. Returns an authorization URL the user must open in a browser; once they grant consent, Duvo creates the matching connection and redirects the browser to the optional `return_url`. A new connection to a custom MCP server needs `custom_integration_id` (register the server first with `POST /v2/teams/:team_id/integrations/custom`) and is refused with 400 without it; a catalog integration such as NetSuite or Asana takes `integration_type` instead.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "mcp_server_url",
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "description": "Human-readable name to display for the connection."
              },
              "team_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Duvo team UUID to operate on. API keys are pinned to a single team — omit this (it falls back to the key's team) or pass that same team; a different team is rejected. OAuth callers, who can span multiple teams, should pass the target team here."
              },
              "return_url": {
                "type": "string",
                "description": "Where to send the user's browser after consent completes. Accepts an absolute URL on a domain Duvo allows, or a path relative to the Duvo frontend (e.g. `/integrations/slack`)."
              },
              "mcp_server_url": {
                "type": "string",
                "format": "uri",
                "description": "URL of the MCP server requiring OAuth."
              },
              "oauth_client_id": {
                "type": "string",
                "minLength": 1,
                "description": "OAuth client ID of a client the user registered on the authorization server themselves (e.g. a NetSuite Integration record). Takes precedence over preregistered credentials and Dynamic Client Registration. Cannot be combined with custom_integration_id: for a custom MCP server, put the client credentials on the custom integration instead (oauth_client_id and oauth_client_secret on POST /teams/{teamId}/integrations/custom). For a new connection this applies to catalog integrations such as NetSuite. On reconnect, omit to reuse the connection's stored credentials, or provide to replace (rotate) them."
              },
              "integration_type": {
                "type": "string",
                "description": "Optional catalog integration type (e.g. `netsuite`, `asana`). When it names a known MCP OAuth catalog integration and `mcp_server_url` matches that integration's registered server, the connection is treated as a catalog connection; otherwise it requires the custom MCP servers capability."
              },
              "oauth_client_secret": {
                "type": "string",
                "minLength": 1,
                "description": "Client secret for `oauth_client_id`. Omit for public clients (PKCE-only)."
              },
              "custom_integration_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "ID of the custom integration this connection is for. Required for a new connection to a custom MCP server; omit it for a catalog integration such as NetSuite. On reconnect, pass the connection's own custom integration ID, or omit it only for a connection that has none."
              },
              "reconnect_instance_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "When set, the OAuth flow will update the existing connection in place rather than creating a new one."
              }
            }
          },
          "annotations": {
            "title": "Authorize Mcp OAuth",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "checkMcpOAuth",
          "title": "Check Mcp OAuth",
          "description": "Probe an MCP server URL to discover whether it supports OAuth Dynamic Client Registration. Returns the authorization endpoint and required scopes when supported. Useful as a precursor to `/v2/teams/:team_id/connections/oauth/mcp/start` or `/v2/teams/:team_id/connections`. Performs no writes.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "mcp_server_url"
            ],
            "properties": {
              "mcp_server_url": {
                "type": "string",
                "format": "uri",
                "description": "URL of the MCP server to probe for OAuth support."
              }
            }
          },
          "annotations": {
            "title": "Check Mcp OAuth",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listPulseDashboards",
          "title": "List Pulse Dashboards",
          "description": "List your Duvo Pulse dashboards (live, agent-generated visualizations of your Duvo data). Ordered most recently updated first, except scope=automation, which is ordered by creation time (then id) so the whole scope can be read with the after_id cursor without a concurrent change shifting a page boundary.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 20,
                "maximum": 100,
                "minimum": 1,
                "description": "Number of results per page (1-100, default 20)"
              },
              "scope": {
                "enum": [
                  "created",
                  "shared",
                  "team",
                  "automation"
                ],
                "type": "string",
                "default": "created",
                "description": "Which dashboards to return: 'created' (yours, the default), 'team' (published to your whole team by a teammate), 'shared' (shared with you individually by a teammate), or 'automation' (owned by one of your team's automations, each carrying its automation's name)."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Number of results to skip"
              },
              "after_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Keyset cursor for reading the whole 'automation' scope: the id of the last dashboard you received; returns the page after it in (created_at, id) order. Use this instead of 'offset' when reading every page, so a dashboard created, updated or deleted between requests cannot shift a page boundary you have already passed. 400 when the id no longer names a dashboard (restart from the first page). Only valid with scope=automation."
              }
            }
          },
          "annotations": {
            "title": "List Pulse Dashboards",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "createPulseDashboard",
          "title": "Create Pulse Dashboard",
          "description": "Create a new Duvo Pulse dashboard from a natural-language prompt (e.g. 'open cases by queue this week') and dispatch the first generation turn. Generation is asynchronous — poll GET /artifacts/{artifactId} until status is completed. The dashboard is private to you unless you set visibility to 'team', which shares it with your whole team straight away — with permission 'view' (teammates see the dashboard) or 'edit' (teammates can also iterate on it).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "message"
            ],
            "properties": {
              "message": {
                "type": "string",
                "maxLength": 15000,
                "minLength": 1
              },
              "permission": {
                "enum": [
                  "view",
                  "edit"
                ],
                "type": "string"
              },
              "visibility": {
                "enum": [
                  "private",
                  "team"
                ],
                "type": "string"
              },
              "connection_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "maxItems": 10
              }
            }
          },
          "annotations": {
            "title": "Create Pulse Dashboard",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "getPulseDashboard",
          "title": "Get Pulse Dashboard",
          "description": "Get a Duvo Pulse dashboard's metadata and generation status. When status is completed and html_code_present is true, fetch the rendered HTML from GET /artifacts/{artifactId}/render; the conversation is served by GET /artifacts/{artifactId}/messages.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Get Pulse Dashboard",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getPulseDashboardHtml",
          "title": "Get Pulse Dashboard Html",
          "description": "Serve a Duvo Pulse dashboard's rendered HTML document (text/html, not JSON). 404 until the first generation turn has produced HTML.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Get Pulse Dashboard Html",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getPulseDashboardPdf",
          "title": "Get Pulse Dashboard Pdf",
          "description": "Render a Duvo Pulse dashboard to a PDF document (application/pdf, not JSON). 404 until the first generation turn has produced HTML; 409 for an openui dashboard, whose substrate this exporter cannot render.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId"
            ],
            "properties": {
              "theme": {
                "enum": [
                  "light",
                  "dark"
                ],
                "type": "string",
                "default": "light"
              },
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Get Pulse Dashboard Pdf",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "exportPulseDashboardHtml",
          "title": "Export Pulse Dashboard Html",
          "description": "Render a Duvo Pulse dashboard to a self-contained static HTML snapshot (text/html, data baked in). 404 until the first generation turn has produced HTML; 409 for an openui dashboard, whose substrate this exporter cannot render.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId"
            ],
            "properties": {
              "theme": {
                "enum": [
                  "light",
                  "dark"
                ],
                "type": "string",
                "default": "light"
              },
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Export Pulse Dashboard Html",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updatePulseDashboard",
          "title": "Update Pulse Dashboard",
          "description": "Update a Duvo Pulse dashboard's settings — rename it. Only the creator can update it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "title"
            ],
            "properties": {
              "title": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Update Pulse Dashboard",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "publishPulseDashboard",
          "title": "Publish Pulse Dashboard",
          "description": "Publish (share) a Duvo Pulse dashboard to your whole team or your whole organization, or revert it to private (creator only). When publishing, set permission to 'view' (teammates see the dashboard) or 'edit' (teammates can also iterate on it); organization-wide viewers outside the team always get view-only access.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "visibility"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "permission": {
                "enum": [
                  "view",
                  "edit"
                ],
                "type": "string"
              },
              "visibility": {
                "enum": [
                  "private",
                  "team",
                  "organization"
                ],
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "Publish Pulse Dashboard",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "deletePulseDashboard",
          "title": "Delete Pulse Dashboard",
          "description": "Delete a Duvo Pulse dashboard. Only the creator can delete it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Delete Pulse Dashboard",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "duplicatePulseDashboard",
          "title": "Duplicate Pulse Dashboard",
          "description": "Duplicate a Duvo Pulse dashboard, producing an idle clone of the current rendered dashboard. The conversation history, shares, and connections are not copied.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Duplicate Pulse Dashboard",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "sendPulseDashboardMessage",
          "title": "Send Pulse Dashboard Message",
          "description": "Send an instruction to iterate on a Duvo Pulse dashboard (e.g. 'make it a bar chart', 'filter to last 14 days'). The creator can always iterate; teammates can too when the Pulse is published to the team with edit access. The agent regenerates asynchronously — poll GET /artifacts/{artifactId} for status.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "message"
            ],
            "properties": {
              "message": {
                "type": "string",
                "maxLength": 15000,
                "minLength": 1
              },
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "attachments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "attachment_id"
                  ],
                  "properties": {
                    "attachment_id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "An attachment_id returned by upload-urls"
                    }
                  }
                },
                "maxItems": 5,
                "description": "Attachments to hand the agent, uploaded beforehand via the upload-urls endpoint (max 5)"
              },
              "from_revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "selected_element": {
                "type": "object",
                "required": [
                  "selector",
                  "label",
                  "tag_name",
                  "outer_html"
                ],
                "properties": {
                  "text": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "label": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1
                  },
                  "point": {
                    "type": "object",
                    "required": [
                      "x_ratio",
                      "y_ratio"
                    ],
                    "properties": {
                      "x_ratio": {
                        "type": "number",
                        "maximum": 1,
                        "minimum": 0
                      },
                      "y_ratio": {
                        "type": "number",
                        "maximum": 1,
                        "minimum": 0
                      }
                    }
                  },
                  "selector": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 1
                  },
                  "tag_name": {
                    "type": "string",
                    "maxLength": 50,
                    "minLength": 1
                  },
                  "outer_html": {
                    "type": "string",
                    "maxLength": 4000,
                    "minLength": 1
                  },
                  "openui_node": {
                    "type": "object",
                    "required": [
                      "statement",
                      "component"
                    ],
                    "properties": {
                      "source": {
                        "type": "string",
                        "maxLength": 2000
                      },
                      "component": {
                        "type": "string",
                        "maxLength": 100,
                        "minLength": 1
                      },
                      "statement": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      }
                    }
                  }
                }
              }
            }
          },
          "annotations": {
            "title": "Send Pulse Dashboard Message",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "createPulseDashboardAttachmentUploadUrl",
          "title": "Create Pulse Dashboard Attachment Upload Url",
          "description": "Issue a presigned upload URL for a file to attach to a Duvo Pulse dashboard message (e.g. an HTML dashboard to copy, or a screenshot to match). POST the file bytes to the returned upload_url as multipart form data under the field name 'file', then pass the returned attachment_id in the attachments array of POST /artifacts/{artifactId}/messages. The agent reads the file directly from its sandbox. Files live as long as the dashboard's sandbox (about 12 hours), so upload shortly before sending.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "filename",
              "mime_type",
              "size_bytes"
            ],
            "properties": {
              "filename": {
                "type": "string",
                "maxLength": 255,
                "minLength": 1,
                "description": "Name of the file being attached, without any path segments"
              },
              "mime_type": {
                "type": "string",
                "maxLength": 127,
                "minLength": 1,
                "description": "MIME type of the file, e.g. text/html or image/png"
              },
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "size_bytes": {
                "type": "integer",
                "maximum": 26214400,
                "minimum": 0,
                "description": "Size of the file in bytes (max 25MB)"
              }
            }
          },
          "annotations": {
            "title": "Create Pulse Dashboard Attachment Upload Url",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "getPulseDashboardAttachmentDownloadUrl",
          "title": "Get Pulse Dashboard Attachment Download Url",
          "description": "Mint a short-lived presigned URL to download or preview a file attached to a Duvo Pulse dashboard message. Returns 410 with code `sandbox_expired` once data retention deleted the dashboard's sandbox, and 404 when the file is otherwise gone.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "attachmentId"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "attachmentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The attachment to mint a download URL for"
              }
            }
          },
          "annotations": {
            "title": "Get Pulse Dashboard Attachment Download Url",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "refreshPulseDashboard",
          "title": "Refresh Pulse Dashboard",
          "description": "Trigger an on-demand data refresh of a Duvo Pulse dashboard. The dashboard regenerates its connection-sourced values in the background — poll GET /artifacts/{artifactId} for status.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Refresh Pulse Dashboard",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "stopPulseDashboardMessage",
          "title": "Stop Pulse Dashboard Message",
          "description": "Stop an in-flight Duvo Pulse generation turn. Requires edit access to the dashboard. Flips the dashboard to 'interrupted' and keeps any streamed-so-far reply; stopping when nothing is generating is a successful no-op.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "partial_text": {
                "type": "string",
                "description": "The assistant text streamed so far, kept in the conversation as the partial reply. Omit when calling from an API client without streaming state."
              }
            }
          },
          "annotations": {
            "title": "Stop Pulse Dashboard Message",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "listPulseDashboardConnections",
          "title": "List Pulse Dashboard Connections",
          "description": "List the connections (data sources) attached to a Duvo Pulse dashboard (requires edit access).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "List Pulse Dashboard Connections",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "attachPulseDashboardConnection",
          "title": "Attach Pulse Dashboard Connection",
          "description": "Attach one of your connections (data sources) to a Duvo Pulse dashboard so the agent can use its tools (requires edit access).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "connection_id"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "connection_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Attach Pulse Dashboard Connection",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "detachPulseDashboardConnection",
          "title": "Detach Pulse Dashboard Connection",
          "description": "Detach a connection (data source) from a Duvo Pulse dashboard (requires edit access).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "connectionId"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "connectionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Detach Pulse Dashboard Connection",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "answerPulseDashboardQuestion",
          "title": "Answer Pulse Dashboard Question",
          "description": "Answer a pending question the Duvo Pulse agent asked and resume the paused run (creator or team editors). Use the toolCallId from the dashboard's message transcript.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "toolCallId",
              "answers"
            ],
            "properties": {
              "answers": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "toolCallId": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          "annotations": {
            "title": "Answer Pulse Dashboard Question",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listPulseDashboardMessages",
          "title": "List Pulse Dashboard Messages",
          "description": "List the chat transcript of a Duvo Pulse dashboard's live version (requires edit access). Returns the most recent page by default, oldest first within the page; pass `before` (a message id from a previous page) to walk back through older messages. Messages from other version branches are not included.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 500,
                "description": "Maximum number of messages to return (1-500, default 50).",
                "exclusiveMinimum": 0
              },
              "before": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Message id cursor: return the page of messages immediately older than this message. Omit for the most recent page."
              },
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "List Pulse Dashboard Messages",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listPulseDashboardComments",
          "title": "List Pulse Dashboard Comments",
          "description": "List the comment threads on a Duvo Pulse dashboard (requires view access). Each thread carries its author, the dashboard element it is pinned to, its replies oldest-first, and whether it has been marked complete.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 200,
                "description": "Maximum number of comment threads to return (1-200, default 50).",
                "exclusiveMinimum": 0
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Number of comment threads to skip, for paging."
              },
              "status": {
                "enum": [
                  "open",
                  "complete"
                ],
                "type": "string",
                "description": "Return only threads in this state: `open` for threads not yet marked complete, `complete` for those that are. Omit for both. `total` and `open_total` always count the whole set, so a filtered page still reports how many threads exist."
              },
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "List Pulse Dashboard Comments",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "createPulseDashboardComment",
          "title": "Create Pulse Dashboard Comment",
          "description": "Start a comment thread on a Duvo Pulse dashboard (requires view access). Pass `element` — captured from the dashboard canvas — to pin the thread to one element; omit it for a comment on the dashboard as a whole.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "body"
            ],
            "properties": {
              "body": {
                "type": "string",
                "maxLength": 5000,
                "minLength": 1
              },
              "element": {
                "type": "object",
                "required": [
                  "selector",
                  "label",
                  "tag_name",
                  "outer_html"
                ],
                "properties": {
                  "text": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "label": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1
                  },
                  "point": {
                    "type": "object",
                    "required": [
                      "x_ratio",
                      "y_ratio"
                    ],
                    "properties": {
                      "x_ratio": {
                        "type": "number",
                        "maximum": 1,
                        "minimum": 0
                      },
                      "y_ratio": {
                        "type": "number",
                        "maximum": 1,
                        "minimum": 0
                      }
                    }
                  },
                  "selector": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 1
                  },
                  "tag_name": {
                    "type": "string",
                    "maxLength": 50,
                    "minLength": 1
                  },
                  "outer_html": {
                    "type": "string",
                    "maxLength": 4000,
                    "minLength": 1
                  },
                  "openui_node": {
                    "type": "object",
                    "required": [
                      "statement",
                      "component"
                    ],
                    "properties": {
                      "source": {
                        "type": "string",
                        "maxLength": 2000
                      },
                      "component": {
                        "type": "string",
                        "maxLength": 100,
                        "minLength": 1
                      },
                      "statement": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      }
                    }
                  }
                }
              },
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Create Pulse Dashboard Comment",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "createPulseDashboardCommentReply",
          "title": "Create Pulse Dashboard Comment Reply",
          "description": "Reply to a comment thread on a Duvo Pulse dashboard (requires view access). `commentId` must be a thread root; threads are one level deep. A thread already marked complete still accepts replies and stays complete.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "commentId",
              "body"
            ],
            "properties": {
              "body": {
                "type": "string",
                "maxLength": 5000,
                "minLength": 1
              },
              "commentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Create Pulse Dashboard Comment Reply",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "setPulseDashboardCommentResolution",
          "title": "Set Pulse Dashboard Comment Resolution",
          "description": "Mark a Duvo Pulse dashboard comment thread complete, or reopen it (requires view access). Pass the target state in `resolved`; the call is idempotent, and the response carries the thread with `resolved_at` and `resolved_by` set or cleared.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "commentId",
              "resolved"
            ],
            "properties": {
              "resolved": {
                "type": "boolean"
              },
              "commentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Set Pulse Dashboard Comment Resolution",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deletePulseDashboardComment",
          "title": "Delete Pulse Dashboard Comment",
          "description": "Delete a comment or reply on a Duvo Pulse dashboard. Allowed for the comment's author and for the dashboard's creator. Deleting a thread root keeps its replies, rendered under a deleted opening comment.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "commentId"
            ],
            "properties": {
              "commentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Delete Pulse Dashboard Comment",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listPulseDashboardVersions",
          "title": "List Pulse Dashboard Versions",
          "description": "List the version history of a Duvo Pulse dashboard, newest first (requires edit access). Use the version id with the restore and version-render endpoints.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "List Pulse Dashboard Versions",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getPulseDashboardVersionHtml",
          "title": "Get Pulse Dashboard Version Html",
          "description": "Serve a specific version's rendered HTML document for a Duvo Pulse dashboard (text/html, requires edit access).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "revisionId"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "revisionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Get Pulse Dashboard Version Html",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "restorePulseDashboardVersion",
          "title": "Restore Pulse Dashboard Version",
          "description": "Restore a previous version of a Duvo Pulse dashboard, making it live again (requires edit access). Non-destructive — it moves the head pointer to the chosen version.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "artifactId",
              "revisionId"
            ],
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "revisionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Restore Pulse Dashboard Version",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "createSandbox",
          "title": "Create Sandbox",
          "description": "Create a new sandbox for file uploads. The returned sandbox_id can be passed to POST /v2/teams/:team_id/runs to stage data for a run.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "Create Sandbox",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "createSandboxUploadUrl",
          "title": "Create Sandbox Upload Url",
          "description": "Get a presigned URL for uploading a file into a sandbox. Use for files larger than 10MB; smaller files can be uploaded directly via POST /v2/sandboxes/:sandbox_id/files.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "sandbox_id",
              "path"
            ],
            "properties": {
              "path": {
                "type": "string",
                "minLength": 1,
                "description": "Path where the file will be uploaded (e.g. /workspace/data.csv)"
              },
              "sandbox_id": {
                "type": "string",
                "minLength": 1,
                "description": "The sandbox's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Create Sandbox Upload Url",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listSandboxFiles",
          "title": "List Sandbox Files",
          "description": "List files in a sandbox directory.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "sandbox_id"
            ],
            "properties": {
              "path": {
                "type": "string",
                "default": "/workspace",
                "description": "Directory to list files from (defaults to /workspace)"
              },
              "sandbox_id": {
                "type": "string",
                "minLength": 1,
                "description": "The sandbox's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Sandbox Files",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "uploadSandboxFile",
          "title": "Upload Sandbox File",
          "description": "Upload a file directly to the sandbox. Maximum file size is 10MB. For larger files, use POST /v2/sandboxes/:sandbox_id/upload-urls.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "sandbox_id"
            ],
            "properties": {
              "sandbox_id": {
                "type": "string",
                "minLength": 1,
                "description": "The sandbox's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Upload Sandbox File",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "getRunEvaluation",
          "title": "Get Run Evaluation",
          "description": "Get the latest evaluation analysis for a specific agent run (Run).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId",
              "runId"
            ],
            "properties": {
              "runId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The run's unique identifier (Run ID)"
              },
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier (Agent ID)"
              }
            }
          },
          "annotations": {
            "title": "Get Run Evaluation",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getEvalScores",
          "title": "Get Eval Scores",
          "description": "Aggregate evaluation counts and flag distribution for an Assignment's Jobs since the given timestamp.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId",
              "since"
            ],
            "properties": {
              "scope": {
                "enum": [
                  "all",
                  "custom"
                ],
                "type": "string",
                "description": "When 'custom', only counts Jobs scored against the target revision's custom rubrics, and only `custom__*` rubric flags. Defaults to 'all' (platform + custom rubrics)."
              },
              "since": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                "description": "ISO 8601 timestamp; only Jobs evaluated after this are counted"
              },
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier (Assignment ID)"
              },
              "revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Target a specific Assignment revision instead of the live revision. Only honoured when scope='custom' — non-custom scopes aggregate across all revisions. Defaults to the live revision when omitted."
              }
            }
          },
          "annotations": {
            "title": "Get Eval Scores",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getEvalRubrics",
          "title": "Get Eval Rubrics",
          "description": "List the evaluation rubrics a Run is scored against: the platform default rubrics plus the Agent-specific rubrics for a build. Defaults to the Agent's live build; pass build_id to target the revision a specific Run ran against.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId"
            ],
            "properties": {
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier (Assignment ID)"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Return rubrics for this specific build (the revision a Run ran against). Defaults to the agent's live build when omitted."
              }
            }
          },
          "annotations": {
            "title": "Get Eval Rubrics",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "createEvalRubric",
          "title": "Create Eval Rubric",
          "description": "Add one Agent-specific evaluation rubric to a build. A build may hold at most 5 custom rubrics by default (25 on teams with the newer rubric generator enabled); this fails with 409 once the build's ceiling is reached, and the error message states it. Defaults to the Agent's live build; pass build_id to target a specific revision.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId",
              "title",
              "description"
            ],
            "properties": {
              "title": {
                "type": "string",
                "maxLength": 80,
                "minLength": 3,
                "description": "Short, human-readable Pass/Fail rubric title."
              },
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier (Assignment ID)"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Add the rubric to this build (revision). Defaults to the agent's live build when omitted."
              },
              "description": {
                "type": "string",
                "maxLength": 400,
                "minLength": 20,
                "description": "A 1-2 sentence Pass condition phrased as a question."
              },
              "selected_automation_revision_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision."
              }
            }
          },
          "annotations": {
            "title": "Create Eval Rubric",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "replaceEvalRubrics",
          "title": "Replace Eval Rubrics",
          "description": "Replace a build's entire Agent-specific evaluation rubric set in one call (at most 5 rubrics by default, 25 on teams with the newer rubric generator enabled). Existing custom rubrics are removed and the supplied list becomes the new set; pass an empty array to clear them. Defaults to the Agent's live build; pass build_id to target a specific revision.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId",
              "rubrics"
            ],
            "properties": {
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier (Assignment ID)"
              },
              "rubrics": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "title",
                    "description"
                  ],
                  "properties": {
                    "title": {
                      "type": "string",
                      "maxLength": 80,
                      "minLength": 3,
                      "description": "Short, human-readable Pass/Fail rubric title."
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 400,
                      "minLength": 20,
                      "description": "A 1-2 sentence Pass condition phrased as a question."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 25,
                "description": "The complete custom rubric set for the build. Replaces every existing custom rubric; pass an empty array to clear them."
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Replace the custom rubrics on this build (revision). Defaults to the agent's live build when omitted."
              },
              "selected_automation_revision_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision."
              }
            }
          },
          "annotations": {
            "title": "Replace Eval Rubrics",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "updateEvalRubric",
          "title": "Update Eval Rubric",
          "description": "Edit a single Agent-specific evaluation rubric's title and/or description. The edit produces a NEW rubric (with a new id and slug) so previously scored Runs stay attributed to the original criterion; the response contains the new rubric.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId",
              "rubricId"
            ],
            "properties": {
              "title": {
                "type": "string",
                "maxLength": 80,
                "minLength": 3,
                "description": "Short, human-readable Pass/Fail rubric title."
              },
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier (Assignment ID)"
              },
              "rubricId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The custom rubric's unique identifier"
              },
              "description": {
                "type": "string",
                "maxLength": 400,
                "minLength": 20,
                "description": "A 1-2 sentence Pass condition phrased as a question."
              },
              "selected_automation_revision_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision."
              }
            }
          },
          "annotations": {
            "title": "Update Eval Rubric",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteEvalRubric",
          "title": "Delete Eval Rubric",
          "description": "Remove a single Agent-specific evaluation rubric. Future Runs on the build are no longer scored against it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId",
              "rubricId"
            ],
            "properties": {
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier (Assignment ID)"
              },
              "rubricId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The custom rubric's unique identifier"
              },
              "selected_automation_revision_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision."
              }
            }
          },
          "annotations": {
            "title": "Delete Eval Rubric",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listAgentSchedules",
          "title": "List Agent Schedules",
          "description": "List the schedules you own on an agent. Returns only your own schedules, whoever you are. Callers with an elevated team role can read every member's schedules on the agent, including who created each one, via `GET /agents/{agent_id}/schedules/all`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Agent Schedules",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listAllAgentSchedules",
          "title": "List All Agent Schedules",
          "description": "List every team member's schedules on an agent, including who created each one. Requires an elevated team role; callers without one receive 403 and should use `GET /agents/{agent_id}/schedules`, which returns only the schedules they own.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List All Agent Schedules",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listAgentCaseTriggers",
          "title": "List Agent Case Triggers",
          "description": "List the case triggers configured for an agent. Each trigger automatically dispatches the agent to run cases added to a queue.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Agent Case Triggers",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "previewAgentCaseTriggerConflicts",
          "title": "Preview Agent Case Trigger Conflicts",
          "description": "Preview which other agents would conflict with this agent's case trigger if it pointed at the given queue. Does not modify the trigger.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "case_queue_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "case_queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue to check for conflicts against"
              }
            }
          },
          "annotations": {
            "title": "Preview Agent Case Trigger Conflicts",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getAgentCaseTrigger",
          "title": "Get Agent Case Trigger",
          "description": "Retrieve a single case trigger by id.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "trigger_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "trigger_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case trigger's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Get Agent Case Trigger",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "createAgentCaseTrigger",
          "title": "Create Agent Case Trigger",
          "description": "Create a case trigger for an agent. An agent may have at most one case trigger; this returns 409 if one already exists.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "case_queue_id",
              "enabled"
            ],
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Whether the trigger is active. Disabled triggers do not dispatch runs."
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "concurrency": {
                "anyOf": [
                  {
                    "type": "number",
                    "const": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Concurrency cap for the target queue. The cap is queue-wide, so this affects every Agent working the queue, not just this trigger. Only 1 (run cases one at a time) or null (reset the whole queue's cap to the platform default) can be set here; higher caps are configured per-queue via PATCH /v2/admin/case-queues/{queueId}/concurrency. Omit to leave the queue's current cap unchanged."
              },
              "case_queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Queue whose new cases should trigger this agent"
              }
            }
          },
          "annotations": {
            "title": "Create Agent Case Trigger",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "updateAgentCaseTrigger",
          "title": "Update Agent Case Trigger",
          "description": "Update fields on a case trigger. Only the trigger creator or a builder/admin can disable an enabled trigger or change its queue, and only a builder/admin can change queue concurrency.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "trigger_id"
            ],
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Whether the trigger is active. Disabled triggers do not dispatch runs."
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "trigger_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case trigger's unique identifier"
              },
              "concurrency": {
                "anyOf": [
                  {
                    "type": "number",
                    "const": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Concurrency cap for the trigger's queue. The cap is queue-wide, so this affects every Agent working the queue, not just this trigger. Only 1 (run cases one at a time) or null (reset the whole queue's cap to the platform default) can be set here; higher caps are configured per-queue via PATCH /v2/admin/case-queues/{queueId}/concurrency. Omit to leave the current value unchanged."
              },
              "case_queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Queue whose new cases should trigger this agent"
              }
            }
          },
          "annotations": {
            "title": "Update Agent Case Trigger",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteAgentCaseTrigger",
          "title": "Delete Agent Case Trigger",
          "description": "Delete a case trigger. Only the trigger creator or a builder/admin can delete it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "trigger_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "trigger_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case trigger's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Delete Agent Case Trigger",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listAgentTriggers",
          "title": "List Agent Triggers",
          "description": "List the trigger definitions the authenticated user owns on an agent (Agent in the Duvo UI). Triggers start a Run automatically when an external event fires (e.g. an email arrives or a Linear issue is created).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId"
            ],
            "properties": {
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Agent Triggers",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "upsertAgentTrigger",
          "title": "Upsert Agent Trigger",
          "description": "Create or update the authenticated user's trigger for an integration on an agent. The integration must already be connected to the agent (its OAuth connection set up in the Duvo dashboard). Set `enabled: false` to pause a trigger without deleting it. An agent holds one trigger per integration for a user, so a save with a different `trigger_type` replaces the existing one — except when that trigger is an @mention trigger, which is managed from the agent's mention setting and answers 409 (`mention_trigger_protected`) here. @mention triggers are best managed from that setting throughout: this route leaves an existing one's `filter_config` untouched, and refuses to create a `teams_mention` trigger without a `filter_config.tenantId` (400, `mention_trigger_workspace_required`) — a Slack mention trigger has no equivalent field to supply.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId",
              "integration_slug",
              "trigger_type"
            ],
            "properties": {
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "enabled": {
                "type": "boolean",
                "default": true,
                "description": "Whether the trigger is active. Defaults to true."
              },
              "trigger_type": {
                "type": "string",
                "description": "Trigger type within the integration (e.g. `email_received`). Discover valid values via the trigger types endpoint. Integrations that enumerate their trigger types (Microsoft Teams, Google Drive, Google Sheets) reject anything else with 400 (`trigger_type_unsupported`), except a save that pauses a trigger already carrying that type."
              },
              "filter_config": {
                "type": "object",
                "default": {},
                "description": "Integration-specific filter config (e.g. sender/subject filters). Shape comes from the integration's filter schema. Replaces the trigger's current config, so send the whole object — except on an @mention trigger, whose config is managed from the agent's mention setting and is left as it is.",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "integration_slug": {
                "type": "string",
                "description": "Integration slug the trigger fires for (e.g. `gmail`, `outlook`, `linear-native`, `google-drive`)."
              }
            }
          },
          "annotations": {
            "title": "Upsert Agent Trigger",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteAgentTrigger",
          "title": "Delete Agent Trigger",
          "description": "Permanently delete one of your own event triggers on an agent. The agent stops starting Runs for that event and the trigger's filter config is lost. To keep the trigger but stop it firing, upsert it with `enabled: false` instead.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId",
              "triggerId"
            ],
            "properties": {
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "triggerId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The trigger to delete"
              }
            }
          },
          "annotations": {
            "title": "Delete Agent Trigger",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listAgentTriggerTypes",
          "title": "List Agent Trigger Types",
          "description": "List the trigger types available for an agent, grouped by integration. Use the returned `integration_slug` and `trigger_type` values when creating a trigger.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId"
            ],
            "properties": {
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Agent Trigger Types",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "createAgentSlackTrigger",
          "title": "Create Slack Channel Trigger",
          "description": "Create a Slack channel trigger on an agent (Agent in the Duvo UI): the agent starts a Run whenever a matching message is posted in the channel. An agent can carry one trigger per channel, so call this once per channel. The Slack workspace must be installed for the team AND bound to the agent's live build first (see the Slack bound-workspaces endpoint) — otherwise this returns 400.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "trigger_type",
              "channel_id",
              "channel_name",
              "match_rule"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "channel_id": {
                "type": "string",
                "minLength": 1,
                "description": "Slack channel ID to watch, e.g. `C0123ABCD`."
              },
              "is_private": {
                "type": "boolean",
                "description": "Whether the channel is private. Defaults to false. Private channels require the Duvo Slack app to be invited to the channel."
              },
              "match_rule": {
                "oneOf": [
                  {
                    "type": "object",
                    "required": [
                      "kind"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "all"
                      }
                    },
                    "description": "Fire on every message posted in the channel."
                  },
                  {
                    "type": "object",
                    "required": [
                      "kind",
                      "values"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "contains"
                      },
                      "values": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 500,
                          "minLength": 1
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "description": "Case-insensitive keywords; a message fires the trigger when it contains any of them. Duplicates are deduplicated."
                      }
                    },
                    "description": "Fire only on messages containing one of the keywords."
                  }
                ],
                "description": "Which channel messages fire the trigger: `{\"kind\":\"all\"}` for every message, or `{\"kind\":\"contains\",\"values\":[\"invoice\"]}` to match keywords."
              },
              "channel_name": {
                "type": "string",
                "minLength": 1,
                "description": "Slack channel name shown in Duvo, without the leading `#`, e.g. `support-inbox`."
              },
              "trigger_type": {
                "type": "string",
                "const": "slack_channel_message",
                "description": "Trigger type. Only `slack_channel_message` (a message posted in a Slack channel) is supported here."
              },
              "slack_team_id": {
                "type": "string",
                "minLength": 1,
                "description": "Slack workspace (team) ID the channel belongs to, e.g. `T0123ABCD`. Defaults to the team's default installed workspace. Discover the workspaces an agent can use with the bound-workspaces endpoint."
              },
              "integration_instance_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Specific bound Slack connection to run the trigger off. Omit to use your own connection, or pass one returned by the bound-workspaces endpoint."
              }
            }
          },
          "annotations": {
            "title": "Create Slack Channel Trigger",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listAgentSlackTriggers",
          "title": "List Slack Channel Triggers",
          "description": "List the Slack channel triggers you own on an agent (Agent in the Duvo UI), oldest first. Each trigger's `filter_config` carries the watched `channelId`, `channelName`, Slack `workspaceId`, and `matchRule`. Capped at 100 triggers per agent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Slack Channel Triggers",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateSlackTrigger",
          "title": "Update Slack Channel Trigger",
          "description": "Update a Slack channel trigger you own — repoint it at another channel, change which messages match, or pause and resume it with `enabled`. Only the supplied fields change. Resuming a paused trigger requires the Slack connection it runs off to still be available on the agent; changing the channel resets the trigger's seen-message state.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "trigger_id"
            ],
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Set to false to pause the trigger without deleting it, or true to resume it. Resuming requires the connection the trigger uses to still be available on the agent."
              },
              "channel_id": {
                "type": "string",
                "minLength": 1,
                "description": "New Slack channel ID to watch. Omit to leave unchanged."
              },
              "is_private": {
                "type": "boolean",
                "description": "Whether the channel is private."
              },
              "match_rule": {
                "oneOf": [
                  {
                    "type": "object",
                    "required": [
                      "kind"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "all"
                      }
                    },
                    "description": "Fire on every message posted in the channel."
                  },
                  {
                    "type": "object",
                    "required": [
                      "kind",
                      "values"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "contains"
                      },
                      "values": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 500,
                          "minLength": 1
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "description": "Case-insensitive keywords; a message fires the trigger when it contains any of them. Duplicates are deduplicated."
                      }
                    },
                    "description": "Fire only on messages containing one of the keywords."
                  }
                ],
                "description": "Which channel messages fire the trigger: `{\"kind\":\"all\"}` for every message, or `{\"kind\":\"contains\",\"values\":[\"invoice\"]}` to match keywords."
              },
              "trigger_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The Slack channel trigger's unique identifier"
              },
              "channel_name": {
                "type": "string",
                "minLength": 1,
                "description": "New Slack channel name, without the leading `#`."
              }
            }
          },
          "annotations": {
            "title": "Update Slack Channel Trigger",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "listAgentSlackBoundWorkspaces",
          "title": "List Slack Workspaces Bound To An Agent",
          "description": "List the Slack workspaces bound to an agent build that you can create channel triggers for. Creating a Slack channel trigger for any other workspace is rejected, so start here to pick a valid `slack_team_id` and `integration_instance_id`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "build_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent build (revision) whose bound connections to list"
              }
            }
          },
          "annotations": {
            "title": "List Slack Workspaces Bound To An Agent",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "deleteSlackTrigger",
          "title": "Delete Slack Channel Trigger",
          "description": "Permanently delete a Slack channel trigger you own. The agent stops starting Runs for that channel. To keep the trigger but stop it firing, update it with `enabled: false` instead.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "trigger_id"
            ],
            "properties": {
              "trigger_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The Slack channel trigger's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Delete Slack Channel Trigger",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "acceptRevisionGeneration",
          "title": "Accept Revision Generation",
          "description": "Accept the reviewed generated configuration and complete the builder run. The saved draft is not activated.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "build_id",
              "builder_run_id",
              "expected_started_at"
            ],
            "properties": {
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The revision identifier."
              },
              "builder_run_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The builder run returned by generation or status, belonging to this revision."
              },
              "expected_started_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Copy started_at from the status being reviewed. Each prompt has its own builder run ID; stale review identities return 409."
              }
            }
          },
          "annotations": {
            "title": "Accept Revision Generation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "generateRevision",
          "title": "Generate Revision",
          "description": "Generate agent instructions or code into a saved draft. Poll the returned builder run, answer questions if requested, then accept or decline the reviewed checkpoint. This never activates the revision.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "build_id",
              "prompt"
            ],
            "properties": {
              "prompt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                ],
                "description": "Instructions for generating or refining this agent or code step."
              },
              "run_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Optional run ID for context"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Source revision to generate or refine."
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Optional process ID for context"
              },
              "conversation": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "source",
                    "message"
                  ],
                  "properties": {
                    "source": {
                      "enum": [
                        "ai",
                        "user"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "description": "Optional voice conversation transcript"
              },
              "draft_file_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Temporary source file for this AOP draft. It is not kept on the Agent."
              },
              "insight_index": {
                "type": "number",
                "minimum": 0,
                "description": "Optional insight index for context"
              },
              "draft_file_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "maxItems": 20,
                "description": "Temporary source files for this AOP draft, in attachment order. They are not kept on the Agent."
              },
              "previous_build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Previous build ID for sandbox reuse"
              },
              "selected_automation_revision_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision."
              }
            }
          },
          "annotations": {
            "title": "Generate Revision",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "promoteRevision",
          "title": "Promote Revision",
          "description": "Promote a draft or historic revision to the live version. Before calling, confirm with the user which agent and revision will go live and that triggers and new runs will use it. The live revision is the one used by triggers and new runs. Fails if the revision is already live, if a draft revision still has an active builder run, or with 409 if the agent's automation runs as the team and the revision sends cases to a queue that is not in a team automation.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "build_id"
            ],
            "properties": {
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The build's unique identifier"
              },
              "revision_name": {
                "type": "string",
                "maxLength": 80,
                "minLength": 1,
                "description": "Optional display name to set on the promoted revision."
              },
              "revision_description": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Optional description for the promoted revision. Pass null to clear an existing description."
              }
            }
          },
          "annotations": {
            "title": "Promote Revision",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "resumeBuilderRun",
          "title": "Resume Builder Run",
          "description": "Resume a builder run that is waiting for user input",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "builder_run_id",
              "answers"
            ],
            "properties": {
              "answers": {
                "type": "object",
                "description": "Answers keyed by the exact question text in pending_user_questions.questions.",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "builder_run_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The builder run waiting for answers."
              }
            }
          },
          "annotations": {
            "title": "Resume Builder Run",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "cancelBuilderRun",
          "title": "Cancel Builder Run",
          "description": "Cancel a running builder run and pause its sandbox",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "builder_run_id",
              "status"
            ],
            "properties": {
              "status": {
                "type": "string",
                "const": "cancelled",
                "description": "Cancel an in-progress generation; review-pending changes must be declined instead."
              },
              "builder_run_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The builder run identifier."
              }
            }
          },
          "annotations": {
            "title": "Cancel Builder Run",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "createRevision",
          "title": "Create Revision",
          "description": "Create a new revision for an existing agent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "description": "Build name"
              },
              "config": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "version",
                      "data"
                    ],
                    "properties": {
                      "data": {
                        "type": "object",
                        "required": [
                          "models",
                          "input"
                        ],
                        "properties": {
                          "files": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": [],
                            "description": "Team files that should be available to the agent, each given as the relative file path returned in the `path` field of `GET /v2/teams/{teamId}/files` (for example `report.md` or `folder/doc.md`) — not the `id` field, which is a GCS object identifier."
                          },
                          "input": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "role",
                                    "content"
                                  ],
                                  "properties": {
                                    "role": {
                                      "enum": [
                                        "system",
                                        "user",
                                        "assistant"
                                      ],
                                      "type": "string"
                                    },
                                    "type": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "const": "message"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "content": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "required": [
                                                  "type",
                                                  "text"
                                                ],
                                                "properties": {
                                                  "text": {
                                                    "type": "string"
                                                  },
                                                  "type": {
                                                    "type": "string",
                                                    "const": "input_text"
                                                  }
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "required": [
                                                  "type"
                                                ],
                                                "properties": {
                                                  "url": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "type": {
                                                    "type": "string",
                                                    "const": "input_image"
                                                  },
                                                  "detail": {
                                                    "anyOf": [
                                                      {
                                                        "enum": [
                                                          "low",
                                                          "high",
                                                          "auto"
                                                        ],
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "file_id": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  }
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "required": [
                                                  "type",
                                                  "file_id"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "input_file"
                                                  },
                                                  "file_id": {
                                                    "type": "string"
                                                  }
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              }
                            ],
                            "description": "Initial agent instructions — either a single system prompt string or a list of structured messages"
                          },
                          "models": {
                            "type": "object",
                            "required": [
                              "agent",
                              "browsing"
                            ],
                            "properties": {
                              "agent": {
                                "type": "object",
                                "required": [
                                  "model"
                                ],
                                "properties": {
                                  "model": {
                                    "enum": [
                                      "claude-haiku-5-5",
                                      "claude-haiku-5-5[1m]",
                                      "claude-sonnet-5-5",
                                      "claude-sonnet-5-5[1m]",
                                      "claude-opus-5-5",
                                      "claude-opus-5-5[1m]",
                                      "kimi-k3.1-pro",
                                      "kimi-k3.1-pro-duvo",
                                      "glm-5.3-flash",
                                      "deepseek-v4.1-flash",
                                      "deepseek-v4.1-flash-1017",
                                      "minimax-m3",
                                      "d1-max",
                                      "duvo-1-max",
                                      "duvo-1-max-sonnet-1m",
                                      "duvo-1-max-sonnet-4.5",
                                      "duvo-1-max-sonnet-4.5-1m",
                                      "duvo-1-max-opus",
                                      "duvo-1-max-opus-4.5",
                                      "gpt-4.1",
                                      "gpt-4o",
                                      "gpt-4o-mini",
                                      "gpt-5",
                                      "gpt-5.1",
                                      "claude-sonnet-4-20250514",
                                      "claude-sonnet-4-20250514[1m]",
                                      "claude-sonnet-4-5-20250929",
                                      "claude-sonnet-4-5-20250929[1m]",
                                      "claude-sonnet-4-6",
                                      "claude-sonnet-4-6[1m]",
                                      "claude-opus-4-1-20250805",
                                      "claude-opus-4-5-20251101",
                                      "claude-opus-4-6",
                                      "claude-opus-4-6[1m]",
                                      "claude-opus-4-7",
                                      "claude-opus-4-7[1m]",
                                      "claude-opus-4-8",
                                      "claude-opus-4-8[1m]",
                                      "claude-haiku-4-5-20251001",
                                      "claude-sonnet-5",
                                      "claude-sonnet-5[1m]",
                                      "claude-opus-5",
                                      "claude-opus-5[1m]",
                                      "glm-5.2",
                                      "qwen3.6-27b",
                                      "qwen3.8-max",
                                      "deepseek-v4-flash",
                                      "kimi-k3",
                                      "kimi-k3-duvo"
                                    ],
                                    "type": "string",
                                    "description": "Model identifier used for the primary agent loop (Claude, or an OSS model when the team's oss_models flag — or oss_models_public for the public subset — is enabled)",
                                    "x-extensible-enum": [
                                      "claude-haiku-5-5",
                                      "claude-haiku-5-5[1m]",
                                      "claude-sonnet-5-5",
                                      "claude-sonnet-5-5[1m]",
                                      "claude-opus-5-5",
                                      "claude-opus-5-5[1m]",
                                      "kimi-k3.1-pro",
                                      "kimi-k3.1-pro-duvo",
                                      "glm-5.3-flash",
                                      "deepseek-v4.1-flash",
                                      "deepseek-v4.1-flash-1017",
                                      "minimax-m3",
                                      "d1-max",
                                      "duvo-1-max",
                                      "duvo-1-max-sonnet-1m",
                                      "duvo-1-max-sonnet-4.5",
                                      "duvo-1-max-sonnet-4.5-1m",
                                      "duvo-1-max-opus",
                                      "duvo-1-max-opus-4.5",
                                      "gpt-4.1",
                                      "gpt-4o",
                                      "gpt-4o-mini",
                                      "gpt-5",
                                      "gpt-5.1",
                                      "claude-sonnet-4-20250514",
                                      "claude-sonnet-4-20250514[1m]",
                                      "claude-sonnet-4-5-20250929",
                                      "claude-sonnet-4-5-20250929[1m]",
                                      "claude-sonnet-4-6",
                                      "claude-sonnet-4-6[1m]",
                                      "claude-opus-4-1-20250805",
                                      "claude-opus-4-5-20251101",
                                      "claude-opus-4-6",
                                      "claude-opus-4-6[1m]",
                                      "claude-opus-4-7",
                                      "claude-opus-4-7[1m]",
                                      "claude-opus-4-8",
                                      "claude-opus-4-8[1m]",
                                      "claude-haiku-4-5-20251001",
                                      "claude-sonnet-5",
                                      "claude-sonnet-5[1m]",
                                      "claude-opus-5",
                                      "claude-opus-5[1m]",
                                      "glm-5.2",
                                      "qwen3.6-27b",
                                      "qwen3.8-max",
                                      "deepseek-v4-flash",
                                      "kimi-k3",
                                      "kimi-k3-duvo"
                                    ]
                                  }
                                },
                                "description": "Primary agent model configuration"
                              },
                              "browsing": {
                                "type": "object",
                                "required": [
                                  "provider",
                                  "model"
                                ],
                                "properties": {
                                  "model": {
                                    "enum": [
                                      "gemini-2.5-pro",
                                      "gemini-2.5-flash",
                                      "gemini-3-pro-preview",
                                      "claude-haiku-4-5",
                                      "claude-sonnet-4-5",
                                      "claude-opus-4-1"
                                    ],
                                    "type": "string",
                                    "description": "Model identifier for the browsing provider"
                                  },
                                  "provider": {
                                    "enum": [
                                      "google",
                                      "anthropic"
                                    ],
                                    "type": "string",
                                    "description": "Provider backing the browsing/computer-use model"
                                  }
                                },
                                "description": "Browsing/computer-use model configuration"
                              }
                            },
                            "description": "Model configuration for each capability the agent uses"
                          },
                          "skills": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": [],
                            "description": "IDs of skills (team or system) that should be available to the agent"
                          },
                          "options": {
                            "type": "object",
                            "properties": {
                              "supervisedMode": {
                                "type": "boolean",
                                "description": "Run the agent under Duvo's permission classifier: every tool call is classified as allow/deny/ask, with 'ask' routed to human-in-the-loop approval. Mutually exclusive with browsing and computer-use connections."
                              },
                              "browserProvider": {
                                "enum": [
                                  "browserbase",
                                  "browser-use"
                                ],
                                "type": "string",
                                "description": "Browser infrastructure provider"
                              },
                              "evaluationSchemaId": {
                                "type": "string",
                                "description": "ID of the evaluation schema to apply to runs of this agent"
                              },
                              "benchmarkExpectedOutcomes": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "description",
                                    "criteria"
                                  ],
                                  "properties": {
                                    "criteria": {
                                      "type": "string",
                                      "description": "Pass/fail criteria used to evaluate the outcome"
                                    },
                                    "description": {
                                      "type": "string",
                                      "description": "Human-readable description of the expected outcome"
                                    }
                                  }
                                },
                                "description": "Expected outcomes used when running benchmark scenarios"
                              }
                            },
                            "description": "Optional runtime options controlling how the agent executes",
                            "additionalProperties": {}
                          },
                          "plugins": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": [],
                            "description": "Plugins to load — either a built-in plugin name (e.g. \"code-review\") or a GitHub URL (e.g. \"https://github.com/owner/repo\")"
                          },
                          "subAgents": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": [],
                            "description": "Retired — Sub-Assignments was removed. Accepted for backwards compatibility and ignored."
                          }
                        },
                        "description": "Agent configuration payload"
                      },
                      "version": {
                        "type": "string",
                        "const": "v2",
                        "description": "Schema version discriminator — must be \"v2\" for the current schema"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "required": [
                      "version",
                      "data"
                    ],
                    "properties": {
                      "data": {
                        "type": "object",
                        "required": [
                          "language",
                          "source"
                        ],
                        "properties": {
                          "files": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": [],
                            "description": "Team file paths this step can read at run time"
                          },
                          "source": {
                            "oneOf": [
                              {
                                "type": "object",
                                "required": [
                                  "kind",
                                  "code"
                                ],
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "description": "Program held in the build config. Written to `main.py` and run with `python main.py`."
                                  },
                                  "kind": {
                                    "type": "string",
                                    "const": "inline"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "required": [
                                  "kind",
                                  "startCommand"
                                ],
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "files"
                                  },
                                  "bundle": {
                                    "type": "object",
                                    "required": [
                                      "bucket",
                                      "files"
                                    ],
                                    "properties": {
                                      "files": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "required": [
                                            "path",
                                            "sha256",
                                            "sizeBytes"
                                          ],
                                          "properties": {
                                            "path": {
                                              "type": "string",
                                              "minLength": 1,
                                              "description": "Path the file is materialised at, relative to the work dir"
                                            },
                                            "sha256": {
                                              "type": "string",
                                              "pattern": "^[0-9a-f]{64}$",
                                              "maxLength": 64,
                                              "minLength": 64,
                                              "description": "Digest of the file's bytes, and the key its blob is stored at"
                                            },
                                            "sizeBytes": {
                                              "type": "integer",
                                              "maximum": 131072,
                                              "minimum": 0,
                                              "description": "UTF-8 byte length of the file's contents"
                                            }
                                          }
                                        },
                                        "maxItems": 200,
                                        "description": "The program's files, one manifest entry each"
                                      },
                                      "bucket": {
                                        "type": "string",
                                        "minLength": 1,
                                        "description": "GCS bucket the bundle's blobs are stored in"
                                      }
                                    },
                                    "description": "The program's files, as a content-addressed manifest"
                                  },
                                  "startCommand": {
                                    "type": "string",
                                    "maxLength": 2000,
                                    "minLength": 1,
                                    "description": "Command run from the root of the step's file system, e.g. \"python main.py\"."
                                  }
                                }
                              }
                            ],
                            "description": "Where the step's program comes from"
                          },
                          "language": {
                            "enum": [
                              "python"
                            ],
                            "type": "string",
                            "description": "Language the step's program is written in"
                          },
                          "timeoutMs": {
                            "type": "integer",
                            "default": 600000,
                            "maximum": 3600000,
                            "description": "Wall-clock budget for one execution of the step",
                            "exclusiveMinimum": 0
                          },
                          "maxConcurrency": {
                            "type": "integer",
                            "maximum": 1000,
                            "description": "Most runs of this step that may be in flight at once on one queue, on top of the queue's own concurrency. Absent means only the queue's limit applies. Every claim enforces it; only cases handed to the step (handover, postpone, reprocess) are also kept out of the queue's free slots while the step is full. Cases a trigger or a revision route sends straight to a capped step can still take queue slots and wait there, delaying other steps on the same queue.",
                            "exclusiveMinimum": 0
                          },
                          "handoverRequired": {
                            "type": "boolean",
                            "default": false,
                            "description": "When the step declares handover options, whether a run that exits cleanly without requesting one fails. Ignored when the step declares no options."
                          }
                        },
                        "description": "Code step configuration payload"
                      },
                      "version": {
                        "type": "string",
                        "const": "v1",
                        "description": "Schema version discriminator — must be \"v1\" for the current code-step schema"
                      }
                    }
                  }
                ],
                "description": "Build configuration. An agent step takes the latest agent schema (legacy v1 agent configs are not accepted); a code step takes a code-step config. Omit it to get the step family's default first build."
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "handover_to": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The single agent or code step to run after this one completes (\"Handover to\"). Mutually exclusive with handover_target_ids."
              },
              "source_build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Build ID to copy integrations and queue links from. A numbered revision copied this way is recorded as the new build's parent."
              },
              "handover_options": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "target_agent_ids",
                      "required"
                    ],
                    "properties": {
                      "required": {
                        "type": "boolean",
                        "description": "When true, a run that exits cleanly without requesting a handover fails"
                      },
                      "target_agent_ids": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                        },
                        "minItems": 1,
                        "description": "Steps in the same automation this code step's program may request"
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Code steps only. The targets the program may request, and whether it must. Null clears them; omit to inherit the source build's. Mutually exclusive with handover_to."
              },
              "handover_target_ids": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Agent IDs that this agent can hand work off to, used exactly as sent; an empty list means none. Send null or omit it to use the agents the AOP mentions with <DUVO:AGENT> tags. Targets are never copied from the source build."
              },
              "selected_automation_revision_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision."
              }
            }
          },
          "annotations": {
            "title": "Create Revision",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "declineRevisionGeneration",
          "title": "Decline Revision Generation",
          "description": "Discard generated changes by restoring checkpoint_config and completing the builder run. The saved draft is not activated.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "build_id",
              "builder_run_id",
              "expected_started_at"
            ],
            "properties": {
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The revision identifier."
              },
              "builder_run_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The builder run returned by generation or status, belonging to this revision."
              },
              "expected_started_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Copy started_at from the status being reviewed. Each prompt has its own builder run ID; stale review identities return 409."
              }
            }
          },
          "annotations": {
            "title": "Decline Revision Generation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "getRevision",
          "title": "Get Revision",
          "description": "Get a revision by ID.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "build_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The build's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Get Revision",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getBuilderRun",
          "title": "Get Builder Run",
          "description": "Get the status of a builder run",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "builder_run_id"
            ],
            "properties": {
              "builder_run_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The builder run identifier."
              }
            }
          },
          "annotations": {
            "title": "Get Builder Run",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getRevisionBody",
          "title": "Get Revision Body",
          "description": "Read one section of a revision's config as plain text, in character ranges: the AOP (`input`) or the code-step program (`source`). Use it instead of getRevision when the text is large; listAgents with `config=light` reports each agent's `input_chars` and `source_chars`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "build_id",
              "section"
            ],
            "properties": {
              "length": {
                "type": "integer",
                "default": 40000,
                "maximum": 50000,
                "minimum": 1,
                "description": "Characters to return (1-50000, default 40000). Repeat with a higher offset until offset plus the returned length reaches total_chars."
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Character offset to start reading from (default 0)"
              },
              "section": {
                "enum": [
                  "input",
                  "source"
                ],
                "type": "string",
                "description": "`input` is an agent step's AOP text; `source` is a code step's program."
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The revision's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Get Revision Body",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listAgentRevisions",
          "title": "List Agent Revisions",
          "description": "List revisions for an agent. Pass `config=light` to leave each revision's config out of the page and get its sizes instead; read the AOP with getRevisionBody.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 20,
                "maximum": 100,
                "minimum": 1,
                "description": "Number of revisions per page (1-100, default 20)"
              },
              "config": {
                "enum": [
                  "light",
                  "full"
                ],
                "type": "string",
                "description": "`full` (default) embeds each revision's config. `light` sets `config` to null and reports its sizes, hash and models in `config_summary`; read the AOP or program text with getRevisionBody. Use `light` unless you need the instructions themselves: a page of revisions can run to millions of characters."
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Number of revisions to skip"
              },
              "status": {
                "enum": [
                  "draft",
                  "live",
                  "historic"
                ],
                "type": "string",
                "description": "Only revisions with this status. `live` returns the active revision, wherever it falls in the history."
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Agent Revisions",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateRevision",
          "title": "Update Revision",
          "description": "Update a revision's configuration, name, description, or handover targets. Returns the updated revision.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "build_id"
            ],
            "properties": {
              "config": {
                "type": "object",
                "description": "Build configuration object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The build's unique identifier"
              },
              "handoverTo": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The single agent or code step to run after this one completes (\"Handover to\"). Null clears it; omit to leave it unchanged. Mutually exclusive with @-mention handovers in the AOP."
              },
              "revision_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 80,
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Optional user-defined name for this revision. Pass null to clear."
              },
              "handoverOptions": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "targetAgentIds",
                      "required"
                    ],
                    "properties": {
                      "required": {
                        "type": "boolean",
                        "description": "When true, a run that exits cleanly without requesting a handover fails"
                      },
                      "targetAgentIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                        },
                        "minItems": 1,
                        "description": "Steps in the same automation this code step's program may request"
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Code steps only. The targets the program may request, and whether it must. Null clears them; omit to leave unchanged. Mutually exclusive with handoverTo in one request."
              },
              "handoverTargetIds": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Agent IDs that this agent can hand over work to, used exactly as sent; an empty list clears them. Send null to use the agents the AOP mentions with <DUVO:AGENT> tags. Omit it to leave the targets as they are."
              },
              "revision_description": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Optional user-defined description for this revision. Pass null to clear."
              },
              "selected_automation_revision_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision."
              }
            }
          },
          "annotations": {
            "title": "Update Revision",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "uploadCodeStepFile",
          "title": "Upload Code Step File",
          "description": "Upload one UTF-8 file of a code step's program to the content-addressed store. Put the returned sha256 and sizeBytes entry in the revision's config source.bundle manifest (using the returned bucket) via updateRevision on a draft. Uploading does not change a revision or make code live.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "content"
            ],
            "properties": {
              "content": {
                "type": "string",
                "description": "The file's contents, as UTF-8 text"
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The code step's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Upload Code Step File",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "duplicateAgent",
          "title": "Duplicate Agent",
          "description": "Duplicate an existing agent into a new agent named \"Copy of <name>\", carrying over its configuration. Use the include_* flags in the (optional) body to control what is copied; all default on except memory. Builders can duplicate agents they created; duplicating an agent somebody else created requires the Lead Builder team role or above.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The ID of the agent to duplicate"
              },
              "include_aop": {
                "type": "boolean",
                "description": "Copy the agent's operating procedure (AOP) and its handover targets. Defaults to true."
              },
              "include_queue": {
                "type": "boolean",
                "description": "Copy the assigned Queue. Defaults to true."
              },
              "include_memory": {
                "type": "boolean",
                "description": "Copy what the agent has learned so far (its Memory). Defaults to false. Memory can only be copied from the Duvo app — requesting it here returns an error."
              },
              "include_plugins": {
                "type": "boolean",
                "description": "Copy installed plugins. Defaults to true."
              },
              "include_connections": {
                "type": "boolean",
                "description": "Copy connected accounts (Connections) and their selected tools. Defaults to true."
              },
              "include_skills_files": {
                "type": "boolean",
                "description": "Copy attached Skills and Files. Defaults to true."
              },
              "include_logins_secrets": {
                "type": "boolean",
                "description": "Copy saved Logins and Secrets. Defaults to true."
              }
            }
          },
          "annotations": {
            "title": "Duplicate Agent",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "getAgent",
          "title": "Get Agent",
          "description": "Get an agent by ID. The response carries no revision config: use listAgentRevisions and getRevision for a revision, and getRevisionBody to read a large AOP in character ranges.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Get Agent",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateAgent",
          "title": "Update Agent",
          "description": "Update an agent's display name or delivery settings.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "New agent display name."
              },
              "pinned": {
                "type": "boolean",
                "description": "Pin the agent to the top of your agents list (true) or unpin it (false). Per-user — each viewer has their own pin. A team on Automations has no agents list for a pin to order, so a pin or unpin there is refused with a 409."
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              },
              "thread_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Thread id to associate with the agent, or null to clear."
              },
              "slack_enabled": {
                "type": "boolean",
                "description": "Whether the agent is reachable via Slack."
              },
              "agentic_memory_enabled": {
                "type": "boolean",
                "description": "Toggle agentic memory for the agent."
              },
              "microsoft_teams_enabled": {
                "type": "boolean",
                "description": "Whether the agent is reachable via Microsoft Teams."
              },
              "computer_use_vpn_config_id": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "direct"
                      },
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "\"direct\" to durably pin direct internet (no VPN, immune to future team-default changes), a VPN config UUID to pin that network, or null to follow the team default."
              },
              "computer_use_sandbox_template_id": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "standard"
                      },
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "\"standard\" to durably pin the standard Duvo desktop (immune to future team-default changes), a template UUID to pin that desktop, or null to follow the team default."
              }
            }
          },
          "annotations": {
            "title": "Update Agent",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteAgent",
          "title": "Delete Agent",
          "description": "Delete an agent and cascade-clean its schedules, case triggers, builder runs, and handover targets. Any active jobs are interrupted and their sandboxes paused.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Delete Agent",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "moveAgent",
          "title": "Move Agent",
          "description": "Move an agent (and its connected workspace) to a different team. Pass dry_run=true to preview the closure without applying changes.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "target_team_id"
            ],
            "properties": {
              "dry_run": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "string",
                    "const": "true"
                  },
                  {
                    "type": "string",
                    "const": "false"
                  }
                ],
                "description": "When true, preview the closure and warnings without applying any changes."
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The ID of the agent to move."
              },
              "target_team_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The ID of the team to move the agent into."
              },
              "bypass_standalone_gate": {
                "type": "boolean",
                "default": false,
                "description": "When true, move the agent together with every connected queue, trigger, and handover peer instead of rejecting a non-standalone agent. Defaults to false."
              }
            }
          },
          "annotations": {
            "title": "Move Agent",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "getAutomation",
          "title": "Get Automation",
          "description": "Get a single automation with its agent and queue counts, the tab arrangement its detail view navigates by, and `links` to each tab it has right now.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Get Automation",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateAutomation",
          "title": "Update Automation",
          "description": "Update an automation, e.g. rename it. Only the fields present in the body are changed.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "New human-readable automation name."
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Update Automation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "generateAutomationProcessMap",
          "title": "Generate Automation Process Map",
          "description": "Start the setup step Generate current process map for a Module automation being set up, the same as pressing it in the web app: Duvo writes the map of how the work runs today from the uploaded files, the interviews and the Policy. Returns 202 at once; the map takes a few minutes and appears on the setup's Current Process step (`url`). Over a map the team already has, it writes a new version. Refused with 409 while required Policy questions are open, a file or interview is still being transcribed, nothing usable is uploaded, or Duvo is already writing the map or the proposal, and with 403 unless the caller created the process or is a Lead Builder or above. Confirm with the user before calling: say it writes the map from what setup has collected. Next comes `generateAutomationProposal`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Generate Automation Process Map",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "generateAutomationProposal",
          "title": "Generate Automation Proposal",
          "description": "Approve the current process map of a Module automation being set up and start writing the automation proposal from it, the same as the setup's Approve and continue in the web app. The proposal says what Duvo automates, what stays with the team and where work hands over. Returns 202 at once; the proposal takes a few minutes and appears on the setup's Automation Proposal step (`url`). Needs the team's own live current process map (call `generateAutomationProcessMap` first) and no proposal yet; `current_process_snapshot_id`, when given, must be that live map. Refused with 409 otherwise, or while required Policy questions are open or Duvo is already writing, and with 403 unless the caller created the process or is a Lead Builder or above. Confirm with the user before calling: say that approving the map writes the proposal from it. Next comes `approveAutomationProposal`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              },
              "current_process_snapshot_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The current process map being approved. Must be the live map; leave out to approve whichever map is live."
              }
            }
          },
          "annotations": {
            "title": "Generate Automation Proposal",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "approveAutomationProposal",
          "title": "Approve Automation Proposal",
          "description": "Approve the automation proposal of a Module automation being set up, the same as the setup's Approve and build in the web app: it opens an Ask Duvo conversation that reads the proposal and the Policy, proposes which Agents, Queues and dashboards change, makes the changes once the user agrees there, and finishes the setup. Give the user the conversation's `url`; they answer Duvo's plan in it. `proposal_snapshot_id`, when given, must be the live proposal. A build already started is returned with status `already_started` rather than started twice. Refused with 409 when there is no live proposal, required Policy questions are open, or Ask Duvo isn't available to the team, and with 403 below Builder. With Automation conversion in Ask Duvo on for the team, the conversation runs the same build specification flow as Clarity's Create automation against this automation, and takes its access too: 403 unless the caller created the process, is a Lead Builder or above, or the team's Clarity access is unrestricted. Confirm with the user before calling: approving starts the build.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              },
              "proposal_snapshot_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation proposal being approved. Must be the live proposal; leave out to approve whichever proposal is live."
              }
            }
          },
          "annotations": {
            "title": "Approve Automation Proposal",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "getAutomationTabs",
          "title": "Get Automation Tabs",
          "description": "Get the automation detail view's tab arrangement, plus metadata for the Pulse dashboards pinned into it. Pinned dashboards are filtered to the ones the calling identity may see.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Get Automation Tabs",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateAutomationTabs",
          "title": "Update Automation Tabs",
          "description": "Replace the automation detail view's tab arrangement. Pinning, unpinning, reordering and hiding a tab are all expressed as a different arrangement.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "order",
              "hidden"
            ],
            "properties": {
              "order": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 200,
                  "minLength": 1
                },
                "maxItems": 50,
                "description": "Left-group tab keys in render order"
              },
              "hidden": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 200,
                  "minLength": 1
                },
                "maxItems": 50,
                "description": "Native tab keys the user removed from the bar"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Update Automation Tabs",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteAutomation",
          "title": "Delete Automation",
          "description": "Soft-delete an automation. Its member agents and queues stop dispatching and disappear from listings, but their underlying rows and run history are preserved (not erased). Runs still in progress on its agents are interrupted.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Delete Automation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "duplicateAutomation",
          "title": "Duplicate Automation",
          "description": "Duplicate an automation into a new one named \"Copy of <name>\", copying what it runs today: its live agents and builds, its queues (empty), the routing and handovers between them, and each agent's Memory when the team holds Memory and the agent has it on. The caller's own triggers and schedules are copied switched off, so the copy starts no run until they turn them on; other members' triggers and schedules are not copied. An automation built by hand also gets its Policy: sections, questions, answers, and which agents read them. Cases and run history are not copied. A Module demo, and a Module automation with Policy questions, can't be duplicated.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation to duplicate"
              }
            }
          },
          "annotations": {
            "title": "Duplicate Automation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "getAutomationCurrent",
          "title": "Get Automation Current",
          "description": "Get what the automation is set up to do right now: its member agents with the builds that are live, its queues' routing, and the triggers and schedules firing for it. The revision-less counterpart of the revision detail — an automation without revisions is read here. `links` holds a link to each tab the automation has right now.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Get Automation Current",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getAutomationCurrentFlow",
          "title": "Get Automation Current Flow",
          "description": "Get the automation's flow graph as it stands right now: the agents and queues it currently wires together, plus the producer, consumer, and handover edges between them. The revision-less counterpart of the revision flow.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Get Automation Current Flow",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getAutomationReadiness",
          "title": "Get Automation Readiness",
          "description": "What still has to be set up before an automation can run on real work. Call this first for a readiness question (\"what do I still need to set up\", \"is it ready to run\", \"why isn't it running\") and before checking an automation's Connections, Logins or Secrets one by one. Each of `items` is `{ key, label, status: ok | missing | broken, detail, link, link_tab }` and covers one of: required Policy questions still open, Connections with no working account pinned or that need reconnecting, Logins and Secrets (present or missing, never their values), Queue slots with no Queue linked, Queues with routing off, no Agent or an Agent that is not live yet, what starts it (a Trigger, a Schedule, or Cases added to a routed Queue), the active revision and a pending draft, and whether it is still a demo. While a Module is being set up and its proposal has not been approved, `items` covers only its setup: required Policy questions, the current process map (`setup:process_map`) and the automation proposal (`setup:automation_proposal`), or, when its setup progress is unavailable, one `setup` item linked to the setup's Get started page, whose approval builds the automation; Connections, Queues and what starts it are checked again once the approved proposal is being built. Lead with what is `missing` or `broken`, each with its own `link` (named by `link_tab`); never build a link. Quote counts from `summary`, including `connections_to_fix`, rather than counting items. `ready` is null when the caller can't read the Policy; `note` then says what to tell the user. A Connection only the caller can see counts for the caller. When `links_note` is present, give no link to the automation at all. Each `link` is a path in the Duvo web app; give the user the full URL beside it (`url`, and `urls` for `links`).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Get Automation Readiness",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "readAutomationDashboardData",
          "title": "Read Automation Dashboard Data",
          "description": "The figures a Module automation's Pulse dashboards show, computed server-side the same way the dashboard computes them: each tile's `label`, `value`, `unit` and `display` (the value as the dashboard prints it), with a `description` where the label alone leaves the figure unclear and a `note` for what the tile shows besides it. Call this for any number on a Module dashboard instead of reading the dashboard's HTML (`getPulseDashboardHtml` refuses Module dashboards for size) or paging through Cases: a recount can disagree with the tile the user sees. Pass `dashboard_id` for one dashboard, or leave it out for every dashboard of the automation the caller may open. `range` applies to dashboards with a time range control; the result names the range it read. Pass `time_zone` with the user's IANA zone so a day starts at their midnight, as their dashboard's do; without it days start at midnight UTC, and `range.time_zone` says which zone was used. Quote `display`, say the period it covers, and name and link the dashboard with its `link`. A dashboard whose figures are not declared, or that was changed since it was installed, comes back `unsupported`; one that could not be read comes back `error`; both carry a `hint`. Needs Queues on the team's plan. Each `link` is a path in the Duvo web app; give the user the full URL beside it (`url`).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "range": {
                "enum": [
                  "today",
                  "yesterday",
                  "week",
                  "month",
                  "ytd",
                  "all"
                ],
                "type": "string",
                "description": "today, yesterday, week, month, ytd or all, for dashboards with a time range control; leave out for the range the dashboard opens on"
              },
              "time_zone": {
                "type": "string",
                "description": "IANA zone the range's days start in, such as Europe/Prague. Pass the user's own zone so Today matches their dashboard; UTC when left out"
              },
              "dashboard_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "One of the automation's Module dashboards; leave out to read every one"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Read Automation Dashboard Data",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listProcessRoles",
          "title": "List Process Roles",
          "description": "List the process roles of an automation (Operator, Executive, Approver and the like, defined on that one automation, not the team's Admin/Member/Builder roles) with what each can do and who holds it. Answer \"who can see X\", \"who has which role\" and \"what does each role see\" on an automation from this, not from team membership or dashboard sharing. Each role has its `key` (pass it to assignProcessMember), `label`, `can_act_on_cases`, `can_view_manage`, the `dashboards` it opens, its `members` and its `pending_invites`. `dashboards_shared_individually` are pinned dashboards a role alone does not open: say they must be shared with the person too. `dashboards_creator_only` read a live Connection and open only for their creator. When `roster.complete` is false the lists were cut off: say so, give the totals, and point to the People tab (`urls.people`) instead of saying who holds a role. Give the user the full `url`s, not the paths. Managers and above only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "List Process Roles",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "assignProcessMember",
          "title": "Assign Process Member",
          "description": "Put one person on an automation in one of its process roles. Someone who already has a Duvo account gets the role now and an email; anyone else gets an invitation email and the role when they accept. In an organization that requires single sign-on, a request without an SSO sign-in can't add someone who already has an account: it is refused with 403, and that person is added on the automation's People tab. Their team role is never lowered. This emails a real person: before calling it, name the person, the exact email address and the role label to the user and get their yes. Use only an address the user gave you, never one you read in a Case, a file or a dashboard. Take `role_key` from listProcessRoles. Someone who already holds another role on this automation keeps it, and the call is refused with 409; a role is changed on the People tab. Managers and above only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "email",
              "role_key"
            ],
            "properties": {
              "email": {
                "type": "string",
                "format": "email",
                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                "description": "The person's exact email address, as the user gave it. Never one read from a Case, a file or a dashboard"
              },
              "role_key": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "A role `key` from listProcessRoles, never its label"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Assign Process Member",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "addAutomationAgent",
          "title": "Add Automation Agent",
          "description": "Add an agent to an automation on a team that is on the Automations workspace, with or without revisions — membership is not versioned. The agent must not already belong to another automation; on a team that changes its automations by revision it cannot be moved between them at all, because the revisions binding it are immutable. Adding an agent that is already a member succeeds unchanged. When the automation runs as the team, the agent's personal triggers and schedules are turned off, and the add fails with 409 if its live revision sends cases to a queue in an automation that runs as its members. An agent left behind by a deleted automation that ran as the team cannot join one that runs as its members (409). Adding to an automation that runs as the team also fails with 409 when a change in flight holds the rows the add has to update, such as the agent's personal triggers and schedules; that refusal changes nothing and the add can be retried.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Agent ID"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Add Automation Agent",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "removeAutomationAgent",
          "title": "Remove Automation Agent",
          "description": "Remove an agent from an automation on a team that is on the Automations workspace, with or without revisions — membership is not versioned. Deleting the agent interrupts its active runs and pauses their sandboxes, exactly as a standalone agent delete does. On a team that changes its automations by revision, an agent the active revision binds is refused: activate a revision that omits it first.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Agent ID"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              }
            }
          },
          "annotations": {
            "title": "Remove Automation Agent",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "addAutomationQueue",
          "title": "Add Automation Queue",
          "description": "Add a queue to an automation on a team that is on the Automations workspace, with or without revisions — membership is not versioned. The queue must not already belong to another automation; on a team that changes its automations by revision it cannot be moved between them at all, because the revisions binding it are immutable. Adding a queue that is already a member succeeds unchanged. A queue left behind by a deleted automation that ran as the team cannot join one that runs as its members (409 team_to_personal_move), and neither can a queue that an agent in an automation running as the team sends cases to (409 team_to_personal_queue).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "case_queue_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              },
              "case_queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Queue ID"
              }
            }
          },
          "annotations": {
            "title": "Add Automation Queue",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "removeAutomationQueue",
          "title": "Remove Automation Queue",
          "description": "Remove a queue from an automation, deleting the queue. Its cases are cleared and the runs working them interrupted, exactly as a standalone queue delete does. Queue membership is not versioned, so this behaves the same whether or not the team changes its automations by revision.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "case_queue_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              },
              "case_queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Queue ID"
              }
            }
          },
          "annotations": {
            "title": "Remove Automation Queue",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listConfigFields",
          "title": "List Config Fields",
          "description": "Read an automation's module config fields (its Policy), grouped by section in the automation's section order, with each field's current value, default, and fill provenance.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation's unique identifier"
              },
              "include_hidden": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "description": "Also return the questions a person hid, marked active: false, in their sections, and every empty section a person added, with no fields. Questions the module template retired are never returned. The counts still cover the visible questions only. Defaults to false."
              }
            }
          },
          "annotations": {
            "title": "List Config Fields",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "readAutomationPolicy",
          "title": "Read Automation Policy",
          "description": "Read an automation's whole Policy before answering anything about it: every question by section, with its `id` (the field id updateConfigField takes), key, type, answer and who gave it; `counts.questions` as the Policy screen's header counts them (`required_open` is what still blocks a run) apart from the module's pre-filled `module_defaults`; answers proposed by interviews and waiting for review; accepted and pending process-context notes; the interviews assigned; and `pending_apply`, the structural answers and notes not yet written into an Agent. `running` says whether the automation runs on live work: there a changed answer reaches its Agents from their next run, so name the question, its current answer and the new one, and change it only after the user says yes. A question whose `bindings` include `structural` changes how the Agents run; propose the matching Agent change too. Never invent an answer for a question shown as open. Give the user the full URLs in `urls`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              },
              "include_hidden": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "description": "Also list the questions a person hid, under hidden_fields. Defaults to false."
              }
            }
          },
          "annotations": {
            "title": "Read Automation Policy",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "assignPolicyInterview",
          "title": "Assign Policy Interview",
          "description": "Assign a Policy interview: a Clarity voice interview covering the automation's open Policy questions, whose answers are written back onto them. Pass `invited_email` to email it to someone, and `context` to say who they are; leave `invited_email` out to create an unassigned interview slot. This emails a real person: name them, give the exact address and say what the interview covers, and call this only after the user says yes. Use only an address the user gave you. Administrators and above only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "context": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1,
                "description": "Who this person is, for the interview's guidance"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              },
              "invited_email": {
                "type": "string",
                "format": "email",
                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                "description": "Who to email the interview to, exactly as the user gave it; leave out to create an unassigned interview slot"
              }
            }
          },
          "annotations": {
            "title": "Assign Policy Interview",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "updateConfigField",
          "title": "Update Config Field",
          "description": "Set or clear a config field's value. `value: null` removes the answer and does not restore the module default, so a Run that reads the field is refused until it is answered again. To use the default, send `default_value` as `value`. On a running automation (`running` in readAutomationPolicy) the change reaches its Agents from their next run: name the question, its current answer and the new one, change it only after the user says yes, and pass the current answer you showed, not the new one, as `expected_value` so a change someone made in between is not overwritten. A compound question takes every part in one write. When the field's `bindings` include `structural`, the module's Agents also need a matching change; propose it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automationId",
              "fieldId",
              "value"
            ],
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/AutomationConfigJsonValue"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fieldId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Config field ID"
              },
              "automationId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation ID"
              },
              "expected_value": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/AutomationConfigJsonValue"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The current answer, as you read it and showed the user, not the new one (null if it was unanswered). If the answer has changed since, nothing is written and the call fails with 409; read the Policy again"
              }
            },
            "definitions": {
              "AutomationConfigJsonValue": {
                "id": "AutomationConfigJsonValue",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  },
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/definitions/AutomationConfigJsonValue"
                    }
                  },
                  {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "$ref": "#/definitions/AutomationConfigJsonValue"
                    }
                  }
                ]
              }
            }
          },
          "annotations": {
            "title": "Update Config Field",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "addConfigField",
          "title": "Add Config Field",
          "description": "Add a Policy question to this automation. Its key is `custom_` plus the label in snake_case, with `_2`, `_3` and so on appended when the key is taken, and it is placed at the end of its section. A module template reinstall never changes a field added here.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "label",
              "question",
              "type"
            ],
            "properties": {
              "key": {
                "type": "string",
                "pattern": "^[a-z0-9][a-z0-9_]*$",
                "maxLength": 120,
                "minLength": 1,
                "description": "Code for the field, unique within the automation; derived from the label when left out"
              },
              "type": {
                "enum": [
                  "freeText",
                  "identifier",
                  "number",
                  "select",
                  "multiSelect",
                  "list",
                  "orderedList",
                  "personList",
                  "table"
                ],
                "type": "string",
                "description": "Value type; compound and sourcePointer are template-only"
              },
              "label": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Short name for the field, shown as its row heading"
              },
              "roles": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 120,
                  "minLength": 1
                },
                "maxItems": 100,
                "description": "Keys of the process roles whose holders answer this question; empty means anyone"
              },
              "columns": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 100,
                  "minLength": 1
                },
                "maxItems": 20,
                "minItems": 1,
                "description": "Required for table, refused otherwise"
              },
              "example": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500,
                    "minLength": 1,
                    "description": "An example answer to the question"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "An example answer to the question; left out or null for none"
              },
              "options": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 200,
                  "minLength": 1
                },
                "maxItems": 100,
                "minItems": 1,
                "description": "Required for select and multiSelect, refused otherwise"
              },
              "section": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "Section the field is grouped under"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Section to add the field to, or null for none"
              },
              "bindings": {
                "type": "array",
                "items": {
                  "enum": [
                    "context",
                    "tool"
                  ],
                  "type": "string"
                },
                "default": [
                  "context"
                ],
                "minItems": 1,
                "description": "How the value reaches the automation (context, tool)"
              },
              "guidance": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 1,
                    "description": "What to fill in for the question, in plain sentences"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "What to fill in for the question, in plain sentences; left out or null for none"
              },
              "question": {
                "type": "string",
                "maxLength": 2000,
                "minLength": 1,
                "description": "The setup question asked for this field"
              },
              "fill_mode": {
                "enum": [
                  "interview",
                  "setup"
                ],
                "type": "string",
                "default": "interview",
                "description": "How the field is filled (interview, setup)"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Add Config Field",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "updateConfigFieldDefinition",
          "title": "Update Config Field Definition",
          "description": "Edit a Policy question: its label, question, guidance, example answer, section, the roles that answer it, the options of a select or multiSelect field, and the columns of an unanswered table field a person added. A reworded question gets a new version, and a new section moves the field to that section's end. The type of a field added through the API can change while it has no answer; a field from the module template keeps its type. The answer is never changed, and a module template reinstall keeps the edit.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "field_id"
            ],
            "properties": {
              "key": {
                "type": "string",
                "pattern": "^[a-z0-9][a-z0-9_]*$",
                "maxLength": 120,
                "minLength": 1,
                "description": "New code, only for a field added to this automation that no Agent or Code step reads yet"
              },
              "type": {
                "enum": [
                  "freeText",
                  "identifier",
                  "number",
                  "select",
                  "multiSelect",
                  "list",
                  "orderedList",
                  "personList",
                  "table"
                ],
                "type": "string",
                "description": "New value type, only for a field added through the API that has no answer yet"
              },
              "label": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Short name for the field, shown as its row heading"
              },
              "roles": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 120,
                  "minLength": 1
                },
                "maxItems": 100,
                "description": "Keys of the process roles whose holders answer this question; replaces the whole list, and empty means anyone"
              },
              "columns": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 100,
                  "minLength": 1
                },
                "maxItems": 20,
                "minItems": 1,
                "description": "Table fields only, while the field has no answer; replaces the whole list"
              },
              "example": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500,
                    "minLength": 1,
                    "description": "An example answer to the question"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "New example answer, or null to remove it"
              },
              "options": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 200,
                  "minLength": 1
                },
                "maxItems": 100,
                "minItems": 1,
                "description": "Select and multiSelect fields only; replaces the whole list"
              },
              "section": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "Section the field is grouped under"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Section to move the field to the end of, or null for none"
              },
              "field_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The config field's unique identifier"
              },
              "guidance": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 1,
                    "description": "What to fill in for the question, in plain sentences"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "New guidance on what to fill in, in plain sentences, or null to remove it"
              },
              "question": {
                "type": "string",
                "maxLength": 2000,
                "minLength": 1,
                "description": "New question; a reworded question gets a new version"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Update Config Field Definition",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "hideConfigField",
          "title": "Hide Config Field",
          "description": "Hide a Policy question from the Policy screen, interviews and every agent's context. Nothing is deleted: the answer and its history stay, and the restore operation shows it again. Returns the agents whose live version still reads the field; hiding is never refused because of them. A module template reinstall keeps the field hidden.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "field_id"
            ],
            "properties": {
              "field_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The config field's unique identifier"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Hide Config Field",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "restoreConfigField",
          "title": "Restore Config Field",
          "description": "Show a hidden Policy question again, with the answer it had.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "field_id"
            ],
            "properties": {
              "field_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The config field's unique identifier"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Restore Config Field",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "listConfigSections",
          "title": "List Config Sections",
          "description": "List the sections of an automation's Policy in display order, empty ones included, each with its key, name, origin and question count. No offset/limit params: this is the automation's whole set of sections.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id"
            ],
            "properties": {
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Config Sections",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "addConfigSection",
          "title": "Add Config Section",
          "description": "Add an empty section to this automation's Policy, last or right after after_key. Its key is the name in lowercase words joined by hyphens, with `-2`, `-3` and so on appended when the key is taken. A name another section has, ignoring case, is refused with a 409. A module template reinstall never changes a section added here.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "The section heading shown on the Policy screen, unique within the automation ignoring case"
              },
              "after_key": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1,
                "description": "Key of the section to place the new one right after; omitted, it goes last"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Add Config Section",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "renameConfigSection",
          "title": "Rename Config Section",
          "description": "Rename a section of this automation's Policy. Its key and its questions stay as they are, and every reader shows the new name. A name another section has, ignoring case, is refused with a 409; the current name changes nothing. A module template reinstall keeps the rename.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "section_key",
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "The new heading; the section's key and its questions stay as they are"
              },
              "section_key": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1,
                "description": "The section's key within the automation, such as 'about-you'"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Rename Config Section",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "reorderConfigSections",
          "title": "Reorder Config Sections",
          "description": "Replace the display order of this automation's Policy sections. keys must list every section key of the automation exactly once, else a 400 names what is missing, unknown or repeated. Returns every section in its new order. A module template reinstall keeps the order of the sections moved here.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "keys"
            ],
            "properties": {
              "keys": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 120,
                  "minLength": 1,
                  "description": "Stable identifier of the section within its automation"
                },
                "maxItems": 500,
                "minItems": 1,
                "description": "Every section key of the automation exactly once, in the new display order"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Reorder Config Sections",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "removeConfigSection",
          "title": "Remove Config Section",
          "description": "Remove a section a person added to this automation's Policy, once it holds no question, hidden ones included. A section with questions, or one from the module template, is refused with a 409. Returns the removed section.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation_id",
              "section_key"
            ],
            "properties": {
              "section_key": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1,
                "description": "The section's key within the automation, such as 'about-you'"
              },
              "automation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Remove Config Section",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listRevisionIntegrations",
          "title": "List Revision Integrations",
          "description": "List integrations attached to an agent revision.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "build_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Agent ID"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Build ID"
              }
            }
          },
          "annotations": {
            "title": "List Revision Integrations",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "attachRevisionIntegrations",
          "title": "Attach Revision Integrations",
          "description": "Attach one or more integrations to an agent revision. To pin specific connections after attachment, use pinRevisionIntegrationConnection. IMPORTANT for the case-queue-producer and case-queue-consumer integrations: attaching the integration alone is NOT enough — the slot points at no queue and will fail at runtime until you link at least one queue with replaceRevisionIntegrationQueues. After wiring up, call getRevisionCaseQueueSetup to confirm every case-queue slot has linked_queue_count > 0 before starting work.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "build_id",
              "integration_ids"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Agent ID"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Build ID"
              },
              "integration_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "minItems": 1,
                "description": "Integration IDs (or custom integration IDs) to attach to the revision"
              },
              "selected_automation_revision_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision."
              }
            }
          },
          "annotations": {
            "title": "Attach Revision Integrations",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "removeRevisionIntegration",
          "title": "Remove Revision Integration",
          "description": "Remove an integration from an agent revision. Removes the slot for everyone on the revision, including all per-user connection pins. Requires edit permission on the agent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "build_id",
              "integration_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Agent ID"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Build ID"
              },
              "integration_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Integration ID (catalog integration ID or slot ID from the list response)"
              },
              "selected_automation_revision_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision."
              }
            }
          },
          "annotations": {
            "title": "Remove Revision Integration",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listRevisionIntegrationConnections",
          "title": "List Revision Integration Connections",
          "description": "List the connections you have pinned to this build's integration slot. Multi-pin is supported: you can pin multiple connections to the same slot.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "build_id",
              "integration_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Agent ID"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Build ID"
              },
              "integration_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Integration ID (catalog integration ID or slot ID from the list response)"
              }
            }
          },
          "annotations": {
            "title": "List Revision Integration Connections",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "pinRevisionIntegrationConnection",
          "title": "Pin Revision Integration Connection",
          "description": "Pin one of your connections (from GET /v2/teams/:team_id/connections) to this build's integration slot. Multi-pin is supported: a single user can pin multiple connections to the same slot.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "build_id",
              "integration_id",
              "connection_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Agent ID"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Build ID"
              },
              "connection_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "ID of one of your connections (from GET /v2/teams/:team_id/connections) to pin to this slot"
              },
              "integration_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Integration ID (catalog integration ID or slot ID from the list response)"
              }
            }
          },
          "annotations": {
            "title": "Pin Revision Integration Connection",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "unpinRevisionIntegrationConnection",
          "title": "Unpin Revision Integration Connection",
          "description": "Unpin one of your connections from this build's integration slot. The connection itself is not deleted; only the binding to this slot is removed.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "build_id",
              "integration_id",
              "connection_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Agent ID"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Build ID"
              },
              "connection_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Connection ID to unpin"
              },
              "integration_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Integration ID (catalog integration ID or slot ID from the list response)"
              }
            }
          },
          "annotations": {
            "title": "Unpin Revision Integration Connection",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "getRevisionCaseQueueSetup",
          "title": "Get Revision Case Queue Setup",
          "description": "Check that this build's case-queue integration slots are wired up correctly. Returns, per case-queue-producer/consumer slot, how many queues are linked, plus whether any queue is available to bind (scoped to the agent's automation on a migrated team, team-wide otherwise). A slot with linked_queue_count of 0 is attached but points at no queue and will fail at runtime — link a queue with replaceRevisionIntegrationQueues before starting work.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "build_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Agent ID"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Build ID"
              }
            }
          },
          "annotations": {
            "title": "Get Revision Case Queue Setup",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listRevisionIntegrationQueues",
          "title": "List Revision Integration Queues",
          "description": "List the queues linked to this build's case-queue integration slot. Only meaningful for case-queue-producer and case-queue-consumer integrations.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "build_id",
              "integration_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Agent ID"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Build ID"
              },
              "integration_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Integration ID"
              }
            }
          },
          "annotations": {
            "title": "List Revision Integration Queues",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "replaceRevisionIntegrationQueues",
          "title": "Replace Revision Integration Queues",
          "description": "Replace the set of queues linked to this build's case-queue integration slot. Send the full desired queue list — any queues not in the list will be unlinked. Requires edit permission on the agent. After linking, call getRevisionCaseQueueSetup to confirm the slot now reports linked_queue_count > 0.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "build_id",
              "integration_id",
              "queue_ids"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Agent ID"
              },
              "build_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Build ID"
              },
              "queue_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "description": "Full set of queue IDs to link to this slot. Replaces any existing links."
              },
              "integration_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Integration ID"
              },
              "selected_automation_revision_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision."
              }
            }
          },
          "annotations": {
            "title": "Replace Revision Integration Queues",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listAgentSuggestions",
          "title": "List Agent Suggestions",
          "description": "List an Agent's suggestions. status=pending is the inbox; status=history is consumed/dismissed/auto-cleared. Reads lazily auto-clear stale pending items.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 100,
                "maximum": 250,
                "minimum": 1
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0
              },
              "status": {
                "enum": [
                  "pending",
                  "history"
                ],
                "type": "string",
                "default": "pending"
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The Agent's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Agent Suggestions",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getAgentSuggestion",
          "title": "Get Agent Suggestion",
          "description": "Fetch a single suggestion. Poll this after a 202 from consume: an AOP apply in flight reports payload.apply.state (running/failed); once consumed, applied_revision_id carries the draft revision the change was staged onto.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The suggestion's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Get Agent Suggestion",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "consumeAgentSuggestion",
          "title": "Consume Agent Suggestion",
          "description": "Apply a suggestion: stage its change into the Agent's draft revision, then auto-clear any pending suggestions it makes moot.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The suggestion's unique identifier"
              },
              "revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "create_new_draft": {
                "type": "boolean"
              },
              "selected_automation_revision_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision."
              }
            }
          },
          "annotations": {
            "title": "Consume Agent Suggestion",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "rejectAgentSuggestion",
          "title": "Reject Agent Suggestion",
          "description": "Dismiss a pending suggestion.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The suggestion's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Reject Agent Suggestion",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "listSystemSkills",
          "title": "List System Skills",
          "description": "List all system skills (skills available to all teams).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "List System Skills",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "deleteSkill",
          "title": "Delete Skill",
          "description": "Delete a skill for the current team.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_id"
            ],
            "properties": {
              "skill_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill ID."
              }
            }
          },
          "annotations": {
            "title": "Delete Skill",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "downloadSkill",
          "title": "Download Skill",
          "description": "Download a custom skill as a ZIP archive. Only custom (team-owned) skills can be downloaded.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_id"
            ],
            "properties": {
              "skill_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill ID."
              }
            }
          },
          "annotations": {
            "title": "Download Skill",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listSkillFiles",
          "title": "List Skill Files",
          "description": "List all files in a skill.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_id"
            ],
            "properties": {
              "skill_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill ID."
              }
            }
          },
          "annotations": {
            "title": "List Skill Files",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getSkillFileContent",
          "title": "Get Skill File Content",
          "description": "Get the content of a file in a skill.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_id",
              "path"
            ],
            "properties": {
              "path": {
                "type": "string",
                "minLength": 1,
                "description": "Relative path to the file inside the skill, e.g. SKILL.md."
              },
              "skill_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill ID."
              }
            }
          },
          "annotations": {
            "title": "Get Skill File Content",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateSkillFile",
          "title": "Update Skill File",
          "description": "Update the content of a file in a skill, overwriting the active revision in place — the previous content is not recoverable. Prefer the non-destructive flow when you can: createSkillRevision to open a draft, updateSkillRevisionFile to edit it, promoteSkillRevision to activate it. Only team skills can be edited.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_id",
              "path",
              "content"
            ],
            "properties": {
              "path": {
                "type": "string",
                "minLength": 1,
                "description": "Relative path to the file inside the skill, e.g. SKILL.md."
              },
              "content": {
                "type": "string",
                "description": "New UTF-8 text content for the file."
              },
              "skill_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill ID."
              }
            }
          },
          "annotations": {
            "title": "Update Skill File",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listSkillAssignments",
          "title": "List Skill Assignments",
          "description": "List the agents in the current team whose live build references the given skill. Used to warn users that editing a skill will affect every agent that uses it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_id"
            ],
            "properties": {
              "skill_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Skill ID."
              }
            }
          },
          "annotations": {
            "title": "List Skill Assignments",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listSkillRevisions",
          "title": "List Skill Revisions",
          "description": "List a skill's version history. Each revision is a snapshot of the skill's files; at most one is active (live) at a time, plus at most one open draft.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 20,
                "maximum": 100,
                "minimum": 1,
                "description": "Number of revisions per page (1-100, default 20)"
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Number of revisions to skip"
              },
              "skill_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill ID."
              }
            }
          },
          "annotations": {
            "title": "List Skill Revisions",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "createSkillRevision",
          "title": "Create Skill Revision",
          "description": "Open a draft revision of a skill, copying its files from the active revision (or from `source_revision_id`). Edit the draft with updateSkillRevisionFile and deleteSkillRevisionFile, then activate it with promoteSkillRevision — the previously active revision stays intact and can be re-activated later. A skill has at most one open draft: if one already exists this returns it with `created: false`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_id"
            ],
            "properties": {
              "skill_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill ID."
              },
              "source_revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Revision to fork the new draft from. Defaults to the live revision (or the skill's current files if there is no live revision yet)."
              }
            }
          },
          "annotations": {
            "title": "Create Skill Revision",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "promoteSkillRevision",
          "title": "Promote Skill Revision",
          "description": "Make a skill revision the active (live) one. The previously active revision becomes historic and can be re-activated later. Idempotent: promoting the already-active revision succeeds rather than erroring, and still applies any revision_name / revision_description supplied in the body.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_revision_id"
            ],
            "properties": {
              "revision_name": {
                "type": "string",
                "maxLength": 80,
                "minLength": 1,
                "description": "Optional display name to set on the promoted revision."
              },
              "skill_revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill revision ID."
              },
              "revision_description": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Optional description for the promoted revision. Pass null to clear an existing description."
              }
            }
          },
          "annotations": {
            "title": "Promote Skill Revision",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listSkillRevisionFiles",
          "title": "List Skill Revision Files",
          "description": "List the files in a skill revision, one page at a time. When `has_more` is true, pass `next_cursor` back as `cursor` to fetch the next page.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_revision_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 100,
                "maximum": 1000,
                "minimum": 1,
                "description": "Maximum number of files to return per page (1-1000, default 100)"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "description": "Opaque continuation token from a previous response's `next_cursor`. Omit for the first page."
              },
              "skill_revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill revision ID."
              }
            }
          },
          "annotations": {
            "title": "List Skill Revision Files",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getSkillRevisionFileContent",
          "title": "Get Skill Revision File Content",
          "description": "Get the content of a text file in a skill revision.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_revision_id",
              "path"
            ],
            "properties": {
              "path": {
                "type": "string",
                "minLength": 1,
                "description": "Relative path to the file inside the revision, e.g. SKILL.md."
              },
              "skill_revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill revision ID."
              }
            }
          },
          "annotations": {
            "title": "Get Skill Revision File Content",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateSkillRevisionFile",
          "title": "Update Skill Revision File",
          "description": "Write a text file into a skill revision. Writing into a draft leaves the active revision untouched until the draft is promoted; writing into the active revision changes what the skill runs immediately. Historic revisions are read-only: create a draft from one to edit it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_revision_id",
              "path",
              "content"
            ],
            "properties": {
              "path": {
                "type": "string",
                "minLength": 1,
                "description": "Relative path to the file inside the revision, e.g. SKILL.md."
              },
              "content": {
                "type": "string",
                "description": "New UTF-8 text content for the file."
              },
              "skill_revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill revision ID."
              }
            }
          },
          "annotations": {
            "title": "Update Skill Revision File",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteSkillRevisionFile",
          "title": "Delete Skill Revision File",
          "description": "Delete a file from a skill revision. Deleting from a draft leaves the active revision untouched until the draft is promoted; deleting from the active revision changes what the skill runs immediately. SKILL.md can't be deleted. Historic revisions are read-only: create a draft from one to edit it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_revision_id",
              "path"
            ],
            "properties": {
              "path": {
                "type": "string",
                "minLength": 1,
                "description": "Relative path to the file inside the revision, e.g. scripts/helper.py."
              },
              "skill_revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill revision ID."
              }
            }
          },
          "annotations": {
            "title": "Delete Skill Revision File",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "updateSkillRevision",
          "title": "Update Skill Revision",
          "description": "Rename a skill revision or change its description. Works for drafts, the active revision, and historic revisions.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_revision_id"
            ],
            "properties": {
              "revision_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 80,
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Optional user-defined name for this revision. Pass null to clear."
              },
              "skill_revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill revision ID."
              },
              "revision_description": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Optional user-defined description for this revision. Pass null to clear."
              }
            }
          },
          "annotations": {
            "title": "Update Skill Revision",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteSkillRevision",
          "title": "Delete Skill Revision",
          "description": "Delete a draft or historic skill revision and its files. The active revision can't be deleted — activate another revision first.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "skill_revision_id"
            ],
            "properties": {
              "skill_revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Skill revision ID."
              }
            }
          },
          "annotations": {
            "title": "Delete Skill Revision",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "getProfile",
          "title": "Get Profile",
          "description": "Get the profile of the authenticated user (the owner of the API key).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "Get Profile",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getLegacyClarityProcess",
          "title": "Get Legacy Clarity Process",
          "description": "Get a legacy v1 Clarity process with process metadata, generated analysis, automation guidance, generation progress, and captures. Use this for rows from listClarityProcesses where version=1; v2 rows should use getClarityProcess and snapshot detail tools.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Get Legacy Clarity Process",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateClarityProcess",
          "title": "Update Clarity Process",
          "description": "Update a Clarity process name, guidance, interview independence, map settings, visibility, or completion status. Team Builders can edit names, guidance, interview independence, and map settings, only the creator or a team manager can change visibility, and completing or reopening a process for review requires a Lead Builder role.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Clarity process id"
              },
              "name": {
                "type": "string",
                "maxLength": 255,
                "minLength": 1,
                "description": "New process name"
              },
              "status": {
                "enum": [
                  "complete",
                  "review"
                ],
                "type": "string",
                "description": "Mark a review-stage process complete, or reopen a completed process for review"
              },
              "visibility": {
                "enum": [
                  "team",
                  "restricted"
                ],
                "type": "string",
                "description": "Process visibility within the team"
              },
              "mapLanguage": {
                "anyOf": [
                  {
                    "enum": [
                      "cs",
                      "de",
                      "de-CH",
                      "en",
                      "en-GB",
                      "es",
                      "es-MX",
                      "fr",
                      "hu",
                      "pl",
                      "pt",
                      "pt-BR",
                      "sk",
                      "sl",
                      "th",
                      "uk",
                      "ar-EG",
                      "ar-SA",
                      "da-DK",
                      "de-AT",
                      "el-GR",
                      "en-AU",
                      "en-GB-scotland",
                      "en-IE",
                      "en-IN",
                      "en-NG",
                      "en-ZA",
                      "es-AR",
                      "fi-FI",
                      "fr-BE",
                      "fr-CA",
                      "gsw-CH",
                      "he-IL",
                      "hi-IN",
                      "hi-Latn-IN",
                      "id-ID",
                      "it-IT",
                      "ja-JP",
                      "ko-KR",
                      "nb-NO",
                      "nl-BE",
                      "nl-NL",
                      "ro-RO",
                      "sv-SE",
                      "tr-TR",
                      "vi-VN",
                      "yue-HK",
                      "zh-Hans-CN",
                      "zh-Hant-TW",
                      "af-ZA",
                      "ak-GH",
                      "sq-AL",
                      "am-ET",
                      "hy-AM",
                      "as-IN",
                      "az-AZ",
                      "eu-ES",
                      "be-BY",
                      "bn-BD",
                      "bs-BA",
                      "bg-BG",
                      "my-MM",
                      "ca-ES",
                      "ceb-PH",
                      "hr-HR",
                      "et-EE",
                      "fo-FO",
                      "fil-PH",
                      "gl-ES",
                      "ka-GE",
                      "gu-IN",
                      "ha-NG",
                      "is-IS",
                      "ga-IE",
                      "kn-IN",
                      "kk-KZ",
                      "km-KH",
                      "rw-RW",
                      "ku-TR",
                      "ky-KG",
                      "lo-LA",
                      "lv-LV",
                      "lt-LT",
                      "mk-MK",
                      "ms-MY",
                      "ml-IN",
                      "mt-MT",
                      "mi-NZ",
                      "mr-IN",
                      "mn-MN",
                      "ne-NP",
                      "or-IN",
                      "om-ET",
                      "ps-AF",
                      "fa-IR",
                      "pa-IN",
                      "qu-PE",
                      "rm-CH",
                      "ru-RU",
                      "sr-RS",
                      "sd-PK",
                      "si-LK",
                      "so-SO",
                      "st-ZA",
                      "sw-TZ",
                      "tg-TJ",
                      "ta-IN",
                      "te-IN",
                      "tn-ZA",
                      "tk-TM",
                      "ur-PK",
                      "uz-UZ",
                      "cy-GB",
                      "fy-NL",
                      "wo-SN",
                      "yo-NG",
                      "zu-ZA",
                      "bn-IN",
                      "ur-IN",
                      "fr-CH",
                      "it-CH",
                      "de-BE",
                      "sw-KE",
                      "sw-UG",
                      "ms-SG",
                      "zh-Hans-SG",
                      "ta-SG",
                      "ta-LK",
                      "yue-CN",
                      "ar-IL",
                      "ar-MA",
                      "fr-MA",
                      "sv-FI",
                      "es-US",
                      "ru-BY",
                      "ru-KZ",
                      "fa-AF",
                      "ar-DZ",
                      "fr-DZ",
                      "ar-TN",
                      "fr-TN",
                      "ar-LY",
                      "ar-SD",
                      "ar-IQ",
                      "ku-IQ",
                      "ar-SY",
                      "ar-JO",
                      "ar-AE",
                      "ar-QA",
                      "ar-KW",
                      "ar-OM",
                      "ar-YE",
                      "ar-LB",
                      "fr-LB",
                      "pt-AO",
                      "pt-MZ",
                      "es-CO",
                      "es-PE",
                      "es-CL",
                      "es-VE",
                      "es-EC",
                      "es-BO",
                      "qu-BO",
                      "es-PY",
                      "es-UY",
                      "es-CU",
                      "es-GT",
                      "es-HN",
                      "es-NI",
                      "es-CR",
                      "es-PA",
                      "es-DO",
                      "es-SV",
                      "sr-ME",
                      "fr-CD",
                      "fr-CI",
                      "fr-SN",
                      "fr-ML",
                      "fr-CM",
                      "da-GL",
                      "tn-BW",
                      "af-NA",
                      "el-CY",
                      "tr-CY",
                      "fr-LU",
                      "de-LU",
                      "en-CA",
                      "en-NZ",
                      "en-SG",
                      "en-PH",
                      "en-KE",
                      "en-GH",
                      "en-PK"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Language Duvo writes this process's map in, or null to use the team's map language"
              },
              "customPrompt": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 5000
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Process-specific guidance, or null to clear it"
              },
              "showMissingInfo": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Show missing-info questions on the map, or null to follow the team default"
              },
              "missingInfoGuidance": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 5000
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Topics to prioritize in this process's missing-info review. Send null to clear."
              },
              "showFieldsAndActions": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Show fields and actions on the map, or null to follow the team default"
              },
              "independentInterviews": {
                "type": "boolean",
                "description": "Run each interview independently: no briefing from earlier interviews and a neutral opener"
              }
            }
          },
          "annotations": {
            "title": "Update Clarity Process",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "listClarityProcessMembers",
          "title": "List Clarity Process Members",
          "description": "List users with accepted access to a clarity process, the people invited who have not accepted yet, and anyone else who has recorded a capture on it",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Clarity process ID."
              },
              "contributorsAfter": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Cursor from contributorsNextCursor; returns the next page of contributors."
              }
            }
          },
          "annotations": {
            "title": "List Clarity Process Members",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "removeClarityProcessMember",
          "title": "Remove Clarity Process Member",
          "description": "Remove accepted access to a clarity process",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "invitationId"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Clarity process ID."
              },
              "invitationId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Accepted process invitation to remove."
              }
            }
          },
          "annotations": {
            "title": "Remove Clarity Process Member",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteClarityProcess",
          "title": "Delete Clarity Process",
          "description": "Delete a Clarity process. The creator or a team admin can delete it unless capture analysis is still in progress, or a Module runs it — a Module's process is part of the Module, so the Module has to be removed first. An automation built from the process keeps running, with its setup answers and people, but is no longer linked to it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Clarity process id"
              }
            }
          },
          "annotations": {
            "title": "Delete Clarity Process",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "duplicateClarityProcess",
          "title": "Duplicate Clarity Process",
          "description": "Duplicate a Clarity process with its analysis, captures, message history, and, for v2 processes, its live current map and automation proposal. Requires a team manager role.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Source Clarity process id"
              }
            }
          },
          "annotations": {
            "title": "Duplicate Clarity Process",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "createClarityVideoUploadUrl",
          "title": "Create Clarity Video Upload Url",
          "description": "Create a signed URL for uploading a video file directly to GCS",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "fileName",
              "contentType"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process ID"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "description": "Name of the video file"
              },
              "contentType": {
                "enum": [
                  "video/mp4",
                  "video/mov",
                  "video/webm",
                  "video/mpeg",
                  "video/mpg",
                  "video/avi",
                  "video/x-flv",
                  "video/wmv",
                  "video/3gpp"
                ],
                "type": "string",
                "description": "MIME type of the video"
              },
              "extraCaptureRequestId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Extra-capture-request id to bind this capture to"
              }
            }
          },
          "annotations": {
            "title": "Create Clarity Video Upload Url",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "completeClarityVideoUpload",
          "title": "Complete Clarity Video Upload",
          "description": "Complete a video capture after uploading to GCS via signed URL",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "captureId",
              "fileName"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process ID"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "description": "Name of the uploaded video file"
              },
              "captureId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The capture ID"
              }
            }
          },
          "annotations": {
            "title": "Complete Clarity Video Upload",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "createClarityDocumentUploadUrl",
          "title": "Create Clarity Document Upload Url",
          "description": "Create a signed URL for uploading a PDF, Word (.docx), TXT, Markdown, BPMN, XLSX, or CSV document directly to GCS",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "fileName",
              "contentType"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process ID"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "description": "Name of the document file"
              },
              "contentType": {
                "enum": [
                  "application/pdf",
                  "text/plain",
                  "text/markdown",
                  "application/xml",
                  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
                  "text/csv",
                  "application/vnd.ms-excel"
                ],
                "type": "string",
                "description": "MIME type of the document"
              },
              "extraCaptureRequestId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Extra-capture-request id to bind this capture to"
              }
            }
          },
          "annotations": {
            "title": "Create Clarity Document Upload Url",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "completeClarityDocumentUpload",
          "title": "Complete Clarity Document Upload",
          "description": "Complete a document capture after uploading to GCS via signed URL",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "captureId",
              "fileName"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process ID"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "description": "Name of the uploaded document file"
              },
              "captureId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The capture ID"
              }
            }
          },
          "annotations": {
            "title": "Complete Clarity Document Upload",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "createClarityImageUploadUrl",
          "title": "Create Clarity Image Upload Url",
          "description": "Create a signed URL for uploading a PNG, JPEG, WebP, or SVG image directly to GCS",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "fileName",
              "contentType"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process ID"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "description": "Name of the image file"
              },
              "contentType": {
                "enum": [
                  "image/png",
                  "image/jpeg",
                  "image/webp",
                  "image/svg+xml"
                ],
                "type": "string",
                "description": "MIME type of the image"
              },
              "extraCaptureRequestId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Extra-capture-request id to bind this capture to"
              }
            }
          },
          "annotations": {
            "title": "Create Clarity Image Upload Url",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "completeClarityImageUpload",
          "title": "Complete Clarity Image Upload",
          "description": "Complete an image capture after uploading it to GCS via a signed URL",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "captureId",
              "fileName"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process ID"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "description": "Name of the uploaded image file"
              },
              "captureId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The capture ID"
              }
            }
          },
          "annotations": {
            "title": "Complete Clarity Image Upload",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "inviteClarityMeetingNotetaker",
          "title": "Invite Clarity Meeting Notetaker",
          "description": "Invite the in-meeting notetaker bot (Recall.ai) to a live meeting; the recording lands as a 'meeting' capture on the process",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "meetingUrl"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process ID"
              },
              "joinAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "meetingUrl": {
                "type": "string",
                "format": "uri",
                "maxLength": 2048
              },
              "extraCaptureRequestId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Invite Clarity Meeting Notetaker",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "deleteClarityCapture",
          "title": "Delete Clarity Capture",
          "description": "Delete a capture from a clarity process",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "captureId"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process ID"
              },
              "captureId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The capture ID to delete"
              }
            }
          },
          "annotations": {
            "title": "Delete Clarity Capture",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "createClarityGuidance",
          "title": "Create Clarity Guidance",
          "description": "Create a new automation guidance message for a clarity process",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "content"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process ID"
              },
              "content": {
                "type": "string",
                "maxLength": 5000,
                "minLength": 1,
                "description": "Automation guidance to add to the process."
              }
            }
          },
          "annotations": {
            "title": "Create Clarity Guidance",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "updateClarityGuidance",
          "title": "Update Clarity Guidance",
          "description": "Update the automation guidance message for a clarity process",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "content"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process ID"
              },
              "content": {
                "type": "string",
                "maxLength": 5000,
                "minLength": 1,
                "description": "Replacement automation guidance for the process."
              }
            }
          },
          "annotations": {
            "title": "Update Clarity Guidance",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "getClarityProcessSharing",
          "title": "Get Clarity Process Sharing",
          "description": "Get the sharing status for a clarity process",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Clarity process ID."
              }
            }
          },
          "annotations": {
            "title": "Get Clarity Process Sharing",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateClarityProcessSharing",
          "title": "Update Clarity Process Sharing",
          "description": "Enable or disable sharing for a clarity process",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "enabled"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Clarity process ID."
              },
              "enabled": {
                "type": "boolean",
                "description": "Whether public process sharing is enabled."
              },
              "proposalShareEnabled": {
                "type": "boolean",
                "description": "Whether the automation proposal is included. Public sharing must already be enabled when only changing this setting."
              }
            }
          },
          "annotations": {
            "title": "Update Clarity Process Sharing",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "sendClarityInterviewInvites",
          "title": "Send Clarity Interview Invites",
          "description": "Invite people to record an interview about this Clarity process, and email each of them. To invite people from the organization chart or landscape, first use the Clarity hierarchy people tools to find their names and email addresses, then pass them as invitees. Set includeProcessPeople to true to also invite everyone already listed as a person on this process. At most 25 unique recipients per call. Each invitee gets a Clarity process invitation, exactly as the Invite dialog creates one; someone already invited is sent their invitation again rather than a second one. Where the team has account-free interview links on, people without a Duvo account get a link that opens the interview directly and expires after 30 days, or seven days after a scheduled interview ends if that is later; everyone else gets the normal invitation that asks them to sign in. Pass schedule to book the interview: the email then carries a calendar invite for that time, sending again with a new time moves the same calendar event, and revoking the invitation cancels it. Revoke a pending invitation with deleteTeamInvite.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The Clarity process ID."
              },
              "message": {
                "type": "string",
                "maxLength": 500,
                "description": "Optional plain-text note added to each invitation email, at most 500 characters. Line breaks are collapsed and markup is shown as text."
              },
              "invitees": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "email"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "maxLength": 200,
                      "description": "The invitee's name, if it is known."
                    },
                    "email": {
                      "type": "string",
                      "format": "email",
                      "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                      "description": "The interview invitee's email address."
                    }
                  }
                },
                "maxItems": 25,
                "description": "People found through org-chart or landscape people tools. At most 25 unique recipients per call, counting includeProcessPeople."
              },
              "schedule": {
                "type": "object",
                "required": [
                  "startAt",
                  "durationMinutes",
                  "timeZone"
                ],
                "properties": {
                  "startAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "description": "When the interview starts, as an ISO 8601 date-time with an offset or Z, e.g. 2026-10-28T10:00:00+01:00. Must be in the future and at most 90 days ahead."
                  },
                  "timeZone": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1,
                    "description": "IANA time zone the time is shown in, e.g. Europe/Prague. The calendar shows it in each reader's own zone."
                  },
                  "durationMinutes": {
                    "type": "integer",
                    "maximum": 240,
                    "minimum": 15,
                    "description": "How long the interview is booked for, 15 to 240 minutes."
                  }
                },
                "description": "Optional time for the interview. The invitation email then carries a calendar invite for it, the interview link stays valid until a week after it, and a later send with a new time moves the same calendar event. At most 90 days ahead. Only available while calendar invites are on for the team."
              },
              "includeProcessPeople": {
                "type": "boolean",
                "description": "Also invite every active process person with an email address. Use this for people already assigned to the process."
              }
            }
          },
          "annotations": {
            "title": "Send Clarity Interview Invites",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listClarityInterviewInvites",
          "title": "List Clarity Interview Invites",
          "description": "List a Clarity process's pending and accepted invitations, newest first, with whether each was accepted, whether it was sent an account-free interview link, and whether the invitee has opened that link or submitted an interview. Paginate with limit and offset; total is the number of invitations. Revoke a pending invitation by passing its id to deleteTeamInvite.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The Clarity process ID."
              },
              "limit": {
                "type": "integer",
                "default": 50,
                "maximum": 100,
                "minimum": 1,
                "description": "Maximum number of invitations to return, newest first."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Number of invitations to skip, for the next page."
              }
            }
          },
          "annotations": {
            "title": "List Clarity Interview Invites",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getClarityProcessInviteLink",
          "title": "Get Clarity Process Invite Link",
          "description": "Get the active interview invite link for a process.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Get Clarity Process Invite Link",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "deleteClarityProcessInviteLink",
          "title": "Delete Clarity Process Invite Link",
          "description": "Delete the active interview invite link for a process.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Delete Clarity Process Invite Link",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "getClarityProcessJoinInfo",
          "title": "Get Clarity Process Join Info",
          "description": "Get information about a clarity interview invite link (public).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "token"
            ],
            "properties": {
              "token": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "Get Clarity Process Join Info",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "acceptClarityProcessJoin",
          "title": "Accept Clarity Process Join",
          "description": "Accept a clarity interview invite link and gain process access.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "token"
            ],
            "properties": {
              "token": {
                "type": "string"
              }
            }
          },
          "annotations": {
            "title": "Accept Clarity Process Join",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "updateClarityLandscapeNode",
          "title": "Update Clarity Landscape Node",
          "description": "Rename a process landscape node or update its owner label (team manager or above for team processes; organization admin for areas)",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "nodeId"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "nodeId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "ownerLabel": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "annotations": {
            "title": "Update Clarity Landscape Node",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "acceptClarityLandscapeNode",
          "title": "Accept Clarity Landscape Node",
          "description": "Accept a proposed area folder into the active process landscape, so it stops being a proposal and becomes part of the real structure (organization admin+). Only area folders can be accepted; a proposed process becomes real through assignClarityLandscapeNodeTeam instead. Re-accepting an already-active area is a no-op.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "nodeId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "nodeId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The proposed area folder to accept."
              }
            }
          },
          "annotations": {
            "title": "Accept Clarity Landscape Node",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "declineClarityLandscapeNode",
          "title": "Decline Clarity Landscape Node",
          "description": "Reject a proposed process landscape node while it is still a proposal, removing it and any proposed descendants. Real processes nested underneath survive and move back to Unsorted. Only proposals can be declined — an accepted node is removed with deleteClarityLandscapeNode.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "nodeId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "nodeId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The proposed node to reject."
              }
            }
          },
          "annotations": {
            "title": "Decline Clarity Landscape Node",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteClarityLandscapeNode",
          "title": "Delete Clarity Landscape Node",
          "description": "Soft-delete a tree node and its descendants. Organization admins may delete any subtree; team managers may delete a childless process node owned by their team. The targeted node's linked clarity process and captures are deleted, while nested processes detach to the Unsorted bag.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "nodeId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "nodeId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Delete Clarity Landscape Node",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "setClarityLandscapeNodePlacement",
          "title": "Set Clarity Landscape Node Placement",
          "description": "Move a process landscape node (team builder or above for team processes; team manager or above for team proposals; organization admin for areas)",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "nodeId",
              "parentId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "nodeId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "parentId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "annotations": {
            "title": "Set Clarity Landscape Node Placement",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "reorderClarityLandscapeAreas",
          "title": "Reorder Clarity Landscape Areas",
          "description": "Reorder a sibling group of the organization's process landscape area folders left-to-right — the top-level areas by default, or the folder children of parentId (organization admin+). This changes display order only; use setClarityLandscapeNodePlacement to move a node to a different parent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "orderedAreaIds"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "parentId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The parent area whose folder children are being reordered. Omit or pass null to reorder the top-level areas."
              },
              "orderedAreaIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "minItems": 1,
                "description": "Every area folder in the sibling group, exactly once, in the order you want them displayed left-to-right. Read the current siblings first (getClarityProcessTree); a partial list is rejected with 400."
              }
            }
          },
          "annotations": {
            "title": "Reorder Clarity Landscape Areas",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "assignClarityLandscapeNodeTeam",
          "title": "Assign Clarity Landscape Node Team",
          "description": "Set the owning team of a process in the process landscape (organization admin+). On a proposed process this accepts the proposal and creates the real process for that team; on an existing process it moves the process, its captures and its brief to another team.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "nodeId",
              "teamId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "intent": {
                "enum": [
                  "assign",
                  "accept-proposal"
                ],
                "type": "string",
                "description": "Pass \"accept-proposal\" when the node is expected to still be a proposed process; the call then fails if someone already accepted it, instead of silently moving a real process."
              },
              "nodeId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The process node whose owning team changes."
              },
              "teamId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The team that owns the process from now on. A process always belongs to a team, so null is rejected."
              }
            }
          },
          "annotations": {
            "title": "Assign Clarity Landscape Node Team",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "createClarityProcessNode",
          "title": "Create Clarity Process Node",
          "description": "File an existing Clarity process into an area of the process landscape (team builder or organization admin+). Use this for a process that already exists but sits in Unsorted; use proposeClarityLandscapeProcess to create a brand-new one.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "processId",
              "parentId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "parentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The area folder the process is filed under."
              },
              "processId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "An existing Clarity process to file into the landscape. Unsorted processes are listed as `unlinkedProcesses` by getClarityProcessLandscape."
              }
            }
          },
          "annotations": {
            "title": "Create Clarity Process Node",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "proposeClarityLandscapeProcess",
          "title": "Propose Clarity Landscape Process",
          "description": "Create a manual process in the organization's Process Landscape, either as an unassigned proposal or atomically assigned to an eligible team.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "teamId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "parentId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 5000
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "One short paragraph (1-3 sentences) saying why this process belongs in the landscape. Use only what you saw in the captures. Say what the process is (don't just repeat the name), show proof it really happens, and name where you heard it - be as specific as the captures allow, like \"a warehouse lead said so in their interview\" or \"it came up in two returns recordings\". Use only facts from the captures: never make up sources, people, dates, quotes, or numbers, and don't stretch what was said. If you have no real proof the process happens, don't propose it."
              },
              "materializationMode": {
                "enum": [
                  "auto",
                  "proposal"
                ],
                "type": "string",
                "description": "Use \"proposal\" to record a process the organization plausibly needs, owned by `teamId` for review, WITHOUT creating a real process record. `teamId` is then required. Chat-scoped callers may only propose for their pinned team; every caller needs Manager-or-above authority for that team. A proposal is idempotent: an equivalent live proposal under the same parent is returned untouched rather than duplicated. Defaults to \"auto\", which materializes a real process when `teamId` is set."
              }
            }
          },
          "annotations": {
            "title": "Propose Clarity Landscape Process",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "batchAddClarityLandscapeNodePeople",
          "title": "Batch Add Clarity Landscape Node People",
          "description": "Add one or more people to multiple Process Landscape nodes in a bounded batch. Email entries can create invitations; each node-person outcome reports success, conflict, or delivery failure.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "nodeIds",
              "people"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "people": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "email",
                    "processRole",
                    "teamRole"
                  ],
                  "properties": {
                    "name": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 200
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "email": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "teamRole": {
                      "enum": [
                        "team:owner",
                        "team:superadmin",
                        "team:admin",
                        "team:manager",
                        "team:builder",
                        "team:member",
                        "team:clarity-member"
                      ],
                      "type": "string"
                    },
                    "processRole": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 200
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 20,
                "minItems": 1
              },
              "nodeIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "maxItems": 20,
                "minItems": 1
              }
            }
          },
          "annotations": {
            "title": "Batch Add Clarity Landscape Node People",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listClarityLandscapeNodePeople",
          "title": "List Clarity Landscape Node People",
          "description": "List the people involved in the process behind one process landscape node. To read the people across the whole landscape in one request, use getClarityHierarchyPeople instead.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "nodeId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "nodeId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "A process landscape node that is linked to a real process."
              },
              "teamId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "List Clarity Landscape Node People",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "addClarityLandscapeNodePerson",
          "title": "Add Clarity Landscape Node Person",
          "description": "Add a person involved in the process behind a process landscape node. Name only records a placeholder; supplying an email also gives that person access to the process and emails them an invitation, so only pass an email the user asked you to invite.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "nodeId"
            ],
            "properties": {
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "role": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "nodeId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "A process landscape node that is linked to a real process."
              },
              "teamId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "teamRole": {
                "anyOf": [
                  {
                    "enum": [
                      "team:owner",
                      "team:superadmin",
                      "team:admin",
                      "team:manager",
                      "team:builder",
                      "team:member",
                      "team:clarity-member"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "annotations": {
            "title": "Add Clarity Landscape Node Person",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "updateClarityLandscapeNodePerson",
          "title": "Update Clarity Landscape Node Person",
          "description": "Change the role a person plays in the process behind a process landscape node (for example \"Approver\"). Send role: null to clear it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "nodeId",
              "personId"
            ],
            "properties": {
              "role": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "nodeId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "A process landscape node that is linked to a real process."
              },
              "teamId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "personId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The person entry to change, as returned by listClarityLandscapeNodePeople."
              }
            }
          },
          "annotations": {
            "title": "Update Clarity Landscape Node Person",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "removeClarityLandscapeNodePerson",
          "title": "Remove Clarity Landscape Node Person",
          "description": "Remove a person from the process behind a process landscape node, and revoke the process access they were granted when they were added.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "nodeId",
              "personId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "nodeId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "A process landscape node that is linked to a real process."
              },
              "teamId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "personId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The person entry to change, as returned by listClarityLandscapeNodePeople."
              },
              "pendingOnly": {
                "type": "string",
                "description": "Pass 'true' to cancel a pending invitation only. If the person has already accepted, nothing is removed and the request fails with 409."
              }
            }
          },
          "annotations": {
            "title": "Remove Clarity Landscape Node Person",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "acceptClarityTeamAssignmentSuggestion",
          "title": "Accept Clarity Team Assignment Suggestion",
          "description": "Accept a pending Process Landscape team-assignment suggestion and durably assign the suggested team (manager+).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "nodeId",
              "suggestionId"
            ],
            "properties": {
              "nodeId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "suggestionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Accept Clarity Team Assignment Suggestion",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "dismissClarityTeamAssignmentSuggestion",
          "title": "Dismiss Clarity Team Assignment Suggestion",
          "description": "Dismiss a pending Process Landscape team-assignment suggestion without changing the node's owner (manager+).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "nodeId",
              "suggestionId"
            ],
            "properties": {
              "nodeId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "suggestionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Dismiss Clarity Team Assignment Suggestion",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "getClarityProcess",
          "title": "Get Clarity Process",
          "description": "Get the v2 read model for a clarity process: the process row (with operational fields like generation_error, generation_progress, generation_started_at, generation_last_activity_at, custom_prompt), its captures, and the lightweight version arrays for both snapshot tabs. The full payload of any specific snapshot is fetched lazily via the unified per-snapshot detail endpoint (`GET .../snapshots/:kind/:id`); this read model deliberately doesn't carry it so the response stays small.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id"
            ],
            "properties": {
              "captures": {
                "enum": [
                  "full",
                  "lite"
                ],
                "type": "string",
                "default": "full",
                "description": "Capture payload mode. `full` (default) embeds each capture's transcript content. `lite` omits `transcript`/`videoTranscript` (returned as null) and relies on the `hasTranscript`/`hasVideoTranscript` flags; fetch content on demand via `GET .../captures/:capture_id`."
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              }
            }
          },
          "annotations": {
            "title": "Get Clarity Process",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getClarityCapture",
          "title": "Get Clarity Capture",
          "description": "Get a single Clarity v2 capture including full transcript and video transcript. Use this when the process was loaded with captures=lite, or when only one capture's transcript is needed.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "capture_id"
            ],
            "properties": {
              "capture_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The capture id"
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              }
            }
          },
          "annotations": {
            "title": "Get Clarity Capture",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "postprocessClaritySnapshot",
          "title": "Postprocess Clarity Snapshot",
          "description": "Re-run postprocessing agents on an existing v2 clarity snapshot. Targets either the current-process snapshot or the automation proposal snapshot, identified by id in the body. Flips the process status to `generating` and returns 202 immediately; agents run asynchronously and flip the status back to `review` once they settle.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "type"
            ],
            "properties": {
              "type": {
                "enum": [
                  "current_process",
                  "transformation_proposal"
                ],
                "type": "string",
                "description": "The snapshot kind to post-process."
              },
              "scope": {
                "enum": [
                  "all",
                  "missing_info"
                ],
                "type": "string",
                "description": "Only accepted when type is `current_process`. `missing_info` re-runs only the missing-info agent, on the live current process."
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              },
              "current_process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Required when type is `current_process`."
              },
              "transformation_proposal_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Required when type is `transformation_proposal`."
              }
            }
          },
          "annotations": {
            "title": "Postprocess Clarity Snapshot",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listClarityStepFrames",
          "title": "List Clarity Step Frames",
          "description": "Return one representative screenshare frame for each current-process step. Explicit frame evidence wins. Otherwise, a timestamped screenshare transcript source selects the closest persisted frame at or after that timestamp, with the closest earlier frame as fallback. Pass `window` (1-5) to also receive that many neighbouring frames on each side as candidates, for recovering when the selected frame does not show the step. Pass `size=thumb` for 768px copies that are cheaper to download and inspect. Signed URLs are short-lived and can be null when signing is unavailable.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "snapshot_id"
            ],
            "properties": {
              "size": {
                "enum": [
                  "full",
                  "thumb"
                ],
                "type": "string",
                "default": "full",
                "description": "full: the persisted screenshot (1920px wide). thumb: a 768px-wide copy, cheaper to download and to inspect visually; use it to check whether a frame shows the step, then fetch full for the document."
              },
              "window": {
                "type": "integer",
                "default": 0,
                "maximum": 5,
                "minimum": 0,
                "description": "Number of neighbouring persisted frames to return on each side of the selected frame as `candidates` (0-5, default 0). Use to recover when the selected frame does not show the step."
              },
              "step_ids": {
                "type": "string",
                "description": "Optional comma-separated step ids to resolve, for example `task-a,task-b` (maximum 100). Omit to resolve every step."
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              },
              "snapshot_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The current-process snapshot id"
              }
            }
          },
          "annotations": {
            "title": "List Clarity Step Frames",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "buildClarityAutomation",
          "title": "Build Clarity Automation",
          "description": "Hand an automation proposal for a v2 clarity process off to the workflow-builder pipeline. Builds from `transformation_proposal_id` when supplied, otherwise from the process's live proposal. The proposal id is the durable idempotency key, so retries return the same run and a different proposal starts a new run. Returns 202 while the LLM run completes asynchronously, or 409 when the resolved proposal is still being written.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id"
            ],
            "properties": {
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              },
              "transformation_proposal_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation-proposal snapshot to build the automation from. Defaults to the process's live proposal."
              }
            }
          },
          "annotations": {
            "title": "Build Clarity Automation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listClarityExtraCaptureRequests",
          "title": "List Clarity Extra Capture Requests",
          "description": "List active extra-capture requests for a given automation proposal of a Clarity v2 process. The caller is expected to know the proposal id from the V2 read model and skip the call when no proposal exists yet.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "transformation_proposal_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 20,
                "maximum": 100,
                "minimum": 1,
                "description": "Number of results per page (1-100, default 20)"
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Number of results to skip (default 0)"
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              },
              "transformation_proposal_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation proposal id"
              }
            }
          },
          "annotations": {
            "title": "List Clarity Extra Capture Requests",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "assignClarityExtraCaptureRequest",
          "title": "Assign Clarity Extra Capture Request",
          "description": "Assign (or unassign, with `user_id: null`) a team member to fulfil an extra-capture request. Restricted to Lead Builders and above.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "transformation_proposal_id",
              "request_id",
              "user_id"
            ],
            "properties": {
              "user_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Team member to assign, or null to unassign"
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              },
              "request_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The extra-capture-request id"
              },
              "transformation_proposal_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The automation proposal id"
              }
            }
          },
          "annotations": {
            "title": "Assign Clarity Extra Capture Request",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "createClarityInviteLink",
          "title": "Create Clarity Invite Link",
          "description": "Create or regenerate a process-scoped Clarity interview invite link. Only the process creator or team managers can create invite links; creating a new link invalidates any prior active link for the process.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id"
            ],
            "properties": {
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              }
            }
          },
          "annotations": {
            "title": "Create Clarity Invite Link",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "createClarityArtifactImportUploadUrl",
          "title": "Create Clarity Artifact Import Upload Url",
          "description": "Create a signed upload URL for importing a Miro export into a Clarity v2 process. Supports SVG, XML, PNG, and JPEG exports. The caller must upload the file to the returned URL, then complete the import.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "file_name",
              "content_type"
            ],
            "properties": {
              "file_name": {
                "type": "string",
                "pattern": "^.*\\.(?:[sS][vV][gG]|[xX][mM][lL]|[pP][nN][gG]|[jJ][pP][eE]?[gG])$",
                "minLength": 1,
                "description": "Name of the Miro export file. Supported extensions: .svg, .xml, .png, .jpg, .jpeg"
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              },
              "content_type": {
                "enum": [
                  "image/svg+xml",
                  "application/xml",
                  "text/xml",
                  "image/png",
                  "image/jpeg"
                ],
                "type": "string",
                "description": "MIME type of the Miro export file"
              },
              "extra_capture_request_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Optional extra-capture-request id to bind this import to"
              }
            }
          },
          "annotations": {
            "title": "Create Clarity Artifact Import Upload Url",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "completeClarityArtifactImport",
          "title": "Complete Clarity Artifact Import",
          "description": "Complete a Miro artifact import after uploading to the signed URL. The uploaded bytes are validated before the import becomes a usable Clarity capture.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "capture_id",
              "file_name",
              "content_type"
            ],
            "properties": {
              "file_name": {
                "type": "string",
                "pattern": "^.*\\.(?:[sS][vV][gG]|[xX][mM][lL]|[pP][nN][gG]|[jJ][pP][eE]?[gG])$",
                "minLength": 1,
                "description": "Name of the Miro export file. Supported extensions: .svg, .xml, .png, .jpg, .jpeg"
              },
              "capture_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The pending capture id returned by the upload-url endpoint"
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              },
              "content_type": {
                "enum": [
                  "image/svg+xml",
                  "application/xml",
                  "text/xml",
                  "image/png",
                  "image/jpeg"
                ],
                "type": "string",
                "description": "MIME type of the uploaded Miro export file"
              }
            }
          },
          "annotations": {
            "title": "Complete Clarity Artifact Import",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listClarityArtifactChatConversations",
          "title": "List Clarity Artifact Chat Conversations",
          "description": "List the current user's recent non-deleted artifact-chat conversations for a Clarity v2 process and snapshot kind.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "snapshot_kind"
            ],
            "properties": {
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The Clarity process id"
              },
              "snapshot_kind": {
                "enum": [
                  "current_process",
                  "transformation_proposal"
                ],
                "type": "string",
                "description": "Artifact kind to list conversations for"
              }
            }
          },
          "annotations": {
            "title": "List Clarity Artifact Chat Conversations",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getClarityArtifactChatMessages",
          "title": "Get Clarity Artifact Chat Messages",
          "description": "Load the latest artifact-chat messages for one active conversation, returned oldest-first.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "conversation_id"
            ],
            "properties": {
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The Clarity process id"
              },
              "conversation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The artifact-chat conversation id"
              }
            }
          },
          "annotations": {
            "title": "Get Clarity Artifact Chat Messages",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "deleteClarityArtifactChatConversation",
          "title": "Delete Clarity Artifact Chat Conversation",
          "description": "Soft-delete an open or running artifact-chat conversation for the current user.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "conversation_id"
            ],
            "properties": {
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The Clarity process id"
              },
              "conversation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The artifact-chat conversation id"
              }
            }
          },
          "annotations": {
            "title": "Delete Clarity Artifact Chat Conversation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "stopClarityArtifactChatConversation",
          "title": "Stop Clarity Artifact Chat Conversation",
          "description": "Stop an in-flight artifact-chat turn. Flips the conversation back to `open` first so the interrupted run's late webhooks are dropped as stale, then best-effort interrupts the cc-server execution.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "conversation_id"
            ],
            "properties": {
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "conversation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Stop Clarity Artifact Chat Conversation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "upgradeClarityProcess",
          "title": "Upgrade Clarity Process",
          "description": "Move a v1 clarity process into v2. Rows with generated analysis are reset in place and regenerated; rows without analysis migrate in place when not generating.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            }
          },
          "annotations": {
            "title": "Upgrade Clarity Process",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "listClarityProcessSnapshots",
          "title": "List Clarity Process Snapshots",
          "description": "List lightweight Clarity v2 process snapshots for one kind.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "kind"
            ],
            "properties": {
              "kind": {
                "enum": [
                  "current_process",
                  "transformation_proposal"
                ],
                "type": "string",
                "description": "Snapshot kind to list"
              },
              "limit": {
                "type": "integer",
                "default": 50,
                "maximum": 100,
                "minimum": 1
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              }
            }
          },
          "annotations": {
            "title": "List Clarity Process Snapshots",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getClarityProcessSnapshot",
          "title": "Get Clarity Process Snapshot",
          "description": "Fetch the full payload for a Clarity v2 process snapshot of either kind.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "kind",
              "snapshot_id"
            ],
            "properties": {
              "kind": {
                "enum": [
                  "current_process",
                  "transformation_proposal"
                ],
                "type": "string",
                "description": "Snapshot kind to list"
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              },
              "snapshot_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Snapshot id"
              }
            }
          },
          "annotations": {
            "title": "Get Clarity Process Snapshot",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "saveClarityProcessSnapshot",
          "title": "Save Clarity Process Snapshot",
          "description": "Save user edits as the live Clarity v2 snapshot for the selected kind.",
          "inputSchema": {
            "truncated": true,
            "chars": 149366
          },
          "annotations": {
            "title": "Save Clarity Process Snapshot",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "promoteClarityProcessSnapshot",
          "title": "Promote Clarity Process Snapshot",
          "description": "Promote a draft or historic Clarity v2 snapshot to live for its kind.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "kind",
              "snapshot_id"
            ],
            "properties": {
              "kind": {
                "enum": [
                  "current_process",
                  "transformation_proposal"
                ],
                "type": "string",
                "description": "Snapshot kind to list"
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              },
              "snapshot_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Snapshot id"
              }
            }
          },
          "annotations": {
            "title": "Promote Clarity Process Snapshot",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "revertClarityProcessSnapshot",
          "title": "Revert Clarity Process Snapshot",
          "description": "Archive a Clarity v2 snapshot of either kind. If the live row is archived, the repository auto-promotes the latest historic row of the same kind.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "kind",
              "snapshot_id"
            ],
            "properties": {
              "kind": {
                "enum": [
                  "current_process",
                  "transformation_proposal"
                ],
                "type": "string",
                "description": "Snapshot kind to list"
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              },
              "snapshot_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Snapshot id"
              }
            }
          },
          "annotations": {
            "title": "Revert Clarity Process Snapshot",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "generateClarityProcessSnapshot",
          "title": "Generate Clarity Process Snapshot",
          "description": "Trigger a snapshot generation pipeline for a v2 clarity process, selected by kind. `current_process` runs the generateCurrentProcess pipeline (body fields are proposal-only and rejected); `transformation_proposal` runs the generate or regenerate proposal pipeline. Returns 202 immediately and finalises asynchronously via the cc-server webhook stream.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "kind"
            ],
            "properties": {
              "kind": {
                "enum": [
                  "current_process",
                  "transformation_proposal"
                ],
                "type": "string",
                "description": "Snapshot kind to list"
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              },
              "custom_guidance": {
                "type": "string",
                "maxLength": 2000,
                "description": "Automation proposals only: optional freeform guidance for this generation. Used as high-priority design guidance, not source-of-truth evidence."
              },
              "regenerate_from": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation proposals only: id of a prior proposal snapshot to refine. When supplied, runs the regenerate pipeline using that proposal's current-process snapshot as the anchor and the extra captures collected since."
              },
              "source_snapshot_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Automation proposals only: id of the current-process snapshot to anchor the new proposal to. Defaults to the latest snapshot for the process."
              },
              "transformation_aggressiveness": {
                "enum": [
                  "none",
                  "conservative",
                  "aggressive",
                  "optimize"
                ],
                "type": "string",
                "default": "aggressive",
                "description": "Transformation proposals only: the transformation appetite. `aggressive`, `conservative`, and `none` redesign around Duvo automation with decreasing freedom to change the process; `optimize` standardizes and streamlines the process while every step stays performed by people."
              }
            }
          },
          "annotations": {
            "title": "Generate Clarity Process Snapshot",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "stopClarityProcessSnapshot",
          "title": "Stop Clarity Process Snapshot",
          "description": "Stop an in-flight snapshot generation for the selected kind. Reads the sandbox id from the process row, kills the sandbox, flips the process back to `review`, and clears the sandbox marker so any late webhook from the killed run is dropped as stale.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "process_id",
              "kind"
            ],
            "properties": {
              "kind": {
                "enum": [
                  "current_process",
                  "transformation_proposal"
                ],
                "type": "string",
                "description": "Snapshot kind to list"
              },
              "process_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The clarity process id"
              }
            }
          },
          "annotations": {
            "title": "Stop Clarity Process Snapshot",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "bulkGenerateClarityProcessSnapshots",
          "title": "Bulk Generate Clarity Process Snapshots",
          "description": "Start snapshot generation for many v2 clarity processes in the current team. Starts at most a share of the free sandbox capacity per call; the rest come back in `deferred` and should be sent again once some of the started runs finish. Processes that cannot start (already generating, no usable interviews, not found) come back in `skipped` with the reason.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "kind",
              "process_ids"
            ],
            "properties": {
              "kind": {
                "enum": [
                  "current_process",
                  "transformation_proposal"
                ],
                "type": "string",
                "description": "Snapshot kind to list"
              },
              "process_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "maxItems": 200,
                "minItems": 1,
                "description": "Clarity v2 process ids to generate maps for"
              },
              "transformation_aggressiveness": {
                "enum": [
                  "none",
                  "conservative",
                  "aggressive",
                  "optimize"
                ],
                "type": "string",
                "default": "aggressive",
                "description": "Transformation proposals only: the transformation appetite. `aggressive`, `conservative`, and `none` redesign around Duvo automation with decreasing freedom to change the process; `optimize` standardizes and streamlines the process while every step stays performed by people."
              }
            }
          },
          "annotations": {
            "title": "Bulk Generate Clarity Process Snapshots",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "createWorkspace",
          "title": "Create Workspace",
          "description": "Set up the user's Duvo workspace, or return the one they already have (`created: false`, nothing created). Call it first when the user has no workspace: other tools fail with 'User has no current team' until one exists. A new workspace is on the Free plan, with Clarity and Automation. `has_clarity_access` says whether the team's plan includes Clarity, `interviews_remaining` counts interviews left on the plan without subtracting people invited but not yet interviewed, and `billing_url` is where the user upgrades. If the user's organization or email domain is already on Duvo, the call is refused with a link the user must open.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "Create Workspace",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "inviteOrgMember",
          "title": "Invite Org Member",
          "description": "Invite a person to an organization you administer, optionally assigning them to a team in that organization. Requires an organization Admin, Executive, or Owner role. You cannot grant a role higher than your own.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "email",
              "role"
            ],
            "properties": {
              "role": {
                "enum": [
                  "organization:executive",
                  "organization:owner",
                  "organization:admin",
                  "organization:member"
                ],
                "type": "string"
              },
              "email": {
                "type": "string",
                "format": "email",
                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Organization ID"
              },
              "teamId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "sendEmail": {
                "type": "boolean",
                "description": "Email the invitation to the recipient. `false` always suppresses the email. When omitted, the legacy opt-in applies instead: the email is sent only if the deprecated `frontendUrl` is present. Omit both to create the invitation without notifying anyone."
              },
              "frontendUrl": {
                "type": "string",
                "format": "uri",
                "description": "Deprecated. Use `sendEmail` instead. Kept because its presence is the legacy opt-in for sending the invitation email; the value never sets the link host, which is always the server's configured frontend URL."
              }
            }
          },
          "annotations": {
            "title": "Invite Org Member",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listOrgTeams",
          "title": "List Org Teams",
          "description": "List teams belonging to an organization you are a member of, including your membership and role in each.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "limit": {
                "type": "number",
                "default": 50,
                "maximum": 100,
                "minimum": 1,
                "description": "Number of teams per page (1-100, default 50)"
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Organization ID"
              },
              "offset": {
                "type": "number",
                "minimum": 0,
                "description": "Number of teams to skip"
              },
              "search": {
                "type": "string",
                "maxLength": 200,
                "description": "Filter teams by name (case-insensitive substring match)"
              },
              "sortBy": {
                "enum": [
                  "createdAt",
                  "name"
                ],
                "type": "string",
                "default": "createdAt",
                "description": "Sort order: createdAt (newest first, default) or name (alphabetical)"
              }
            }
          },
          "annotations": {
            "title": "List Org Teams",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listOrgAgents",
          "title": "List Org Agents",
          "description": "List every agent across all teams in an organization, with the team it belongs to, the state of its most recent run and the state of its schedules. Intended for external monitoring: it answers 'which agents have gone silent' and 'which agents were switched off' without a request per team or per agent. Requires an organization Admin, Executive, or Owner role, and an API key scoped to all teams you can access — a key pinned to a single team is rejected, because this endpoint spans every team in the organization.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 20,
                "maximum": 100,
                "minimum": 1,
                "description": "Number of agents per page (1-100, default 20)"
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The organization's unique identifier"
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Number of agents to skip"
              },
              "team_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Filter to agents on this team"
              },
              "auto_disabled": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "description": "If true, only agents whose schedule was switched off automatically (e.g. after repeated missing-connection failures); if false, only agents with no auto-disabled schedule"
              },
              "schedule_enabled": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "description": "If true, only agents with at least one enabled schedule; if false, only agents with none (including agents that are never scheduled)"
              }
            }
          },
          "annotations": {
            "title": "List Org Agents",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listOrgRuns",
          "title": "List Org Runs",
          "description": "List runs across every team in an organization, filtered by status, agent, team, source, evaluation issues and time. Intended for external monitoring: one call covers the whole org instead of one per team. Requires an organization Admin, Executive, or Owner role, and an API key scoped to all teams you can access — a key pinned to a single team is rejected, because this endpoint spans every team in the organization.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 20,
                "maximum": 500,
                "minimum": 1,
                "description": "Number of runs per page (1-500, default 20). The cap is higher than the team runs endpoint's because this route serves bulk export: at 100 requests a minute per key, page size is what bounds how fast a month of runs can be pulled."
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The organization's unique identifier"
              },
              "since": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Alias of `completed_after`, kept because it is the name the public team runs endpoint ships. Prefer `completed_after`: this endpoint carries a creation and a start window too, and only the column-named pair says which one this is."
              },
              "until": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Alias of `completed_before`, kept because it is the name the public team runs endpoint ships. Prefer `completed_before`."
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "description": "Resume after the run a previous page ended on: pass the `next_cursor` that page returned, with the same filters and sort_order. Runs created or resolved in between cannot shift a boundary you have already passed, so a sweep sees every run exactly once, and a sweep that started under the default 7-day window keeps that window on every page. This list has no offset parameter: skipping rows costs the database every skipped row, and a run created between two requests shifts every later offset by one, so an offset sweep can repeat or miss a run. 400 when the value is not a cursor this endpoint issued."
              },
              "source": {
                "type": "string",
                "description": "Filter to runs created from this source (e.g. api, scheduling)"
              },
              "status": {
                "enum": [
                  "not_started",
                  "pending",
                  "starting",
                  "running",
                  "waiting",
                  "completed",
                  "failed",
                  "interrupted",
                  "expired",
                  "stopped",
                  "needs_attention"
                ],
                "type": "string",
                "description": "Filter to runs with this status. `needs_attention` is the monitoring status: runs that are waiting on a human or failed, plus runs whose latest evaluation flagged a critical issue — a run can finish as `completed` and still have accomplished nothing."
              },
              "team_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Filter to runs on this team"
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Filter to runs for this agent"
              },
              "count_only": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "default": "false",
                "description": "Skip row selection and enrichment. The normal list response shape is returned with an empty row array and the matching total."
              },
              "has_issues": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "description": "Filter on the run's latest successful evaluation: true returns only runs it flagged, false only runs it did not. Only the latest evaluation counts — an older flag does not match — and a run whose latest evaluation errored, or that has none, counts as unflagged. Omit to return both."
              },
              "sort_order": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "default": "desc",
                "description": "Sort direction on created_at (default desc)"
              },
              "created_after": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Return runs created at or after this ISO-8601 timestamp. Every run has a creation time, so this is the window that returns all runs in a period whatever state they reached — unlike the started and completed windows below, which exclude runs that never started and runs still in flight respectively. When the request carries no lower time bound (`created_after`, `started_after`, `completed_after` or `since`), this defaults to 7 days ago and `default_window_applied` is true in the response: an organization's run history is unbounded, and a monitor wants what is recent. An upper bound alone keeps the default floor. Pass any lower bound to replace it."
              },
              "include_total": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "default": "false",
                "description": "Return `total`, the count of every matching run ignoring pagination. Off by default: counting walks every match where the page stops at `limit`, so on a large organization it costs orders of magnitude more than the rows themselves. Ask for it when you are driving a pager, not when you are polling. Implied by `count_only`."
              },
              "started_after": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Return runs that started at or after this ISO-8601 timestamp. Runs that never started are excluded. Pair with `started_before` to bound a stuck-run query to a window — without a lower bound, `status=running` also counts every run left running months ago."
              },
              "created_before": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Return runs created before this ISO-8601 timestamp (exclusive). Pair with `created_after` for a period. A closed creation window is also the stable one to paginate: results are ordered by creation time, so runs arriving mid-sweep cannot shift a closed window's pages."
              },
              "issue_severity": {
                "enum": [
                  "critical",
                  "medium",
                  "low"
                ],
                "type": "string",
                "description": "Only runs whose latest successful evaluation has at least one failing rubric at this severity (critical | medium | low). Implies has_issues."
              },
              "started_before": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Return runs that started before this ISO-8601 timestamp. Combine with status=running to find stuck runs — `since`/`until` filter on completion, so they never match a run that is still going."
              },
              "completed_after": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Return runs completed at or after this ISO-8601 timestamp. Runs that have not completed are excluded, including every stuck one — reach for `started_after`/`started_before` to bound those. Alias of `since`; pass one or the other, not both."
              },
              "completed_before": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Return runs completed before this ISO-8601 timestamp (exclusive). Runs that have not completed are excluded. Alias of `until`; pass one or the other, not both."
              }
            }
          },
          "annotations": {
            "title": "List Org Runs",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getOrgInsightsHeadline",
          "title": "Get Org Insights Headline",
          "description": "Get org-wide headline insight KPIs (run totals, success rate, distinct active agents and users) aggregated across every team in the organization. Requires an organization Admin, Executive, or Owner role.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The organization's unique identifier"
              },
              "endDate": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "End of the aggregation window (ISO 8601 datetime, exclusive). Defaults to now; clamped to now."
              },
              "startDate": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Start of the aggregation window (ISO 8601 datetime). Defaults to 30 days ago; clamped to at most 365 days ago."
              }
            }
          },
          "annotations": {
            "title": "Get Org Insights Headline",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getOrgInsightsMetrics",
          "title": "Get Org Insights Metrics",
          "description": "Get org-level insights metrics (runs, assignments, schedules) broken down per team across the organization. Requires an organization Admin, Executive, or Owner role.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The organization's unique identifier"
              },
              "endDate": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "End of the aggregation window (ISO 8601 datetime). Defaults to now; clamped to now."
              },
              "startDate": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Start of the aggregation window (ISO 8601 datetime). Defaults to 7 days ago; clamped to at most 365 days ago."
              }
            }
          },
          "annotations": {
            "title": "Get Org Insights Metrics",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getOrgInsightsUsageChart",
          "title": "Get Org Insights Usage Chart",
          "description": "Get org-level run-volume buckets (scheduled vs on-demand) at day/week/month granularity across the organization. Requires an organization Admin, Executive, or Owner role.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "startDate",
              "endDate",
              "granularity"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The organization's unique identifier"
              },
              "endDate": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "End of the chart window (ISO 8601 datetime). Clamped to now."
              },
              "timezone": {
                "type": "string",
                "pattern": "^[A-Za-z_]+(?:\\/[A-Za-z_\\-+0-9]+){0,2}$",
                "maxLength": 64,
                "description": "IANA timezone for bucket boundaries (e.g. America/New_York). Defaults to UTC."
              },
              "startDate": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Start of the chart window (ISO 8601 datetime). Clamped to at most 365 days ago."
              },
              "granularity": {
                "enum": [
                  "day",
                  "week",
                  "month"
                ],
                "type": "string",
                "description": "Bucket size: day, week, or month"
              }
            }
          },
          "annotations": {
            "title": "Get Org Insights Usage Chart",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "createOrgTeam",
          "title": "Create Org Team",
          "description": "Create a new team under an organization you administer. Requires an organization Admin, Executive, or Owner role.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Organization ID"
              }
            }
          },
          "annotations": {
            "title": "Create Org Team",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "organizeClarityProcessLandscape",
          "title": "Organize Clarity Process Landscape",
          "description": "Start an asynchronous organization pass over the organization's unfiled processes, placing them into the Process Landscape where possible (organization admin+). Results appear progressively; started is false when there is nothing to organize.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "instructions": {
                "type": "string",
                "description": "Deprecated: ignored. The organize pass takes no instructions."
              }
            }
          },
          "annotations": {
            "title": "Organize Clarity Process Landscape",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "getClarityProcessTree",
          "title": "Get Clarity Process Tree",
          "description": "Fetch the organization's process tree, or the subtree under rootId. Narrow a large organization with `rootId` (one subtree) or `ownerTeamId` (one team's processes) — a whole-organization tree is large enough to be refused by response-size caps",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "rootId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "ownerTeamId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Only return process nodes owned by this team, plus the folder nodes that carry them. 404s when the team has no readable Process Landscape"
              }
            }
          },
          "annotations": {
            "title": "Get Clarity Process Tree",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getClarityProcessLandscape",
          "title": "Get Clarity Process Landscape",
          "description": "Fetch the organization's full process landscape with process summaries, team assignments, and page-level stats",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "rootId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "teamId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Get Clarity Process Landscape",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getClarityHierarchyPeople",
          "title": "Get Clarity Hierarchy People",
          "description": "List the people attached to every authorized linked process node in the organization's Process Landscape. Returns a flat list where each person carries `nodeId` and `processId`, plus their role, invite status, and capture count. Narrow it with `rootId` (one subtree), `ownerTeamId` (one owning team), and `userId` or `search` (one person) — an unfiltered organization roster is large enough to be refused by response-size caps. To find the processes where one person has not captured yet, filter to that person and read `captureCount` per row. `truncated` is true when the node subtree or any single process roster was capped.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "rootId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Only return rosters for nodes in the subtree under this node"
              },
              "search": {
                "type": "string",
                "maxLength": 200,
                "description": "Only return rows whose person name or email contains this text, case-insensitively"
              },
              "userId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Only return rows for this platform user, matched on the same resolved identity the roster reports (an email-only row resolves through its organization profile)"
              },
              "ownerTeamId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Only return rosters for processes owned by this team. 404s when the team has no readable Process Landscape"
              }
            }
          },
          "annotations": {
            "title": "Get Clarity Hierarchy People",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listClarityLandscapeCaptures",
          "title": "List Clarity Landscape Captures",
          "description": "List the organization's Process Landscape captures. By default, only captures eligible to seed new process proposals are returned; excluded captures can be included for inspection.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 100,
                "maximum": 200,
                "minimum": 1,
                "description": "Number of captures to return (1-200, default 100)"
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "include_excluded": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "default": "false",
                "description": "Include captures excluded from Process Landscape analysis"
              },
              "includeTranscripts": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "default": "false",
                "description": "Include full capture transcripts (large); off by default. Pass the literal string 'true' or 'false' (z.coerce.boolean treats any non-empty value, including 'false', as true)."
              }
            }
          },
          "annotations": {
            "title": "List Clarity Landscape Captures",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "generateClarityProcessLandscape",
          "title": "Generate Clarity Process Landscape",
          "description": "Start a process-landscape generation run for the organization from its eligible Clarity captures (organization executives and owners)",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Generate Clarity Process Landscape",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "createClarityLandscapeNode",
          "title": "Create Clarity Landscape Node",
          "description": "Create an area folder in the process tree. An active area (the default) requires organization admin+ or manager+ on a team of the organization; a \"proposal\" area may be added by any organization member.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "parentId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "ownerLabel": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "One or two sentences saying what family of work this area groups. Persisted as the area's summary."
              },
              "creationMode": {
                "enum": [
                  "active",
                  "proposal"
                ],
                "type": "string",
                "description": "Use \"proposal\" to add an area for review instead of asserting it exists. A proposal is idempotent: an equivalent live area under the same parent is returned untouched rather than duplicated. Defaults to \"active\"."
              }
            }
          },
          "annotations": {
            "title": "Create Clarity Landscape Node",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listClarityProcessLinks",
          "title": "List Clarity Process Links",
          "description": "List process-to-process links in the organization's Clarity landscape that are visible within the caller's team access scope. Use `node_id` to find links touching a specific process node.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 100,
                "maximum": 500,
                "minimum": 1,
                "description": "Number of links per page (1-500, default 100)"
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Number of links to skip (default 0)"
              },
              "node_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Only return links that touch this hierarchy process node"
              }
            }
          },
          "annotations": {
            "title": "List Clarity Process Links",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "createClarityProcessLink",
          "title": "Create Clarity Process Link",
          "description": "Create a process-to-process link in the organization's Clarity landscape when the caller can manage both endpoint teams. If the same live source, target, and type already exists, the existing link is returned.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "source_node_id",
              "target_node_id",
              "type"
            ],
            "properties": {
              "type": {
                "enum": [
                  "hands_off_to",
                  "shares_step_with",
                  "variant_of"
                ],
                "type": "string",
                "description": "Relationship type between the source process node and target process node"
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "state": {
                "enum": [
                  "suggested",
                  "confirmed"
                ],
                "type": "string",
                "default": "confirmed",
                "description": "Whether the link is suggested by Duvo or confirmed by a user"
              },
              "confidence": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 1,
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Optional confidence score from 0 to 1"
              },
              "source_node_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Hierarchy node id for the source process"
              },
              "target_node_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Hierarchy node id for the target process"
              }
            }
          },
          "annotations": {
            "title": "Create Clarity Process Link",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "updateClarityProcessLink",
          "title": "Update Clarity Process Link",
          "description": "Update a process-to-process link in the organization's Clarity landscape when the caller can manage both endpoint teams.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "process_link_id"
            ],
            "properties": {
              "type": {
                "enum": [
                  "hands_off_to",
                  "shares_step_with",
                  "variant_of"
                ],
                "type": "string",
                "description": "Relationship type between the source process node and target process node"
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "state": {
                "enum": [
                  "suggested",
                  "confirmed"
                ],
                "type": "string",
                "description": "Whether the link is suggested by Duvo or confirmed by a user"
              },
              "confidence": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 1,
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Confidence score from 0 to 1, or null to clear it"
              },
              "source_node_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Replacement hierarchy node id for the source process"
              },
              "target_node_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Replacement hierarchy node id for the target process"
              },
              "process_link_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Unique process-link identifier"
              }
            }
          },
          "annotations": {
            "title": "Update Clarity Process Link",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteClarityProcessLink",
          "title": "Delete Clarity Process Link",
          "description": "Delete a process-to-process link from the organization's Clarity landscape when the caller can manage both endpoint teams.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "process_link_id"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "process_link_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Unique process-link identifier"
              }
            }
          },
          "annotations": {
            "title": "Delete Clarity Process Link",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "setClarityLandscapePriorities",
          "title": "Set Clarity Landscape Priorities",
          "description": "Set or clear heatmap priorities in one batch (team managers for their processes; organization admin+ across the organization)",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "org_id",
              "priorities"
            ],
            "properties": {
              "org_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Organization whose landscape is being assessed."
              },
              "priorities": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "node_id",
                    "priority"
                  ],
                  "properties": {
                    "node_id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                      "description": "Process landscape node receiving the assessment."
                    },
                    "priority": {
                      "anyOf": [
                        {
                          "enum": [
                            "high",
                            "medium",
                            "low"
                          ],
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Priority to set, or null to clear the assessment."
                    },
                    "reasoning": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 2000
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Brief rationale for the priority."
                    }
                  }
                },
                "maxItems": 200,
                "minItems": 1,
                "description": "Process priority updates applied atomically."
              }
            }
          },
          "annotations": {
            "title": "Set Clarity Landscape Priorities",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listClarityOrganizationInterviews",
          "title": "List Clarity Organization Interviews",
          "description": "List Clarity interviews across an organization",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 50,
                "maximum": 100,
                "minimum": 1
              },
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "scope": {
                "enum": [
                  "team",
                  "organization"
                ],
                "type": "string"
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0
              }
            }
          },
          "annotations": {
            "title": "List Clarity Organization Interviews",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getClarityOrganizationInterview",
          "title": "Get Clarity Organization Interview",
          "description": "Load a single organization Clarity interview with transcript",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "interviewId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "interviewId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The organization interview ID"
              }
            }
          },
          "annotations": {
            "title": "Get Clarity Organization Interview",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "inviteClarityOrganizationNotetaker",
          "title": "Invite Clarity Organization Notetaker",
          "description": "Invite the in-meeting notetaker bot (Recall.ai) to a live meeting; the recording lands as an organization Clarity interview",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "meetingUrl"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "title": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "joinAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "meetingUrl": {
                "type": "string",
                "format": "uri",
                "maxLength": 2048
              },
              "extraCaptureRequestId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              }
            }
          },
          "annotations": {
            "title": "Invite Clarity Organization Notetaker",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "finalizeClarityOrganizationInterview",
          "title": "Finalize Clarity Organization Interview",
          "description": "Manually mark an in-progress organization interview as complete without requiring final media uploads",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "interviewId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "interviewId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The organization interview ID"
              }
            }
          },
          "annotations": {
            "title": "Finalize Clarity Organization Interview",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "updateClarityOrganizationInterview",
          "title": "Update Clarity Organization Interview",
          "description": "Rename an organization landscape Clarity capture",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "interviewId",
              "title"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "title": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "interviewId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The organization interview ID"
              }
            }
          },
          "annotations": {
            "title": "Update Clarity Organization Interview",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteClarityOrganizationInterview",
          "title": "Delete Clarity Organization Interview",
          "description": "Delete an organization-level Clarity interview",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "interviewId"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "interviewId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The organization interview ID"
              }
            }
          },
          "annotations": {
            "title": "Delete Clarity Organization Interview",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "createClarityOrganizationDocumentUploadUrl",
          "title": "Create Clarity Organization Document Upload Url",
          "description": "Create a signed URL for uploading a PDF, Word (.docx), TXT, Markdown, or BPMN document as an organization-level Clarity capture",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "fileName",
              "contentType"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "description": "Name of the document file"
              },
              "contentType": {
                "enum": [
                  "application/pdf",
                  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                  "text/plain",
                  "text/markdown",
                  "application/xml"
                ],
                "type": "string",
                "description": "MIME type of the document"
              }
            }
          },
          "annotations": {
            "title": "Create Clarity Organization Document Upload Url",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "completeClarityOrganizationDocumentUpload",
          "title": "Complete Clarity Organization Document Upload",
          "description": "Complete an organization document capture after uploading to GCS; extracts text and stores it as a transcript so it feeds Process Landscape generation",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "orgId",
              "interviewId",
              "fileName"
            ],
            "properties": {
              "orgId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "description": "Name of the uploaded document file"
              },
              "interviewId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The organization interview ID"
              }
            }
          },
          "annotations": {
            "title": "Complete Clarity Organization Document Upload",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listMyOrganizations",
          "title": "List My Organizations",
          "description": "List the organizations the current user belongs to, with their role (organization:member, organization:admin, organization:owner, or organization:executive) and member count in each. Use this to check whether the user has an admin-or-above role before calling organization-scoped endpoints, which reject lower roles with 403.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "List My Organizations",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getClarityExport",
          "title": "Get Clarity Export",
          "description": "Get a Clarity export run by ID",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            }
          },
          "annotations": {
            "title": "Get Clarity Export",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getQueue",
          "title": "Get Queue",
          "description": "Get a queue by ID.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Get Queue",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listQueueAggregations",
          "title": "List Queue Aggregations",
          "description": "List a queue's aggregation definitions.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 50,
                "maximum": 100,
                "minimum": 1
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Queue Aggregations",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "createQueueAggregation",
          "title": "Create Queue Aggregation",
          "description": "Create an immutable aggregation definition on a queue.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "definition"
            ],
            "properties": {
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "definition": {
                "type": "object",
                "required": [
                  "name",
                  "measures"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                  },
                  "limit": {
                    "type": "integer",
                    "maximum": 500,
                    "minimum": 1
                  },
                  "order": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "field",
                        "direction"
                      ],
                      "properties": {
                        "field": {
                          "type": "string",
                          "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                        },
                        "direction": {
                          "enum": [
                            "asc",
                            "desc"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 8
                  },
                  "filters": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "path",
                        "operator"
                      ],
                      "properties": {
                        "path": {
                          "type": "string",
                          "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                        },
                        "value": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              },
                              "maxItems": 100,
                              "minItems": 1
                            }
                          ]
                        },
                        "operator": {
                          "enum": [
                            "equals",
                            "notEquals",
                            "in",
                            "notIn",
                            "gt",
                            "gte",
                            "lt",
                            "lte",
                            "contains",
                            "isSet",
                            "isNotSet"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 12
                  },
                  "measures": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "operation"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                        },
                        "path": {
                          "type": "string",
                          "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                        },
                        "operation": {
                          "enum": [
                            "count",
                            "sum",
                            "avg",
                            "min",
                            "max",
                            "count_distinct",
                            "p50",
                            "p90",
                            "p95",
                            "p99"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 8,
                    "minItems": 1
                  },
                  "dimensions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "path"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                        },
                        "path": {
                          "type": "string",
                          "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 4
                  },
                  "caseFilters": {
                    "type": "object",
                    "properties": {
                      "labelIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                        },
                        "maxItems": 100,
                        "minItems": 1
                      },
                      "statuses": {
                        "type": "array",
                        "items": {
                          "enum": [
                            "pending",
                            "in_progress",
                            "needs_input",
                            "postponed",
                            "evaluating",
                            "success",
                            "issues",
                            "completed",
                            "failed",
                            "canceled"
                          ],
                          "type": "string"
                        },
                        "maxItems": 10,
                        "minItems": 1
                      },
                      "priorities": {
                        "type": "array",
                        "items": {
                          "enum": [
                            "none",
                            "medium",
                            "high"
                          ],
                          "type": "string"
                        },
                        "maxItems": 3,
                        "minItems": 1
                      },
                      "createdAtTo": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                      },
                      "createdAtFrom": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                      }
                    },
                    "additionalProperties": false
                  },
                  "timeDimension": {
                    "type": "object",
                    "required": [
                      "name",
                      "path",
                      "granularity"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                      },
                      "path": {
                        "type": "string",
                        "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                      },
                      "granularity": {
                        "enum": [
                          "hour",
                          "day",
                          "week",
                          "month",
                          "quarter",
                          "year"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "maximum_stale_age_seconds": {
                "type": "integer",
                "maximum": 604800,
                "minimum": 1
              }
            }
          },
          "annotations": {
            "title": "Create Queue Aggregation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "evaluateQueueAggregation",
          "title": "Evaluate Queue Aggregation",
          "description": "Evaluate an aggregation definition against the current data without persisting it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "definition"
            ],
            "properties": {
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "definition": {
                "type": "object",
                "required": [
                  "name",
                  "measures"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                  },
                  "limit": {
                    "type": "integer",
                    "maximum": 500,
                    "minimum": 1
                  },
                  "order": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "field",
                        "direction"
                      ],
                      "properties": {
                        "field": {
                          "type": "string",
                          "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                        },
                        "direction": {
                          "enum": [
                            "asc",
                            "desc"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 8
                  },
                  "filters": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "path",
                        "operator"
                      ],
                      "properties": {
                        "path": {
                          "type": "string",
                          "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                        },
                        "value": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              },
                              "maxItems": 100,
                              "minItems": 1
                            }
                          ]
                        },
                        "operator": {
                          "enum": [
                            "equals",
                            "notEquals",
                            "in",
                            "notIn",
                            "gt",
                            "gte",
                            "lt",
                            "lte",
                            "contains",
                            "isSet",
                            "isNotSet"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 12
                  },
                  "measures": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "operation"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                        },
                        "path": {
                          "type": "string",
                          "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                        },
                        "operation": {
                          "enum": [
                            "count",
                            "sum",
                            "avg",
                            "min",
                            "max",
                            "count_distinct",
                            "p50",
                            "p90",
                            "p95",
                            "p99"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 8,
                    "minItems": 1
                  },
                  "dimensions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "path"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                        },
                        "path": {
                          "type": "string",
                          "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 4
                  },
                  "caseFilters": {
                    "type": "object",
                    "properties": {
                      "labelIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                        },
                        "maxItems": 100,
                        "minItems": 1
                      },
                      "statuses": {
                        "type": "array",
                        "items": {
                          "enum": [
                            "pending",
                            "in_progress",
                            "needs_input",
                            "postponed",
                            "evaluating",
                            "success",
                            "issues",
                            "completed",
                            "failed",
                            "canceled"
                          ],
                          "type": "string"
                        },
                        "maxItems": 10,
                        "minItems": 1
                      },
                      "priorities": {
                        "type": "array",
                        "items": {
                          "enum": [
                            "none",
                            "medium",
                            "high"
                          ],
                          "type": "string"
                        },
                        "maxItems": 3,
                        "minItems": 1
                      },
                      "createdAtTo": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                      },
                      "createdAtFrom": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                      }
                    },
                    "additionalProperties": false
                  },
                  "timeDimension": {
                    "type": "object",
                    "required": [
                      "name",
                      "path",
                      "granularity"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                      },
                      "path": {
                        "type": "string",
                        "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                      },
                      "granularity": {
                        "enum": [
                          "hour",
                          "day",
                          "week",
                          "month",
                          "quarter",
                          "year"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "annotations": {
            "title": "Evaluate Queue Aggregation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "getQueueAggregationResult",
          "title": "Get Queue Aggregation Result",
          "description": "Read an aggregation definition's cached result.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "definition_id"
            ],
            "properties": {
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "definition_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The aggregation definition's identifier"
              }
            }
          },
          "annotations": {
            "title": "Get Queue Aggregation Result",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "refreshQueueAggregation",
          "title": "Refresh Queue Aggregation",
          "description": "Force a fresh recompute of an aggregation definition.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "definition_id"
            ],
            "properties": {
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "definition_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The aggregation definition's identifier"
              }
            }
          },
          "annotations": {
            "title": "Refresh Queue Aggregation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "deleteQueueAggregation",
          "title": "Delete Queue Aggregation",
          "description": "Soft-delete an aggregation definition.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "definition_id"
            ],
            "properties": {
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "definition_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The aggregation definition's identifier"
              }
            }
          },
          "annotations": {
            "title": "Delete Queue Aggregation",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "updateQueue",
          "title": "Update Queue",
          "description": "Update a queue.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "New queue name. A standalone queue's name must be unique within the team, and a queue inside an automation's name must be unique within that automation. Queue names are not versioned, so this is the canonical name on any Automations workspace team, with or without revisions. A revision carrying a per-revision name override applies it over this one when that revision is activated."
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "folder_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "New folder id, or null to move to the root."
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "New description, or null to clear."
              }
            }
          },
          "annotations": {
            "title": "Update Queue",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "pauseQueue",
          "title": "Pause Queue",
          "description": "Pause a queue. A paused queue starts no new case: runs already in progress finish, and its pending cases stay pending until the queue is resumed. The pause applies immediately, whether or not the team uses automation revisions, and activating or rolling back a revision does not change it. Pausing a paused queue changes nothing. Only a builder or team admin, or someone whose case trigger on the queue is on, can pause it. Pausing is rolling out and may not be available to every team yet; where it is not, the request answers 403. Resuming is always available.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Pause Queue",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "resumeQueue",
          "title": "Resume Queue",
          "description": "Resume a paused queue. Its pending cases start on the next dispatch, within the queue's concurrency limit. Resuming a queue that is not paused changes nothing. Only a builder or team admin, or someone whose case trigger on the queue is on, can resume it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Resume Queue",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "deleteQueue",
          "title": "Delete Queue",
          "description": "Delete a queue. Interrupts all associated active runs first and returns the number of deleted cases plus the IDs of runs that were stopped.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Delete Queue",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "exportCases",
          "title": "Export Cases",
          "description": "Export a queue's cases, respecting the same status, severity, failure source, approval, priority, label, date-range, json_data field, and free-text filters as the list view. Set awaiting_my_approval to export only the cases holding an unanswered approval row assigned to you; like the list view it resolves to the authenticated caller, so a credential with no user behind it is rejected rather than exporting an empty file. `format: \"json\"` (default) returns a re-importable JSON payload; `format: \"csv\"` returns a text/csv file with the columns id, title, status, priority, labels, created_at, updated_at, completed_at, postponed_to, data.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "format": {
                "enum": [
                  "json",
                  "csv"
                ],
                "type": "string",
                "default": "json"
              },
              "search": {
                "type": "string"
              },
              "filters": {
                "type": "object",
                "default": {},
                "properties": {
                  "labels": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "status": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "all",
                        "pending",
                        "processing",
                        "needs_input",
                        "postponed",
                        "needs_review",
                        "resolved",
                        "canceled",
                        "claimed",
                        "completed",
                        "failed"
                      ],
                      "type": "string"
                    }
                  },
                  "priority": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "none",
                        "medium",
                        "high"
                      ],
                      "type": "string"
                    }
                  },
                  "json_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "path",
                        "operator"
                      ],
                      "properties": {
                        "path": {
                          "type": "string",
                          "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                        },
                        "value": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              },
                              "maxItems": 100,
                              "minItems": 1
                            }
                          ]
                        },
                        "operator": {
                          "enum": [
                            "equals",
                            "notEquals",
                            "in",
                            "notIn",
                            "gt",
                            "gte",
                            "lt",
                            "lte",
                            "contains",
                            "isSet",
                            "isNotSet"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 12
                  },
                  "created_at_to": {
                    "type": "string"
                  },
                  "updated_at_to": {
                    "type": "string"
                  },
                  "failure_source": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "system",
                        "manual"
                      ],
                      "type": "string"
                    },
                    "description": "Keep only failed Cases, by who failed them: `system` when Duvo could not finish the Case, `manual` when a person marked it failed."
                  },
                  "issue_severity": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "critical",
                        "medium"
                      ],
                      "type": "string"
                    }
                  },
                  "completed_at_to": {
                    "type": "string",
                    "description": "Keep Cases that reached an outcome before this time (exclusive). An ISO timestamp or a lookback such as `7d` or `12h`."
                  },
                  "created_at_from": {
                    "type": "string"
                  },
                  "updated_at_from": {
                    "type": "string"
                  },
                  "completed_at_from": {
                    "type": "string",
                    "description": "Keep Cases that reached an outcome at or after this time (inclusive). An ISO timestamp or a lookback such as `7d` or `12h`."
                  },
                  "awaiting_my_approval": {
                    "type": "boolean"
                  }
                }
              },
              "sort_by": {
                "enum": [
                  "created_at",
                  "updated_at",
                  "postponed_to"
                ],
                "type": "string",
                "default": "created_at"
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "sort_order": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "default": "asc"
              }
            }
          },
          "annotations": {
            "title": "Export Cases",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "getCase",
          "title": "Get Case",
          "description": "Get a case by ID. Returns the case, its event history, and every case-approval batch ever created on the case (newest first).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "case_id"
            ],
            "properties": {
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case's unique identifier"
              },
              "include_blockers": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "description": "Also return `blocker` on each case: for a case waiting to start, why the dispatcher cannot start it now, or null when nothing blocks it. Off by default, because it adds database reads; when off, `blocker` is left out."
              }
            }
          },
          "annotations": {
            "title": "Get Case",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateCase",
          "title": "Update Case",
          "description": "Edit a case's title and/or its data payload. Provide at least one field. For the payload, send free-form `data` OR a structured `json_data` object, never both. `json_data` is validated against the queue's Case schema and requires the queue to have one; a case that is already typed against a schema keeps its structured payload and rejects a free-text `data` write. Works on pending, in-progress, and settled cases. Other attributes (status, priority, labels) have their own dedicated endpoints. Returns the updated case with its event history and approval batches.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "case_id"
            ],
            "properties": {
              "data": {
                "type": "string",
                "description": "New free-form data payload handed to the agent when the case is claimed. Mutually exclusive with `json_data`."
              },
              "title": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1,
                "description": "New case title (1–500 characters)."
              },
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case's unique identifier"
              },
              "json_data": {
                "type": "object",
                "description": "New structured payload for a case on a queue that has a Case schema. Validated against that schema and mutually exclusive with `data`.",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            }
          },
          "annotations": {
            "title": "Update Case",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "setCaseJsonDataFields",
          "title": "Set Case Json Data Fields",
          "description": "Set one or more fields of a typed case's structured `json_data` payload in one atomic write, leaving every other field as stored. Prefer this over `PATCH /cases/{case_id}` with a full `json_data` object when changing some fields: the write reads and locks the latest payload in the database, so a concurrent edit to another field, or to another item of the same array, is preserved. Each `set` entry names a `path`, a JSONPath declared in the queue's current Case schema, and the `value` to store there. A path is dotted object fields (`$.invoice.amount`) with optional array indices in brackets (`$.lines[0]` for a whole item, `$.lines[0].amount` for one field of it). An index must name an item that already exists; an out-of-range index or a non-array parent is refused, and a write never adds or removes items. A `value` can be any JSON value, including an object for an object field. Paths must be distinct, and no path may sit inside another in the same request (`$.lines` beside `$.lines[0]`, or `$.lines[0]` beside `$.lines[0].amount`). An index names a position, so when the array can change between your read and your write, add `expect` entries that pin the item, such as its id field (`$.lines[0].id`): if any stored value differs, nothing is written and the response is a 409. The resulting payload is validated against the queue's current Case schema and the case is re-pinned to that schema version; if any entry is refused, nothing is written. A case without a structured payload yet must be given one with `PATCH /cases/{case_id}` first. Returns the updated case with its event history and approval batches.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "case_id",
              "set"
            ],
            "properties": {
              "set": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "path",
                    "value"
                  ],
                  "properties": {
                    "path": {
                      "type": "string",
                      "description": "JSONPath of the field to set, starting at `$`: dotted fields with optional array indices (e.g. `$.invoice.amount` or `$.lines[0].amount`). Must be declared in the queue's current Case schema, and an index must name an existing item."
                    },
                    "value": {
                      "$ref": "#/definitions/CaseJsonDataValue",
                      "description": "New value for the field. Must match the field's declared type; send `null` only where the schema allows it."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 100,
                "minItems": 1,
                "description": "The fields to set, applied together (1 to 100)."
              },
              "expect": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "path",
                    "value"
                  ],
                  "properties": {
                    "path": {
                      "type": "string",
                      "description": "JSONPath of a stored value to check, in the same form as a `set` path (e.g. `$.lines[0].id`). Must be declared in the queue's current Case schema."
                    },
                    "value": {
                      "$ref": "#/definitions/CaseJsonDataValue",
                      "description": "The value the case must currently hold at `path`. It must have the field's declared type, or the request is a 400; an absent value never matches."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 100,
                "description": "Preconditions checked against the latest stored payload before any field is set (up to 100). If one does not match, nothing is written and the response is a 409. Use them to make sure an array index still names the item you read."
              },
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case's unique identifier"
              }
            },
            "definitions": {
              "CaseJsonDataValue": {
                "id": "CaseJsonDataValue",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  },
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/definitions/CaseJsonDataValue"
                    }
                  },
                  {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "$ref": "#/definitions/CaseJsonDataValue"
                    }
                  }
                ]
              }
            }
          },
          "annotations": {
            "title": "Set Case Json Data Fields",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "listCaseRuns",
          "title": "List Case Runs",
          "description": "List Runs (agent runs) that have claimed or received handover of a case, newest first. Capped at 50 ownership events.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "case_id"
            ],
            "properties": {
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "The case's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Case Runs",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listCaseRunRecentMessages",
          "title": "List Case Run Recent Messages",
          "description": "Return the latest qualifying messages (assistant text + tool calls) for a Run on a case, newest last. Used to populate the live body of an active Run card in the case Activity timeline.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "case_id",
              "run_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 10,
                "minimum": 1,
                "description": "Maximum number of qualifying messages to return. Defaults to 3, must be between 1 and 10."
              },
              "run_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "The agent run's unique identifier"
              },
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "The case's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Case Run Recent Messages",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "deleteCase",
          "title": "Delete Case",
          "description": "Delete a case. Interrupts any associated active runs first.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "case_id"
            ],
            "properties": {
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Delete Case",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "bulkReprocessCases",
          "title": "Bulk Reprocess Cases",
          "description": "Re-process multiple cases on a chosen agent. Any active runs on the selected cases are interrupted first; the cases are then reset to pending and assigned to the chosen agent for the next dispatcher tick. The chosen agent must already be connected to the queue as a case-queue-consumer (with the trigger enabled or disabled) and not belong to a different automation than the queue. A paused queue refuses with 409; resume it first.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "search": {
                "type": "string",
                "description": "Free-text search selecting the cases when all_matching is true."
              },
              "filters": {
                "type": "object",
                "properties": {
                  "labels": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "status": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "all",
                        "pending",
                        "processing",
                        "needs_input",
                        "postponed",
                        "needs_review",
                        "resolved",
                        "canceled",
                        "claimed",
                        "completed",
                        "failed"
                      ],
                      "type": "string"
                    }
                  },
                  "priority": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "none",
                        "medium",
                        "high"
                      ],
                      "type": "string"
                    }
                  },
                  "json_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "path",
                        "operator"
                      ],
                      "properties": {
                        "path": {
                          "type": "string",
                          "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                        },
                        "value": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              },
                              "maxItems": 100,
                              "minItems": 1
                            }
                          ]
                        },
                        "operator": {
                          "enum": [
                            "equals",
                            "notEquals",
                            "in",
                            "notIn",
                            "gt",
                            "gte",
                            "lt",
                            "lte",
                            "contains",
                            "isSet",
                            "isNotSet"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 12
                  },
                  "created_at_to": {
                    "type": "string"
                  },
                  "updated_at_to": {
                    "type": "string"
                  },
                  "failure_source": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "system",
                        "manual"
                      ],
                      "type": "string"
                    },
                    "description": "Keep only failed Cases, by who failed them: `system` when Duvo could not finish the Case, `manual` when a person marked it failed."
                  },
                  "issue_severity": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "critical",
                        "medium"
                      ],
                      "type": "string"
                    }
                  },
                  "completed_at_to": {
                    "type": "string",
                    "description": "Keep Cases that reached an outcome before this time (exclusive). An ISO timestamp or a lookback such as `7d` or `12h`."
                  },
                  "created_at_from": {
                    "type": "string"
                  },
                  "updated_at_from": {
                    "type": "string"
                  },
                  "completed_at_from": {
                    "type": "string",
                    "description": "Keep Cases that reached an outcome at or after this time (inclusive). An ISO timestamp or a lookback such as `7d` or `12h`."
                  },
                  "awaiting_my_approval": {
                    "type": "boolean"
                  }
                },
                "description": "Filters selecting the cases when all_matching is true."
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The agent that should run on the selected cases. Must be a consumer of this queue and not belong to a different automation."
              },
              "case_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "maxItems": 100,
                "minItems": 1,
                "description": "Explicit case IDs to act on (1-100). Provide this or set all_matching."
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "all_matching": {
                "type": "boolean",
                "description": "When true, act on every case matching the provided filters/search instead of an explicit id list."
              }
            }
          },
          "annotations": {
            "title": "Bulk Reprocess Cases",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "bulkUpdateCaseStatus",
          "title": "Bulk Update Case Status",
          "description": "Update the status of multiple cases to pending, completed, failed, or canceled. Interrupts any active runs and releases their case ownership, but never cancels their human-in-the-loop state — pending requests and open approval batches stay answerable/resolvable from the run view. Settling a case archives the pending requests on every run attached to it, both the runs this call interrupted and any that were already terminal, so they leave the activity inbox instead of outliving the case there. Resetting to pending archives nothing and re-dispatches cases to the queue's trigger consumer. Resetting cases on a paused queue answers 409, because it would interrupt runs the pause lets finish; resume the queue first.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "status"
            ],
            "properties": {
              "search": {
                "type": "string",
                "description": "Free-text search selecting the cases when all_matching is true."
              },
              "status": {
                "enum": [
                  "pending",
                  "completed",
                  "failed",
                  "canceled"
                ],
                "type": "string",
                "description": "Target status for each case. `completed`, `failed`, and `canceled` are terminal — `canceled` records a deliberate human stop, distinct from a system `failed`. `pending` resets the case (the queue's trigger consumer, if any, will re-claim it). `success` is not settable: it means an evaluation passed."
              },
              "filters": {
                "type": "object",
                "properties": {
                  "labels": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "status": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "all",
                        "pending",
                        "processing",
                        "needs_input",
                        "postponed",
                        "needs_review",
                        "resolved",
                        "canceled",
                        "claimed",
                        "completed",
                        "failed"
                      ],
                      "type": "string"
                    }
                  },
                  "priority": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "none",
                        "medium",
                        "high"
                      ],
                      "type": "string"
                    }
                  },
                  "json_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "path",
                        "operator"
                      ],
                      "properties": {
                        "path": {
                          "type": "string",
                          "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                        },
                        "value": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              },
                              "maxItems": 100,
                              "minItems": 1
                            }
                          ]
                        },
                        "operator": {
                          "enum": [
                            "equals",
                            "notEquals",
                            "in",
                            "notIn",
                            "gt",
                            "gte",
                            "lt",
                            "lte",
                            "contains",
                            "isSet",
                            "isNotSet"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 12
                  },
                  "created_at_to": {
                    "type": "string"
                  },
                  "updated_at_to": {
                    "type": "string"
                  },
                  "failure_source": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "system",
                        "manual"
                      ],
                      "type": "string"
                    },
                    "description": "Keep only failed Cases, by who failed them: `system` when Duvo could not finish the Case, `manual` when a person marked it failed."
                  },
                  "issue_severity": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "critical",
                        "medium"
                      ],
                      "type": "string"
                    }
                  },
                  "completed_at_to": {
                    "type": "string",
                    "description": "Keep Cases that reached an outcome before this time (exclusive). An ISO timestamp or a lookback such as `7d` or `12h`."
                  },
                  "created_at_from": {
                    "type": "string"
                  },
                  "updated_at_from": {
                    "type": "string"
                  },
                  "completed_at_from": {
                    "type": "string",
                    "description": "Keep Cases that reached an outcome at or after this time (inclusive). An ISO timestamp or a lookback such as `7d` or `12h`."
                  },
                  "awaiting_my_approval": {
                    "type": "boolean"
                  }
                },
                "description": "Filters selecting the cases when all_matching is true."
              },
              "case_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "maxItems": 100,
                "minItems": 1,
                "description": "Explicit case IDs to act on (1-100). Provide this or set all_matching."
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "all_matching": {
                "type": "boolean",
                "description": "When true, act on every case matching the provided filters/search instead of an explicit id list."
              }
            }
          },
          "annotations": {
            "title": "Bulk Update Case Status",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "bulkUpdateCasePriority",
          "title": "Bulk Update Case Priority",
          "description": "Set the priority of multiple cases. Priority only affects the order pending cases are picked up in: due postponed cases are handled first, then higher priority. It never interrupts runs or changes case status. Set `none` to clear priority back to the default.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "priority"
            ],
            "properties": {
              "search": {
                "type": "string",
                "description": "Free-text search selecting the cases when all_matching is true."
              },
              "filters": {
                "type": "object",
                "properties": {
                  "labels": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "status": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "all",
                        "pending",
                        "processing",
                        "needs_input",
                        "postponed",
                        "needs_review",
                        "resolved",
                        "canceled",
                        "claimed",
                        "completed",
                        "failed"
                      ],
                      "type": "string"
                    }
                  },
                  "priority": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "none",
                        "medium",
                        "high"
                      ],
                      "type": "string"
                    }
                  },
                  "json_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "path",
                        "operator"
                      ],
                      "properties": {
                        "path": {
                          "type": "string",
                          "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                        },
                        "value": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              },
                              "maxItems": 100,
                              "minItems": 1
                            }
                          ]
                        },
                        "operator": {
                          "enum": [
                            "equals",
                            "notEquals",
                            "in",
                            "notIn",
                            "gt",
                            "gte",
                            "lt",
                            "lte",
                            "contains",
                            "isSet",
                            "isNotSet"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 12
                  },
                  "created_at_to": {
                    "type": "string"
                  },
                  "updated_at_to": {
                    "type": "string"
                  },
                  "failure_source": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "system",
                        "manual"
                      ],
                      "type": "string"
                    },
                    "description": "Keep only failed Cases, by who failed them: `system` when Duvo could not finish the Case, `manual` when a person marked it failed."
                  },
                  "issue_severity": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "critical",
                        "medium"
                      ],
                      "type": "string"
                    }
                  },
                  "completed_at_to": {
                    "type": "string",
                    "description": "Keep Cases that reached an outcome before this time (exclusive). An ISO timestamp or a lookback such as `7d` or `12h`."
                  },
                  "created_at_from": {
                    "type": "string"
                  },
                  "updated_at_from": {
                    "type": "string"
                  },
                  "completed_at_from": {
                    "type": "string",
                    "description": "Keep Cases that reached an outcome at or after this time (inclusive). An ISO timestamp or a lookback such as `7d` or `12h`."
                  },
                  "awaiting_my_approval": {
                    "type": "boolean"
                  }
                },
                "description": "Filters selecting the cases when all_matching is true."
              },
              "case_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "maxItems": 100,
                "minItems": 1,
                "description": "Explicit case IDs to act on (1-100). Provide this or set all_matching."
              },
              "priority": {
                "enum": [
                  "none",
                  "medium",
                  "high"
                ],
                "type": "string",
                "description": "Target priority for each case. `medium`/`high` raise it above the default; `none` clears it."
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "all_matching": {
                "type": "boolean",
                "description": "When true, act on every case matching the provided filters/search instead of an explicit id list."
              }
            }
          },
          "annotations": {
            "title": "Bulk Update Case Priority",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "listCaseAttachments",
          "title": "List Case Attachments",
          "description": "List the files attached to a case, oldest first. Includes attachments whose upload failed, so a missing source document is visible rather than silent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "case_id"
            ],
            "properties": {
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case's unique identifier"
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Case Attachments",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "createCaseAttachmentUploadUrl",
          "title": "Create Case Attachment Upload Url",
          "description": "Issue a signed URL for uploading a file to a case. The client must PUT the bytes to the returned URL with the returned Content-Type, then call the finalize endpoint so the attachment becomes visible on the case.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "case_id",
              "filename",
              "mime_type",
              "size_bytes"
            ],
            "properties": {
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case's unique identifier"
              },
              "filename": {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "mime_type": {
                "type": "string",
                "maxLength": 127,
                "minLength": 1
              },
              "size_bytes": {
                "type": "integer",
                "maximum": 52428800,
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Create Case Attachment Upload Url",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "finalizeCaseAttachment",
          "title": "Finalize Case Attachment",
          "description": "Confirm an uploaded case attachment against storage. Answers with the attachment in its settled state — `ready` when the bytes are present, `failed` (with a reason) when the upload never completed.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "case_id",
              "attachment_id"
            ],
            "properties": {
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case's unique identifier"
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "attachment_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The attachment's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Finalize Case Attachment",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "getCaseAttachmentDownloadUrl",
          "title": "Get Case Attachment Download Url",
          "description": "Mint a short-lived signed URL for one case attachment. `disposition=inline` serves the file for the in-app viewer; `attachment` forces a download.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "case_id",
              "attachment_id"
            ],
            "properties": {
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case's unique identifier"
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "disposition": {
                "enum": [
                  "inline",
                  "attachment"
                ],
                "type": "string",
                "default": "attachment"
              },
              "attachment_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The attachment's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Get Case Attachment Download Url",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "deleteCaseAttachment",
          "title": "Delete Case Attachment",
          "description": "Remove a file from a case. The row is soft-deleted; deletion of the stored object is attempted best-effort.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "case_id",
              "attachment_id"
            ],
            "properties": {
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case's unique identifier"
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "attachment_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The attachment's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Delete Case Attachment",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "assignCaseLabels",
          "title": "Assign Case Labels",
          "description": "Assign one or more labels to a case. Creates the labels on the queue if they don't already exist.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "case_id",
              "labels"
            ],
            "properties": {
              "labels": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "value"
                  ],
                  "properties": {
                    "key": {
                      "type": "string",
                      "default": ""
                    },
                    "value": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                },
                "maxItems": 50,
                "minItems": 1
              },
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case's unique identifier"
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Assign Case Labels",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listCaseLabels",
          "title": "List Case Labels",
          "description": "List all labels assigned to a case.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "case_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 1000,
                "maximum": 1000,
                "minimum": 1,
                "description": "Number of labels per page (1-1000, default 1000)."
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Zero-based offset for pagination."
              },
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case's unique identifier"
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Case Labels",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "listQueueLabels",
          "title": "List Queue Labels",
          "description": "List every label defined on a queue along with the count of cases each label is assigned to.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 1000,
                "maximum": 1000,
                "minimum": 1,
                "description": "Number of labels per page (1-1000, default 1000)."
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Zero-based offset for pagination."
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Queue Labels",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "unlinkCaseLabels",
          "title": "Unlink Case Labels",
          "description": "Remove the given labels from a case.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "case_id",
              "label_ids"
            ],
            "properties": {
              "case_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case's unique identifier"
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "label_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "minItems": 1
              }
            }
          },
          "annotations": {
            "title": "Unlink Case Labels",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "createQueueLabel",
          "title": "Create Queue Label",
          "description": "Create a label on a queue without assigning it to a case.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "value"
            ],
            "properties": {
              "key": {
                "type": "string",
                "default": ""
              },
              "value": {
                "type": "string",
                "minLength": 1
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "color_hue": {
                "type": "integer",
                "maximum": 360,
                "minimum": 0
              }
            }
          },
          "annotations": {
            "title": "Create Queue Label",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "deleteQueueLabel",
          "title": "Delete Queue Label",
          "description": "Delete a label from a queue. Cascade-deletes all assignments of this label on existing cases.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "label_id"
            ],
            "properties": {
              "label_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The label's unique identifier"
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Delete Queue Label",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "updateQueueLabel",
          "title": "Update Queue Label",
          "description": "Update a label's key, value, or color. Renaming key/value affects every case assigned to this label.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "label_id",
              "value"
            ],
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {
                "type": "string",
                "minLength": 1
              },
              "label_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The label's unique identifier"
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "color_hue": {
                "type": "integer",
                "maximum": 360,
                "minimum": 0
              }
            }
          },
          "annotations": {
            "title": "Update Queue Label",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "listQueueAgents",
          "title": "List Queue Agents",
          "description": "List agents bound to a queue as producers (agents that push cases into the queue) or consumers (agents triggered by cases in the queue).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Queue Agents",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getCaseQueueEvalRubrics",
          "title": "Get Case Queue Eval Rubrics",
          "description": "List a queue's active case-level evaluation rubrics — the Pass/Fail questions a whole case is judged against at settlement. Shows the queue's current version's set (auto-generated from the connected Assignments' AOPs, plus any manually-authored rubrics).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Get Case Queue Eval Rubrics",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "createCaseQueueEvalRubric",
          "title": "Create Case Queue Eval Rubric",
          "description": "Add one case-level evaluation rubric to a queue's current rubric set. Case-level rubrics judge the whole case (across every Run that touched it) as a Pass/Fail question at settlement. The rubric is added to the queue's current version (build-set) — the set new cases are judged against; a queue only gets one after its first Agent-processed case settles, so this fails with 409 before then, and once the version holds 12 rubrics by default (25 on teams with the newer rubric generator enabled); the error message states the ceiling.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "title",
              "description"
            ],
            "properties": {
              "title": {
                "type": "string",
                "maxLength": 80,
                "minLength": 3,
                "description": "Short, human-readable Pass/Fail rubric title."
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "description": {
                "type": "string",
                "maxLength": 400,
                "minLength": 20,
                "description": "A 1-2 sentence Pass condition phrased as a question."
              }
            }
          },
          "annotations": {
            "title": "Create Case Queue Eval Rubric",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "replaceCaseQueueEvalRubrics",
          "title": "Replace Case Queue Eval Rubrics",
          "description": "Replace the entire case-level evaluation rubric set on a queue's current version (1 to N rubrics, N being 12 by default and 25 on teams with the newer rubric generator enabled). Existing rubrics are removed and the supplied list becomes the new set. An empty list is refused — whole-case evaluation regenerates rubrics for an empty set at the next settlement, so a cleared set would not stay cleared; remove individual rubrics instead. Targets the queue's current version (build-set), which exists once its first Agent-processed case settles — this fails with 409 before then. Cases already judged keep their original verdicts.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "rubrics"
            ],
            "properties": {
              "rubrics": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "title",
                    "description"
                  ],
                  "properties": {
                    "title": {
                      "type": "string",
                      "maxLength": 80,
                      "minLength": 3,
                      "description": "Short, human-readable Pass/Fail rubric title."
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 400,
                      "minLength": 20,
                      "description": "A 1-2 sentence Pass condition phrased as a question."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 25,
                "minItems": 1,
                "description": "The complete case-level rubric set for the queue's current version (at least 1 rubric). Replaces every existing rubric."
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Replace Case Queue Eval Rubrics",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "updateCaseQueueEvalRubric",
          "title": "Update Case Queue Eval Rubric",
          "description": "Edit a single case-level evaluation rubric's title and/or description. The edit produces a NEW rubric (with a new id and slug) so previously judged cases stay attributed to the original criterion; the response contains the new rubric.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "rubric_id"
            ],
            "properties": {
              "title": {
                "type": "string",
                "maxLength": 80,
                "minLength": 3,
                "description": "Short, human-readable Pass/Fail rubric title."
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "rubric_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case-level rubric's unique identifier"
              },
              "description": {
                "type": "string",
                "maxLength": 400,
                "minLength": 20,
                "description": "A 1-2 sentence Pass condition phrased as a question."
              }
            }
          },
          "annotations": {
            "title": "Update Case Queue Eval Rubric",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteCaseQueueEvalRubric",
          "title": "Delete Case Queue Eval Rubric",
          "description": "Remove a single case-level evaluation rubric. Cases settled after this are no longer judged against it; already-judged cases keep their original verdicts. Removing the queue's last remaining rubric is refused with 409 — whole-case evaluation regenerates rubrics for an empty set at the next settlement, so the removal would not stay removed.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id",
              "rubric_id"
            ],
            "properties": {
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "rubric_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The case-level rubric's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Delete Case Queue Eval Rubric",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listCases",
          "title": "List Cases",
          "description": "List cases in a queue. Supports status, date-range, free-text, and json_data field filters via query params. Set count_only=true to skip Case row selection and transformation. The normal response shape is returned with cases: [] and the matching total. For label filters, use POST /v2/queues/:queue_id/cases/search.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "field": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                ],
                "description": "Filter on a field of a typed queue's json_data, as <path>:<operator>[:<value>] (e.g. $.invoice.amount:gte:5000). Repeat the param to require several; all must match, so two comparisons on one path express a range. Operators: equals, notEquals, in, notIn, gt, gte, lt, lte, contains, isSet, isNotSet. in/notIn take a comma-separated list; isSet/isNotSet take no value. A value is typed by shape (5000 is a number, true a boolean, 00123 a string so a leading zero survives). A path the queue's Case schema does not declare is rejected rather than ignored."
              },
              "limit": {
                "type": "integer",
                "default": 20,
                "maximum": 100,
                "minimum": 1,
                "description": "Number of cases per page (1-100, default 20)."
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Zero-based offset for pagination."
              },
              "search": {
                "type": "string",
                "description": "Full-text search across case title and data."
              },
              "status": {
                "type": "string",
                "description": "Filter by one or more status buckets (comma-separated). Values: all, pending, processing, needs_input, postponed, needs_review, resolved, canceled. `processing` covers both a case actively being worked and one waiting on its evaluation."
              },
              "sort_by": {
                "enum": [
                  "created_at",
                  "updated_at",
                  "postponed_to"
                ],
                "type": "string",
                "default": "created_at",
                "description": "Field to sort by. Default: created_at."
              },
              "priority": {
                "type": "string",
                "description": "Filter by one or more priority levels (comma-separated). Values: none, medium, high."
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "count_only": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "default": "false",
                "description": "Skip row selection and enrichment. The normal list response shape is returned with an empty row array and the matching total."
              },
              "sort_order": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "default": "desc",
                "description": "Sort direction. Default: desc."
              },
              "created_at_to": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                "description": "Return only cases created before this ISO-8601 timestamp. The upper bound is exclusive."
              },
              "updated_at_to": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                "description": "Return only cases updated before this ISO-8601 timestamp. The upper bound is exclusive."
              },
              "issue_severity": {
                "type": "string",
                "description": "Filter by highest failing rubric severity (comma-separated). Values: critical, medium. Severity is a facet within the issues outcome, so it returns nothing when combined with a status bucket that excludes issues. `low` is not selectable: an all-low verdict is stored as success, so no case carries it."
              },
              "created_at_from": {
                "type": "string",
                "description": "Return only cases created at or after an ISO-8601 timestamp or a lookback such as 24h or 7d."
              },
              "updated_at_from": {
                "type": "string",
                "description": "Return only cases updated at or after an ISO-8601 timestamp or a lookback such as 24h or 7d."
              },
              "include_blockers": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "description": "Also return `blocker` on each case: for a case waiting to start, why the dispatcher cannot start it now, or null when nothing blocks it. Off by default, because it adds database reads; when off, `blocker` is left out."
              },
              "awaiting_my_approval": {
                "enum": [
                  "true",
                  "false"
                ],
                "type": "string",
                "description": "Return only cases holding an unanswered approval row assigned to you, on the case's own run. Resolved from the authenticated caller, so it names no user: an API key filters as the user who owns it, and a credential with no user behind it is rejected rather than served an empty list. Narrows within needs_input, so it returns nothing alongside a terminal status bucket."
              }
            }
          },
          "annotations": {
            "title": "List Cases",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "searchCases",
          "title": "Search Cases",
          "description": "Search cases in a queue with rich filters (multi-status, date ranges, label-based filters, and field-value filters over a typed queue's json_data). Use this when the simple query-string filters on GET /v2/queues/:queue_id/cases aren't enough. Each json_data entry is {path, operator, value} where path is a declared scalar in JSONPath dotted form ($.invoice.amount); entries are ANDed, so two comparisons on one path express a range. A path the queue's Case schema does not declare is rejected rather than ignored, as is a value that does not match the field's declared type. The contains operator is case-sensitive (unlike the free-text search parameter). Set count_only=true to skip Case row selection, enrichment, and transformation. The normal response shape is returned with cases: [] and the matching total.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "minimum": 1
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0
              },
              "search": {
                "type": "string"
              },
              "filters": {
                "type": "object",
                "default": {},
                "properties": {
                  "labels": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "status": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "all",
                        "pending",
                        "processing",
                        "needs_input",
                        "postponed",
                        "needs_review",
                        "resolved",
                        "canceled",
                        "claimed",
                        "completed",
                        "failed"
                      ],
                      "type": "string"
                    }
                  },
                  "priority": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "none",
                        "medium",
                        "high"
                      ],
                      "type": "string"
                    }
                  },
                  "json_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "path",
                        "operator"
                      ],
                      "properties": {
                        "path": {
                          "type": "string",
                          "pattern": "^\\$(\\.[A-Za-z_][A-Za-z0-9_]{0,63})+$"
                        },
                        "value": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              },
                              "maxItems": 100,
                              "minItems": 1
                            }
                          ]
                        },
                        "operator": {
                          "enum": [
                            "equals",
                            "notEquals",
                            "in",
                            "notIn",
                            "gt",
                            "gte",
                            "lt",
                            "lte",
                            "contains",
                            "isSet",
                            "isNotSet"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 12
                  },
                  "created_at_to": {
                    "type": "string"
                  },
                  "updated_at_to": {
                    "type": "string"
                  },
                  "failure_source": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "system",
                        "manual"
                      ],
                      "type": "string"
                    },
                    "description": "Keep only failed Cases, by who failed them: `system` when Duvo could not finish the Case, `manual` when a person marked it failed."
                  },
                  "issue_severity": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "critical",
                        "medium"
                      ],
                      "type": "string"
                    }
                  },
                  "completed_at_to": {
                    "type": "string",
                    "description": "Keep Cases that reached an outcome before this time (exclusive). An ISO timestamp or a lookback such as `7d` or `12h`."
                  },
                  "created_at_from": {
                    "type": "string"
                  },
                  "updated_at_from": {
                    "type": "string"
                  },
                  "completed_at_from": {
                    "type": "string",
                    "description": "Keep Cases that reached an outcome at or after this time (inclusive). An ISO timestamp or a lookback such as `7d` or `12h`."
                  },
                  "awaiting_my_approval": {
                    "type": "boolean"
                  }
                }
              },
              "sort_by": {
                "enum": [
                  "created_at",
                  "updated_at",
                  "postponed_to"
                ],
                "type": "string",
                "default": "created_at"
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              },
              "count_only": {
                "type": "boolean",
                "description": "Skip Case row selection, enrichment, and transformation. The normal response shape contains an empty cases array and the matching total."
              },
              "sort_order": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "default": "desc"
              },
              "include_blockers": {
                "type": "boolean",
                "description": "Also return `blocker` on each case: for a case waiting to start, why the dispatcher cannot start it now, or null when nothing blocks it. Off by default, because it adds database reads; when off, `blocker` is left out."
              }
            }
          },
          "annotations": {
            "title": "Search Cases",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "createCases",
          "title": "Create Cases",
          "description": "Create one or more cases in a queue. Provide either a single `case` object or a `cases` array (1-100); providing both returns 400. Each case takes a title (max 500 chars), optional labels that will be assigned to the case on creation (missing labels are created on the queue), and an optional priority (`none`, `medium`, or `high`; `medium`/`high` raise it above the default in the queue, `none` is the default; priority only affects the order pending cases are picked up in: due postponed cases are handled first, then higher priority). For the case payload, send free-form `data` OR a structured `json_data` object, never both, and a single request must be all free-text or all structured. `json_data` is validated against the queue's Case schema and requires the queue to have one; a schema-guarded queue accepts only `json_data`, while a queue without the guard also accepts free-text `data`. A guarded queue that has no schema yet accepts free-text `data` only when typed Case schemas are off for that queue — the team has them turned off AND the queue is not inside an automation (there is then no way to declare a schema, so the guard cannot apply). A queue inside an automation always has them on, so a guarded one refuses free-text `data` until its schema is declared.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "queue_id"
            ],
            "properties": {
              "case": {
                "type": "object",
                "required": [
                  "title"
                ],
                "properties": {
                  "data": {
                    "type": "string",
                    "description": "Additional data for the case. Free-form text or JSON; Agents receive this on claim."
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 500,
                    "minLength": 1,
                    "description": "Short title for the case (max 500 characters). Put long context in `data`."
                  },
                  "labels": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "value"
                      ],
                      "properties": {
                        "key": {
                          "type": "string",
                          "default": "",
                          "description": "Label key (omit for a simple tag)."
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "description": "Label value (required)."
                        }
                      }
                    },
                    "maxItems": 50,
                    "description": "Optional labels to assign to the case at creation. Labels are created on the queue if they don't already exist."
                  },
                  "priority": {
                    "enum": [
                      "none",
                      "medium",
                      "high"
                    ],
                    "type": "string",
                    "description": "Case priority. `medium` or `high` raise the case above the default in the queue; omit (or `none`) for normal priority. Only set this when the AOP or the user explicitly instructs prioritization — do not infer it on your own."
                  },
                  "json_data": {
                    "type": "object",
                    "description": "Structured payload for a queue that has a Case schema. Validated against that schema and mutually exclusive with `data` — send this instead of free-text `data` on a schema-guarded queue. Within one request, either every case is structured or every case is free-text.",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                }
              },
              "cases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "title"
                  ],
                  "properties": {
                    "data": {
                      "type": "string",
                      "description": "Additional data for the case. Free-form text or JSON; Agents receive this on claim."
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1,
                      "description": "Short title for the case (max 500 characters). Put long context in `data`."
                    },
                    "labels": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "value"
                        ],
                        "properties": {
                          "key": {
                            "type": "string",
                            "default": "",
                            "description": "Label key (omit for a simple tag)."
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "description": "Label value (required)."
                          }
                        }
                      },
                      "maxItems": 50,
                      "description": "Optional labels to assign to the case at creation. Labels are created on the queue if they don't already exist."
                    },
                    "priority": {
                      "enum": [
                        "none",
                        "medium",
                        "high"
                      ],
                      "type": "string",
                      "description": "Case priority. `medium` or `high` raise the case above the default in the queue; omit (or `none`) for normal priority. Only set this when the AOP or the user explicitly instructs prioritization — do not infer it on your own."
                    },
                    "json_data": {
                      "type": "object",
                      "description": "Structured payload for a queue that has a Case schema. Validated against that schema and mutually exclusive with `data` — send this instead of free-text `data` on a schema-guarded queue. Within one request, either every case is structured or every case is free-text.",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    }
                  }
                },
                "maxItems": 100,
                "minItems": 1
              },
              "queue_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The queue's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Create Cases",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "getRun",
          "title": "Get Run",
          "description": "Get information about an agent run. Can be polled to check status.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "run_id"
            ],
            "properties": {
              "run_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The run's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Get Run",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "postRunMessage",
          "title": "Post Run Message",
          "description": "Post a message to an agent run. This will persist the message and resume the agent execution if the run is completed or interrupted and has no pending human request. A run whose workspace data retention deleted answers 410 with code `sandbox_expired`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "run_id",
              "message"
            ],
            "properties": {
              "run_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The run's unique identifier"
              },
              "message": {
                "type": "string",
                "minLength": 1,
                "description": "The message content to send to the agent"
              }
            }
          },
          "annotations": {
            "title": "Post Run Message",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "listRunMessages",
          "title": "List Run Messages",
          "description": "Get paginated messages for an agent run. Messages are returned in chronological order.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "run_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 20,
                "maximum": 50,
                "minimum": 1,
                "description": "Number of messages per page (1-50, default 20)"
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Number of messages to skip"
              },
              "run_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The run's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "List Run Messages",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "respondToHumanRequest",
          "title": "Respond To Human Request",
          "description": "Respond to a human-in-the-loop request. Use 'approved' (true/false) for approval-type requests, or 'answers' ({question: answer}) for question-type requests. Only works when the run is in 'waiting' status.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "run_id",
              "request_id"
            ],
            "properties": {
              "run_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The run's unique identifier"
              },
              "answers": {
                "type": "object",
                "description": "For question-type requests: a map of question text to answer. Multi-select answers should be comma-separated. Each answer is at most 10240 UTF-8 bytes.",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "approved": {
                "type": "boolean",
                "description": "For approval-type requests: true to approve, false to deny"
              },
              "request_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The human request's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Respond To Human Request",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "stopRun",
          "title": "Stop Run",
          "description": "Stop an agent run. No-op if the run is not currently running.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "run_id"
            ],
            "properties": {
              "run_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The run's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Stop Run",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "listMyTeams",
          "title": "List My Teams",
          "description": "List teams the authenticated caller can act on. Team-scoped API keys see only the key's team; managed Ask Duvo keys stay within their origin boundary; human user-scoped API keys and OAuth callers see every team they're a member of.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "List My Teams",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateAgentFolder",
          "title": "Update Agent Folder",
          "description": "Rename an agent folder or move it to a new parent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "folder_id"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "New folder name"
              },
              "folder_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The folder's unique identifier"
              },
              "parent_folder_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "New parent folder ID. Pass null to move the folder to the root level."
              }
            }
          },
          "annotations": {
            "title": "Update Agent Folder",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteAgentFolder",
          "title": "Delete Agent Folder",
          "description": "Delete an agent folder. If the folder contains assignments or subfolders, pass `force=true` to delete it and move the contained assignments to the root level.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "folder_id"
            ],
            "properties": {
              "force": {
                "type": "string",
                "description": "Pass 'true' to delete a folder that still contains assignments or subfolders. Any contained assignments will be moved to the root level."
              },
              "folder_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "The folder's unique identifier"
              }
            }
          },
          "annotations": {
            "title": "Delete Agent Folder",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "getConnection",
          "title": "Get Connection",
          "description": "Get one of your connections by ID.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "connection_id"
            ],
            "properties": {
              "connection_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Connection ID"
              }
            }
          },
          "annotations": {
            "title": "Get Connection",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "getConnectionCredentials",
          "title": "Get Connection Credentials",
          "description": "Get the header keys configured for a connection. Sensitive values (api keys, tokens, passwords) are returned as empty strings — the response only reveals which credential fields are set, never their values.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "connection_id"
            ],
            "properties": {
              "connection_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Connection ID"
              }
            }
          },
          "annotations": {
            "title": "Get Connection Credentials",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateConnection",
          "title": "Update Connection",
          "description": "Update an existing connection. For sensitive header values, sending an empty string keeps the existing value; send a new value to overwrite. Toggling `shared` moves the connection between personal and team-shared.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "connection_id"
            ],
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "shared": {
                "type": "boolean"
              },
              "headers": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "secret": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      "plaintext": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "server_url": {
                "type": "string",
                "format": "uri"
              },
              "auth_method": {
                "enum": [
                  "url",
                  "oauth",
                  "apikey",
                  "headers"
                ],
                "type": "string"
              },
              "connection_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Connection ID"
              }
            }
          },
          "annotations": {
            "title": "Update Connection",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteConnection",
          "title": "Delete Connection",
          "description": "Delete a connection (disconnects the user's connection and removes any triggers bound to it).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "connection_id"
            ],
            "properties": {
              "connection_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Connection ID"
              }
            }
          },
          "annotations": {
            "title": "Delete Connection",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteCustomIntegration",
          "title": "Delete Custom Integration",
          "description": "Delete a custom integration type (team-level catalog entry) and cascade-remove related connections. Requires manager-or-above role.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "custom_integration_id"
            ],
            "properties": {
              "custom_integration_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
                "description": "Custom integration type ID"
              }
            }
          },
          "annotations": {
            "title": "Delete Custom Integration",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "getSecret",
          "title": "Get Secret",
          "description": "Get an env-var secret by id. Returns metadata and env var keys; secret values are never exposed.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            }
          },
          "annotations": {
            "title": "Get Secret",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "updateSecret",
          "title": "Update Secret",
          "description": "Update an env-var secret. Send `values` to replace all entries, or any of `rename_keys`, `remove_keys`, `add_values` for a non-destructive patch. Editing a team-shared secret or toggling sharing requires lead builder role.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "name": {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              "shared": {
                "type": "boolean"
              },
              "values": {
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "pattern": "^[A-Z_][A-Z0-9_]*$",
                  "maxLength": 128,
                  "minLength": 1
                },
                "additionalProperties": {
                  "type": "string",
                  "maxLength": 65536,
                  "minLength": 1
                }
              },
              "add_values": {
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "pattern": "^[A-Z_][A-Z0-9_]*$",
                  "maxLength": 128,
                  "minLength": 1
                },
                "additionalProperties": {
                  "type": "string",
                  "maxLength": 65536,
                  "minLength": 1
                }
              },
              "remove_keys": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[A-Z_][A-Z0-9_]*$",
                  "maxLength": 128,
                  "minLength": 1
                },
                "minItems": 1
              },
              "rename_keys": {
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "pattern": "^[A-Z_][A-Z0-9_]*$",
                  "maxLength": 128,
                  "minLength": 1
                },
                "additionalProperties": {
                  "type": "string",
                  "pattern": "^[A-Z_][A-Z0-9_]*$",
                  "maxLength": 128,
                  "minLength": 1
                }
              },
              "service_slug": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "annotations": {
            "title": "Update Secret",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "deleteSecret",
          "title": "Delete Secret",
          "description": "Soft-delete an env-var secret. Deleting a team-shared secret requires lead builder role.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            }
          },
          "annotations": {
            "title": "Delete Secret",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "listRevisionSecrets",
          "title": "List Revision Secrets",
          "description": "List env-var secrets attached to a specific revision (build) of an assignment. Returns metadata and env-var keys only — secret values are never exposed.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId",
              "buildId"
            ],
            "properties": {
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "buildId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            }
          },
          "annotations": {
            "title": "List Revision Secrets",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "attachRevisionSecret",
          "title": "Attach Revision Secret",
          "description": "Attach an env-var secret to a revision so its keys are injected into Runs spawned from that revision. Personal secrets can only be attached by their owner; team-shared secrets require builder permissions.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agentId",
              "buildId",
              "credentialId"
            ],
            "properties": {
              "agentId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "buildId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "credentialId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            }
          },
          "annotations": {
            "title": "Attach Revision Secret",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 93,
      "resources": [
        {
          "name": "aop-writer/SKILL.md",
          "uri": "duvo://skills/aop-writer/SKILL.md",
          "mimeType": "text/markdown",
          "description": "Draft, rewrite, or critique a Duvo Agent AOP. Use when the user wants to improve an existing AOP or write a new one from a brief. Returns the AOP as a single complete markdown document in the canonical GOAL / STEPS / NOTES shape."
        },
        {
          "name": "aop-writer/agent.md",
          "uri": "duvo://skills/aop-writer/agent.md",
          "mimeType": "text/markdown",
          "description": "Reference material for the aop-writer skill (SKILL.md says when to read it)."
        },
        {
          "name": "aop-writer/references/aop-examples.md",
          "uri": "duvo://skills/aop-writer/references/aop-examples.md",
          "mimeType": "text/markdown",
          "description": "Reference material for the aop-writer skill (SKILL.md says when to read it)."
        },
        {
          "name": "aop-writer/references/aop-structure.md",
          "uri": "duvo://skills/aop-writer/references/aop-structure.md",
          "mimeType": "text/markdown",
          "description": "Reference material for the aop-writer skill (SKILL.md says when to read it)."
        },
        {
          "name": "aop-writer/references/aop-voice.md",
          "uri": "duvo://skills/aop-writer/references/aop-voice.md",
          "mimeType": "text/markdown",
          "description": "Reference material for the aop-writer skill (SKILL.md says when to read it)."
        },
        {
          "name": "aop-writer/references/case-lifecycle.md",
          "uri": "duvo://skills/aop-writer/references/case-lifecycle.md",
          "mimeType": "text/markdown",
          "description": "Reference material for the aop-writer skill (SKILL.md says when to read it)."
        },
        {
          "name": "clarity-mapping/SKILL.md",
          "uri": "duvo://skills/clarity-mapping/SKILL.md",
          "mimeType": "text/markdown",
          "description": "Map how a process works with Duvo Clarity. Use when the user asks to map, document or understand how their team does a piece of work, to interview people about a process, or to analyze what those interviews found. Sets up a Duvo workspace if the user has none, creates the process, invites people to short voice interviews within the plan's allowance, tracks who has done theirs, and analyzes the process map."
        },
        {
          "name": "code-step-author/SKILL.md",
          "uri": "duvo://skills/code-step-author/SKILL.md",
          "mimeType": "text/markdown",
          "description": "Answer questions about writing the Python program of a Duvo code step and the `duvo` SDK it calls. Use when the user asks how a code step reads its case, claims or settles work on a Queue, reaches a Connection, reads Policy values or attached files, what `duvo.execution` holds, which errors the SDK raises, or wants a snippet for a code step. Grounds every answer in the SDK surface that actually ships into the sandbox, and hands the writing of the program itself to the step's own AI generation rather than pasting code the user must transcribe."
        },
        {
          "name": "code-step-author/references/generation.md",
          "uri": "duvo://skills/code-step-author/references/generation.md",
          "mimeType": "text/markdown",
          "description": "Reference material for the code-step-author skill (SKILL.md says when to read it)."
        },
        {
          "name": "code-step-author/references/sdk.md",
          "uri": "duvo://skills/code-step-author/references/sdk.md",
          "mimeType": "text/markdown",
          "description": "Reference material for the code-step-author skill (SKILL.md says when to read it)."
        },
        {
          "name": "connection-doctor/SKILL.md",
          "uri": "duvo://skills/connection-doctor/SKILL.md",
          "mimeType": "text/markdown",
          "description": "Diagnose and health-check the Connections and credentials a Duvo Agent relies on. Use when the user asks whether a Connection is set up or available, why an Agent is blocked on authentication, what a Connection can do, or wants a proactive check across an Agent or a folder of Agents. In Ask Duvo, for an Automation, starts from getAutomationReadiness. Reads each Build's Connections and their live state via the Duvo public API, names the problem, and proposes one concrete fix — handing off to run-debugger when the evidence lives in a single failing Run."
        },
        {
          "name": "improve-agent/SKILL.md",
          "uri": "duvo://skills/improve-agent/SKILL.md",
          "mimeType": "text/markdown",
          "description": "Run the guided, end-to-end loop that makes one Duvo Agent better. Use when the user wants to \"improve this Agent\", \"make my Agent better\", \"help me tune this Agent\", \"this Agent isn't good enough\", \"fix this Agent based on its Runs\", or asks you to take an Agent from where it is to a concrete, applied improvement — not just a read-only audit. You drive the conversation: pin the Agent, survey its whole setup (AOP, Connections, Skills, triggers, memory, recent Runs), agree on what to base the improvement on (the user's feedback or the evidence in the Runs), propose a Run range and confirm it, get the grounded findings from the workflow-debugger / run-debugger skills, propose concrete changes, and — on the user's yes — apply them (AOP via aop-writer as a new Build, config with your tools). The boundary against workflow-debugger: that skill is the read-only audit; this skill is the interactive loop that ends in an applied change and calls workflow-debugger to do the analysis."
        },
        {
          "name": "improve-queue/SKILL.md",
          "uri": "duvo://skills/improve-queue/SKILL.md",
          "mimeType": "text/markdown",
          "description": "Run the guided, end-to-end loop that makes one Duvo Queue — and the producer→consumer workflow around it — better. Use when the user wants to \"improve this Queue\", \"this Queue keeps backing up, fix it\", or take a Queue to a concrete, applied improvement — not just a read-only audit. You drive the conversation: pin the Queue, survey its whole shape (producers and consumers, backlog and case state, both Agents' AOPs at the seam, triggers and concurrency, the Runs flowing through), agree what to base the improvement on (the user's feedback or the evidence in the Runs/backlog), propose a Run/case range and confirm it, get grounded findings from the workflow-debugger / run-debugger skills, propose concrete changes, and — on the user's yes — apply them (AOPs via aop-writer as new Builds, topology and triggers with your tools). The boundary vs workflow-debugger: that skill is the read-only audit; this is the interactive loop that ends in an applied change. For a single standalone Agent, use i"
        },
        {
          "name": "operate-module/SKILL.md",
          "uri": "duvo://skills/operate-module/SKILL.md",
          "mimeType": "text/markdown",
          "description": "Answer questions about a deployed Duvo Module automation and change it safely, the way Ask Duvo does. Use when the user asks how an Automation is doing, what still blocks it, a number on its dashboards, its Policy, who holds which process role, its attributes (Severity, Cost, Status), or to change one of these. Reads readiness, dashboard figures, Policy and roles with the dedicated tools instead of rebuilding them from Cases, Runs or HTML, and confirms each change with the user before making it."
        },
        {
          "name": "run-debugger/SKILL.md",
          "uri": "duvo://skills/run-debugger/SKILL.md",
          "mimeType": "text/markdown",
          "description": "Investigate why a Duvo Run failed or produced the wrong outcome. Use when the user shares a failed Run, asks \"why did this Run fail\", or wants to fix a recurring failure on an Agent. Reads the Run's transcript and the Build that was active for it via the Duvo public API, names the root cause from a fixed failure-mode taxonomy, and proposes one concrete fix — handing off to aop-writer for any AOP rewrite."
        },
        {
          "name": "workflow-debugger/SKILL.md",
          "uri": "duvo://skills/workflow-debugger/SKILL.md",
          "mimeType": "text/markdown",
          "description": "Audit a Duvo Agent — or a multi-Agent workflow connected by a Queue — across many Runs to find systemic inefficiencies and quality issues, then recommend concrete AOP and architecture changes. Use when the user asks to \"analyze this workflow\", \"audit my Agent\", \"why is this Agent slow / inconsistent / low quality across runs\", \"why does my queue keep backing up\", or wants a health check over an Agent's recent Runs — as opposed to debugging one failed Run (that's run-debugger). Reads recent Runs, eval scores, the producer/consumer queue topology, and the AOPs those Runs actually ran against via the Duvo public API — leading with the queue topology and backlog and sizing the run sample to the question; hands off to aop-writer for any AOP rewrite."
        }
      ],
      "prompts": []
    },
    "instructions": "Duvo terminology — UI labels and API/tool names refer to the same concepts:\n- \"Agent\" (UI) = \"agent\" / agent_id (a configured AI worker).\n- \"Run\" (UI) = \"run\" / agent_run_id (a single execution of an Agent).\n- \"Connections\" (UI) = \"integrations\".\n- \"Files\" (UI) = \"knowledge base\".\n- \"AOP\" (UI) = an Agent's instructions.\n- \"Start Work\" (UI) = creating a run.\nTool names and parameters use the API terms; user-facing language uses the UI terms.\n\nTeam context — most tools act on a single team and take a `team_id`:\n- Pass `team_id` explicitly. A user can belong to several teams and can have\n  more than one open at once, so the right team is the one this request is\n  about — not whichever one happened to be used last.\n- Take it from what the user asked for, or from the context you were invoked\n  in. Act on another team only when the request points there; do not survey\n  the user's teams and act on them speculatively.\n- Use `listMyTeams` to look up an id once you know which team you need.\n- Name the team your answer covers, so the user can see which one it came\n  from.\n\nWorkspaces — someone who has just connected may have no Duvo workspace yet,\nand other tools then fail with 'User has no current team'. Call\n`createWorkspace`: it returns their workspace, or sets up a Free one when\nthey have none.\n\nDuvo skills — guidance for the recurring jobs on this API ships with this\nserver as MCP resources under `duvo://skills/` (bundled; nothing to\nfetch or set up). Before authoring or editing an Agent's AOP, debugging a\nfailed Run, improving an Agent or a Queue, diagnosing a Connection, or\nmapping how a team works with Clarity, read the matching skill with\nresources/read and follow it. Each skill's entry\npoint is `duvo://skills/<skill>/SKILL.md`; the reference files it\ncites sit beside it under `references/`, and resources/list shows them all.\nThe skills also say which capabilities exist at run time versus\nmanagement-only.\n- aop-writer (duvo://skills/aop-writer/SKILL.md) — Draft, rewrite, or critique a Duvo Agent AOP.\n- clarity-mapping (duvo://skills/clarity-mapping/SKILL.md) — Map how a process works with Duvo Clarity.\n- code-step-author (duvo://skills/code-step-author/SKILL.md) — Answer questions about writing the Python program of a Duvo code step and the `duvo` SDK it calls.\n- connection-doctor (duvo://skills/connection-doctor/SKILL.md) — Diagnose and health-check the Connections and credentials a Duvo Agent relies on.\n- improve-agent (duvo://skills/improve-agent/SKILL.md) — Run the guided, end-to-end loop that makes one Duvo Agent better.\n- improve-queue (duvo://skills/improve-queue/SKILL.md) — Run the guided, end-to-end loop that makes one Duvo Queue — and the producer→consumer workflow around it — better.\n- operate-module (duvo://skills/operate-module/SKILL.md) — Answer questions about a deployed Duvo Module automation and change it safely, the way Ask Duvo does.\n- run-debugger (duvo://skills/run-debugger/SKILL.md) — Investigate why a Duvo Run failed or produced the wrong outcome.\n- workflow-debugger (duvo://skills/workflow-debugger/SKILL.md) — Audit a Duvo Agent — or a multi-Agent workflow connected by a Queue — across many Runs to find systemic inefficiencies and quality issues, then recommend concrete AOP and architecture changes."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}