Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

155 KB
Raw Blame
{
  "generated_notice": "Generated by cua-contract-gen; do not edit by hand.",
  "experimental": true,
  "contract_version": "0.8.0",
  "tools_list_schema_version": "1",
  "capability_version": "1",
  "mcp_protocol_version": "2025-06-18",
  "transport": "mcp_stdio",
  "tools": [
    {
      "name": "click",
      "description": "Click coordinates or a snapshot-bound element with an explicit target and delivery mode.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "input.pointer.click",
        "input.pointer.click.left",
        "accessibility.element_tokens",
        "input.delivery_mode"
      ],
      "annotations": {
        "read_only": false,
        "destructive": true,
        "idempotent": false,
        "open_world": true
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "click"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "button": {
            "enum": [
              "left",
              "right",
              "middle"
            ],
            "type": "string"
          },
          "capture_id": {
            "minLength": 1,
            "type": "string"
          },
          "count": {
            "maximum": 3,
            "minimum": 1,
            "type": "integer"
          },
          "delivery_mode": {
            "enum": [
              "background",
              "foreground"
            ],
            "type": "string"
          },
          "element_token": {
            "pattern": "^s[0-9a-f]{8}:[0-9]+$",
            "type": "string"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          },
          "target": {
            "additionalProperties": true,
            "description": "Exact window (kind \"window\", with pid and window_id) or desktop (kind \"desktop\", with display_id). \"primary\" is the portable desktop target.",
            "properties": {
              "display_id": {
                "description": "Display id. Required when kind is desktop; use \"primary\".",
                "type": "string"
              },
              "kind": {
                "description": "window requires pid and window_id; desktop requires display_id.",
                "enum": [
                  "window",
                  "desktop"
                ],
                "type": "string"
              },
              "pid": {
                "description": "Process id. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              },
              "window_id": {
                "description": "Window id from list_windows. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          },
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          }
        },
        "required": [
          "target",
          "delivery_mode"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "additionalProperties": false,
            "properties": {
              "delivered_count": {
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mode": {
                "enum": [
                  "background",
                  "foreground",
                  "not_applicable",
                  "unknown"
                ],
                "type": "string"
              }
            },
            "required": [
              "mode"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "effect": {
            "enum": [
              "confirmed",
              "partial",
              "unverifiable",
              "suspected_noop",
              "refused"
            ],
            "type": "string"
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "hint": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "escalation": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "enum": [
                  "route_unavailable",
                  "delivery_failed",
                  "effect_unconfirmed",
                  "suspected_noop",
                  "permission_required"
                ],
                "type": "string"
              },
              "target": {
                "enum": [
                  "pixel",
                  "foreground",
                  "page",
                  "session"
                ],
                "type": "string"
              }
            },
            "required": [
              "target",
              "reason"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "evidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "enum": [
                    "value_readback",
                    "window_change"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "fast_path": {
            "type": "object"
          },
          "hint": {
            "type": [
              "string",
              "null"
            ]
          },
          "next_call": {
            "additionalProperties": false,
            "properties": {
              "arguments": {
                "type": "object"
              },
              "tool": {
                "type": "string"
              }
            },
            "required": [
              "tool",
              "arguments"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "route": {
            "enum": [
              "accessibility",
              "synthetic_events",
              "global_input",
              "system_api",
              "dom",
              "trusted_input"
            ],
            "type": "string"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "effect",
          "route"
        ],
        "type": "object"
      }
    },
    {
      "name": "clipboard_read",
      "description": "List available system clipboard types and optionally return privacy-sensitive plain text. Clipboard content is never retained in telemetry.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "clipboard.read",
        "clipboard.types"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": false,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "cursor_semantics": {
        "action": "observe"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "include_text": {
            "default": false,
            "description": "Return plain-text clipboard content in addition to the available types.\nClipboard content is privacy-sensitive and is never retained in telemetry.",
            "type": "boolean"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "content_redacted_from_telemetry": {
            "type": "boolean"
          },
          "privacy_sensitive": {
            "type": "boolean"
          },
          "supported": {
            "type": "boolean"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "supported",
          "types",
          "text",
          "privacy_sensitive",
          "content_redacted_from_telemetry"
        ],
        "type": "object"
      }
    },
    {
      "name": "clipboard_write",
      "description": "Replace the system clipboard with exactly one value: plain text, an image from an absolute local path, or a file URL from an absolute local path. Returns the available types for read-back before paste.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "clipboard.write",
        "clipboard.write.text",
        "clipboard.write.image",
        "clipboard.write.file_url",
        "clipboard.types"
      ],
      "annotations": {
        "read_only": false,
        "destructive": true,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "cursor_semantics": {
        "action": "text"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "file_path": {
            "description": "Absolute path to a local file to place on the clipboard as a file URL.",
            "type": "string"
          },
          "image_path": {
            "description": "Absolute path to a local image to place on the clipboard.",
            "type": "string"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          },
          "text": {
            "description": "Plain text to place on the clipboard.",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "content_redacted_from_telemetry": {
            "type": "boolean"
          },
          "privacy_sensitive": {
            "type": "boolean"
          },
          "supported": {
            "type": "boolean"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "written_type": {
            "type": "string"
          }
        },
        "required": [
          "supported",
          "written_type",
          "types",
          "privacy_sensitive",
          "content_redacted_from_telemetry"
        ],
        "type": "object"
      }
    },
    {
      "name": "drag",
      "description": "Drag between two absolute points in get_desktop_state coordinates.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "input.pointer.drag"
      ],
      "annotations": {
        "read_only": false,
        "destructive": true,
        "idempotent": false,
        "open_world": true
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "drag"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "button": {
            "enum": [
              "left",
              "right",
              "middle"
            ],
            "type": "string"
          },
          "duration_ms": {
            "maximum": 10000,
            "minimum": 0,
            "type": "integer"
          },
          "from_x": {
            "type": "number"
          },
          "from_y": {
            "type": "number"
          },
          "modifier": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "scope": {
            "description": "Deprecated flat desktop target retained for wire compatibility.",
            "enum": [
              "desktop"
            ],
            "type": "string"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          },
          "steps": {
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          },
          "target": {
            "additionalProperties": true,
            "description": "Preferred per-call target: an exact window (`kind=\"window\"`, `pid`, `window_id`) or the\nprimary desktop (`kind=\"desktop\"`, `display_id=\"primary\"`).",
            "properties": {
              "display_id": {
                "description": "Display id. Required when kind is desktop; use \"primary\".",
                "type": "string"
              },
              "kind": {
                "description": "window requires pid and window_id; desktop requires display_id.",
                "enum": [
                  "window",
                  "desktop"
                ],
                "type": "string"
              },
              "pid": {
                "description": "Process id. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              },
              "window_id": {
                "description": "Window id from list_windows. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          },
          "to_x": {
            "type": "number"
          },
          "to_y": {
            "type": "number"
          }
        },
        "required": [
          "from_x",
          "from_y",
          "to_x",
          "to_y"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "additionalProperties": false,
            "properties": {
              "delivered_count": {
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mode": {
                "enum": [
                  "background",
                  "foreground",
                  "not_applicable",
                  "unknown"
                ],
                "type": "string"
              }
            },
            "required": [
              "mode"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "effect": {
            "enum": [
              "confirmed",
              "partial",
              "unverifiable",
              "suspected_noop",
              "refused"
            ],
            "type": "string"
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "hint": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "escalation": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "enum": [
                  "route_unavailable",
                  "delivery_failed",
                  "effect_unconfirmed",
                  "suspected_noop",
                  "permission_required"
                ],
                "type": "string"
              },
              "target": {
                "enum": [
                  "pixel",
                  "foreground",
                  "page",
                  "session"
                ],
                "type": "string"
              }
            },
            "required": [
              "target",
              "reason"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "evidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "enum": [
                    "value_readback",
                    "window_change"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "fast_path": {
            "type": "object"
          },
          "hint": {
            "type": [
              "string",
              "null"
            ]
          },
          "next_call": {
            "additionalProperties": false,
            "properties": {
              "arguments": {
                "type": "object"
              },
              "tool": {
                "type": "string"
              }
            },
            "required": [
              "tool",
              "arguments"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "route": {
            "enum": [
              "accessibility",
              "synthetic_events",
              "global_input",
              "system_api",
              "dom",
              "trusted_input"
            ],
            "type": "string"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "effect",
          "route"
        ],
        "type": "object"
      }
    },
    {
      "name": "end_session",
      "description": "End one visible lifecycle session and run its cursor, recording, configuration, and other cleanup hooks exactly once. Omit `session` to end the authenticated transport's implicit session. Idempotent.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "session.lifecycle.end"
      ],
      "annotations": {
        "read_only": false,
        "destructive": true,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "cursor_semantics": {
        "action": "system"
      },
      "input_schema": {
        "additionalProperties": true,
        "properties": {
          "session": {
            "description": "Optional public label to end. When omitted, end the caller's attached\nimplicit session.",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "active": {
            "const": false
          },
          "session": {
            "type": "string"
          }
        },
        "required": [
          "session",
          "active"
        ],
        "type": "object"
      }
    },
    {
      "name": "escalate_session",
      "description": "Deprecated compatibility tool for legacy capture-scope sessions. New callers select window or desktop modality on each action. No deescalate_session tool exists.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "session.capture_scope.escalate"
      ],
      "annotations": {
        "read_only": false,
        "destructive": false,
        "idempotent": false,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "cursor_semantics": {
        "action": "system"
      },
      "input_schema": {
        "additionalProperties": true,
        "properties": {
          "detail": {
            "description": "Optional bounded diagnostic detail. Never use secrets or page content.",
            "maxLength": 200,
            "type": "string"
          },
          "reason": {
            "description": "Why the window-scoped attempt failed and desktop capture is needed.",
            "enum": [
              "ax_tree_pixel_mismatch",
              "background_delivery_failed",
              "foreground_ineffective",
              "no_window_target",
              "other"
            ],
            "type": "string"
          },
          "session": {
            "description": "Public label of the legacy capture-scope session to escalate.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "reason"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "capture_scope": {
            "enum": [
              "auto",
              "window",
              "desktop"
            ],
            "type": "string"
          },
          "desktop_capture_authorized": {
            "type": "boolean"
          },
          "desktop_unlocked": {
            "type": "boolean"
          },
          "effective_scope": {
            "enum": [
              "window",
              "desktop"
            ],
            "type": "string"
          },
          "escalation_detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "escalation_reason": {
            "anyOf": [
              {
                "enum": [
                  "ax_tree_pixel_mismatch",
                  "background_delivery_failed",
                  "foreground_ineffective",
                  "no_window_target",
                  "other"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session": {
            "type": "string"
          }
        },
        "required": [
          "session",
          "capture_scope",
          "effective_scope",
          "desktop_capture_authorized",
          "desktop_unlocked",
          "escalation_reason",
          "escalation_detail"
        ],
        "type": "object"
      }
    },
    {
      "name": "get_agent_cursor_state",
      "description": "Return the session cursor's theme, semantic playback, position, visibility, and motion.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "agent_cursor.state"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "session": {
            "description": "Public label of the session whose cursor to inspect.",
            "type": "string"
          }
        },
        "required": [
          "session"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "motion": {
            "properties": {
              "arc_flow": {
                "type": "number"
              },
              "arc_size": {
                "type": "number"
              },
              "dwell_after_click_ms": {
                "type": "number"
              },
              "effects": {
                "properties": {
                  "glow": {
                    "type": "boolean"
                  },
                  "magnet": {
                    "type": "boolean"
                  },
                  "ripple": {
                    "type": "boolean"
                  },
                  "squish": {
                    "type": "boolean"
                  },
                  "trail": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "trail",
                  "glow",
                  "magnet",
                  "ripple",
                  "squish"
                ],
                "type": [
                  "object",
                  "null"
                ]
              },
              "end_handle": {
                "type": "number"
              },
              "glide_duration_ms": {
                "type": "number"
              },
              "idle_hide_ms": {
                "type": "number"
              },
              "spring": {
                "type": "number"
              },
              "start_handle": {
                "type": "number"
              },
              "style": {
                "enum": [
                  "signature_arc",
                  "spring_settle",
                  "magnetic",
                  "comet_swoop",
                  "adaptive",
                  "classic"
                ],
                "type": "string"
              },
              "timing": {
                "enum": [
                  "native",
                  "fitts",
                  "fixed",
                  "relaxed",
                  "steady",
                  "calm",
                  "deliberate"
                ],
                "type": "string"
              },
              "turn_radius": {
                "type": "number"
              }
            },
            "required": [
              "start_handle",
              "end_handle",
              "arc_size",
              "arc_flow",
              "spring",
              "glide_duration_ms",
              "dwell_after_click_ms",
              "idle_hide_ms",
              "turn_radius"
            ],
            "type": "object"
          },
          "position": {
            "anyOf": [
              {
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "session": {
            "type": "string"
          },
          "theme": {
            "properties": {
              "fallback": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string"
              },
              "profile": {
                "type": "string"
              },
              "reduced_motion": {
                "enum": [
                  "auto",
                  "on",
                  "off"
                ],
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "version",
              "profile",
              "reduced_motion",
              "fallback"
            ],
            "type": "object"
          },
          "visual_state": {
            "properties": {
              "frame": {
                "minimum": 0,
                "type": "integer"
              },
              "modifiers": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "phase": {
                "type": "string"
              },
              "preempted_count": {
                "minimum": 0,
                "type": "integer"
              },
              "requested_action": {
                "enum": [
                  "idle",
                  "observe",
                  "click",
                  "drag",
                  "scroll",
                  "text",
                  "key",
                  "navigate",
                  "app",
                  "transfer",
                  "record",
                  "system"
                ],
                "type": "string"
              },
              "resolved_action": {
                "enum": [
                  "idle",
                  "observe",
                  "click",
                  "drag",
                  "scroll",
                  "text",
                  "key",
                  "navigate",
                  "app",
                  "transfer",
                  "record",
                  "system"
                ],
                "type": "string"
              }
            },
            "required": [
              "requested_action",
              "resolved_action",
              "modifiers",
              "phase",
              "frame",
              "preempted_count"
            ],
            "type": "object"
          }
        },
        "required": [
          "session",
          "enabled",
          "position",
          "theme",
          "visual_state",
          "motion"
        ],
        "type": "object"
      }
    },
    {
      "name": "get_cursor_position",
      "description": "Return the OS cursor position when the platform can observe it.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "screen.cursor.position"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "observe"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "available": {
            "type": "boolean"
          },
          "source": {
            "type": "string"
          },
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          }
        },
        "type": "object"
      }
    },
    {
      "name": "get_desktop_state",
      "description": "Capture the complete primary display at native resolution for a desktop-scope GUI loop.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "screen.capture",
        "screen.dimensions"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": false,
        "open_world": false
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "observe"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "max_image_dimension": {
            "description": "Optional long-edge cap for the returned PNG, in pixels. Omitted or 0\nreturns the full-size capture. When the cap downsizes the image,\ndesktop-scope x/y taken from it are mapped back automatically.",
            "minimum": 0,
            "type": "integer"
          },
          "screenshot_out_file": {
            "description": "Write the PNG here instead of returning base64.",
            "type": "string"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "agent_overlay_capture": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "oneOf": [
                  {
                    "const": "excluded",
                    "type": "string"
                  },
                  {
                    "const": "not_present",
                    "type": "string"
                  },
                  {
                    "const": "not_excluded",
                    "type": "string"
                  }
                ]
              }
            },
            "required": [
              "status"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "display": {
            "type": "string"
          },
          "platform": {
            "enum": [
              "macos",
              "linux",
              "windows"
            ],
            "type": "string"
          },
          "scale_factor": {
            "type": "number"
          },
          "screen_height": {
            "type": "integer"
          },
          "screen_width": {
            "type": "integer"
          },
          "screenshot_file_path": {
            "type": "string"
          },
          "screenshot_height": {
            "type": "integer"
          },
          "screenshot_mime_type": {
            "const": "image/png"
          },
          "screenshot_width": {
            "type": "integer"
          }
        },
        "required": [
          "platform",
          "display",
          "screenshot_width",
          "screenshot_height",
          "screen_width",
          "screen_height",
          "scale_factor",
          "screenshot_mime_type"
        ],
        "type": "object"
      }
    },
    {
      "name": "get_screen_size",
      "description": "Return the primary display dimensions and scale factor in the platform's desktop coordinate space.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "screen.dimensions"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "observe"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "height": {
            "type": "number"
          },
          "scale_factor": {
            "type": "number"
          },
          "width": {
            "type": "number"
          }
        },
        "required": [
          "width",
          "height",
          "scale_factor"
        ],
        "type": "object"
      }
    },
    {
      "name": "get_session",
      "description": "Read content-free lifecycle, cursor, recording, and idle status for one session visible to this authenticated transport. Omit `session` to inspect its implicit session.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "session.lifecycle.read"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "cursor_semantics": {
        "action": "system"
      },
      "input_schema": {
        "additionalProperties": true,
        "properties": {
          "session": {
            "description": "Optional public label. When omitted, inspect the caller's attached\nimplicit session.",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "client_kind": {
            "enum": [
              "cli",
              "direct",
              "mcp",
              "python_sdk",
              "typescript_sdk"
            ],
            "type": "string"
          },
          "cursor_visible": {
            "type": "boolean"
          },
          "expires_in_seconds": {
            "minimum": 0,
            "type": "integer"
          },
          "idle_seconds": {
            "minimum": 0,
            "type": "integer"
          },
          "implicit": {
            "type": "boolean"
          },
          "recording_active": {
            "type": "boolean"
          },
          "session": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "enum": [
              "active",
              "ending"
            ],
            "type": "string"
          },
          "transport": {
            "enum": [
              "cli",
              "daemon",
              "mcp_stdio",
              "mcp_http"
            ],
            "type": "string"
          }
        },
        "required": [
          "session",
          "implicit",
          "state",
          "client_kind",
          "transport",
          "cursor_visible",
          "recording_active",
          "idle_seconds",
          "expires_in_seconds"
        ],
        "type": "object"
      }
    },
    {
      "name": "get_session_state",
      "description": "Deprecated compatibility alias that reads a live legacy session's capture policy. Use get_session for lifecycle state.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "session.capture_scope.read"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "cursor_semantics": {
        "action": "system"
      },
      "input_schema": {
        "additionalProperties": true,
        "properties": {
          "session": {
            "description": "Optional public label. When omitted, inspect the caller's attached\nimplicit session.",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "capture_scope": {
            "enum": [
              "auto",
              "window",
              "desktop"
            ],
            "type": "string"
          },
          "desktop_capture_authorized": {
            "type": "boolean"
          },
          "desktop_unlocked": {
            "type": "boolean"
          },
          "effective_scope": {
            "enum": [
              "window",
              "desktop"
            ],
            "type": "string"
          },
          "escalation_detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "escalation_reason": {
            "anyOf": [
              {
                "enum": [
                  "ax_tree_pixel_mismatch",
                  "background_delivery_failed",
                  "foreground_ineffective",
                  "no_window_target",
                  "other"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session": {
            "type": "string"
          }
        },
        "required": [
          "session",
          "capture_scope",
          "effective_scope",
          "desktop_capture_authorized",
          "desktop_unlocked",
          "escalation_reason",
          "escalation_detail"
        ],
        "type": "object"
      }
    },
    {
      "name": "get_window_state",
      "description": "Observe an exact native window with snapshot-bound elements and optional screenshots.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "accessibility.window_state",
        "accessibility.tree",
        "accessibility.tree.structured",
        "accessibility.tree.bounded",
        "accessibility.element_tokens",
        "screen.capture",
        "screen.capture.window"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": false,
        "open_world": false
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "observe"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "full_output": {
            "description": "Restore the previous full response (both representations, all\nmetadata, platform walk limits).",
            "type": "boolean"
          },
          "include_accessibility_tree": {
            "type": "boolean"
          },
          "include_screenshot": {
            "type": "boolean"
          },
          "max_depth": {
            "minimum": 1,
            "type": "integer"
          },
          "max_dimension": {
            "minimum": 1,
            "type": "integer"
          },
          "max_elements": {
            "minimum": 1,
            "type": "integer"
          },
          "max_image_dimension": {
            "description": "Optional per-call long-edge ceiling. Zero requests native resolution;\nomit it to preserve the configured session or global behavior.",
            "minimum": 0,
            "type": "integer"
          },
          "pid": {
            "maximum": 4294967295,
            "minimum": 1,
            "type": "integer"
          },
          "query": {
            "type": "string"
          },
          "screenshot_out_file": {
            "type": "string"
          },
          "session": {
            "type": "string"
          },
          "since": {
            "description": "Return only what changed since this earlier `snapshot_id`.",
            "type": "string"
          },
          "timeout_ms": {
            "description": "Wall-clock budget for the accessibility walk in milliseconds\n(default 1000 on every platform). A walk that runs out returns a\npartial tree flagged `truncated` rather than failing.",
            "maximum": 120000,
            "minimum": 100,
            "type": "integer"
          },
          "tree_format": {
            "description": "Tree representation to return: `markdown` (default), `elements`, or\n`both`.",
            "enum": [
              "markdown",
              "elements",
              "both"
            ],
            "type": "string"
          },
          "verbose": {
            "description": "Include `_note` and the full `background_input` report.",
            "type": "boolean"
          },
          "window_id": {
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "pid",
          "window_id"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "app_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "degraded": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "degraded_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "element_count": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "elements": {
            "items": {
              "properties": {
                "actions": {
                  "items": {
                    "type": "string"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "depth": {
                  "minimum": 0,
                  "type": "integer"
                },
                "element_index": {
                  "minimum": 0,
                  "type": "integer"
                },
                "element_token": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "enabled": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "frame": {
                  "properties": {
                    "h": {
                      "type": "number"
                    },
                    "w": {
                      "type": "number"
                    },
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "x",
                    "y",
                    "w",
                    "h"
                  ],
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "in_web_content": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "label": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "max": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "min": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "parent_index": {
                  "minimum": 0,
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "role": {
                  "type": "string"
                },
                "selected": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "value": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "value_description": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "element_index",
                "role",
                "depth"
              ],
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "elements_complete": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "filtered_element_count": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "pid": {
            "minimum": 0,
            "type": "integer"
          },
          "returned_element_count": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "screenshot_file_path": {
            "type": [
              "string",
              "null"
            ]
          },
          "screenshot_frame_valid": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "screenshot_height": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "screenshot_mime_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "screenshot_scale": {
            "type": [
              "number",
              "null"
            ]
          },
          "screenshot_width": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "since": {
            "type": [
              "string",
              "null"
            ]
          },
          "since_status": {
            "type": [
              "string",
              "null"
            ]
          },
          "snapshot_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "total_element_count": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "tree_diff": {
            "type": [
              "string",
              "null"
            ]
          },
          "tree_format": {
            "type": [
              "string",
              "null"
            ]
          },
          "tree_markdown": {
            "type": [
              "string",
              "null"
            ]
          },
          "truncated": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "truncation_hint": {
            "type": [
              "string",
              "null"
            ]
          },
          "truncation_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "window_bounds": {
            "properties": {
              "height": {
                "type": "number"
              },
              "width": {
                "type": "number"
              },
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y",
              "width",
              "height"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "window_id": {
            "minimum": 0,
            "type": "integer"
          },
          "window_title": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "pid",
          "window_id"
        ],
        "type": "object"
      }
    },
    {
      "name": "hotkey",
      "description": "Press a key chord in the foreground desktop application.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "input.keyboard.hotkey"
      ],
      "annotations": {
        "read_only": false,
        "destructive": true,
        "idempotent": false,
        "open_world": true
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "key"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "keys": {
            "items": {
              "type": "string"
            },
            "minItems": 2,
            "type": "array"
          },
          "scope": {
            "description": "Deprecated flat desktop target retained for wire compatibility.",
            "enum": [
              "desktop"
            ],
            "type": "string"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          },
          "target": {
            "additionalProperties": true,
            "description": "Preferred per-call target: an exact window (`kind=\"window\"`, `pid`, `window_id`) or the\nprimary desktop (`kind=\"desktop\"`, `display_id=\"primary\"`).",
            "properties": {
              "display_id": {
                "description": "Display id. Required when kind is desktop; use \"primary\".",
                "type": "string"
              },
              "kind": {
                "description": "window requires pid and window_id; desktop requires display_id.",
                "enum": [
                  "window",
                  "desktop"
                ],
                "type": "string"
              },
              "pid": {
                "description": "Process id. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              },
              "window_id": {
                "description": "Window id from list_windows. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          }
        },
        "required": [
          "keys"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "additionalProperties": false,
            "properties": {
              "delivered_count": {
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mode": {
                "enum": [
                  "background",
                  "foreground",
                  "not_applicable",
                  "unknown"
                ],
                "type": "string"
              }
            },
            "required": [
              "mode"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "effect": {
            "enum": [
              "confirmed",
              "partial",
              "unverifiable",
              "suspected_noop",
              "refused"
            ],
            "type": "string"
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "hint": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "escalation": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "enum": [
                  "route_unavailable",
                  "delivery_failed",
                  "effect_unconfirmed",
                  "suspected_noop",
                  "permission_required"
                ],
                "type": "string"
              },
              "target": {
                "enum": [
                  "pixel",
                  "foreground",
                  "page",
                  "session"
                ],
                "type": "string"
              }
            },
            "required": [
              "target",
              "reason"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "evidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "enum": [
                    "value_readback",
                    "window_change"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "fast_path": {
            "type": "object"
          },
          "hint": {
            "type": [
              "string",
              "null"
            ]
          },
          "next_call": {
            "additionalProperties": false,
            "properties": {
              "arguments": {
                "type": "object"
              },
              "tool": {
                "type": "string"
              }
            },
            "required": [
              "tool",
              "arguments"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "route": {
            "enum": [
              "accessibility",
              "synthetic_events",
              "global_input",
              "system_api",
              "dom",
              "trusted_input"
            ],
            "type": "string"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "effect",
          "route"
        ],
        "type": "object"
      }
    },
    {
      "name": "invoke_menu",
      "description": "Resolve an exact application-menu path one live native level at a time and invoke its final item through accessibility APIs. Missing, ambiguous, disabled, or structurally mismatched segments fail closed; this tool never falls back to pixels.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "menu.path.invoke",
        "accessibility.menu.native"
      ],
      "annotations": {
        "read_only": false,
        "destructive": true,
        "idempotent": false,
        "open_world": true
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "app"
      },
      "input_schema": {
        "additionalProperties": false,
        "description": "Exact, immediate-child application menu path to resolve and invoke through\nthe operating system's accessibility API. Path labels are matched after\ntrimming surrounding whitespace and otherwise remain case-sensitive. On\nmacOS, three periods in a label also match the ellipsis character that\nnative menu titles use (`Save As...` finds `Save As…`).",
        "properties": {
          "path": {
            "description": "Menu labels from the top-level menu to the item, e.g. `[\"File\", \"Save As...\"]`\n(1 to 16 labels).",
            "items": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 16,
            "minItems": 1,
            "type": "array"
          },
          "pid": {
            "description": "Process ID of the application that owns the menu.",
            "minimum": 1,
            "type": "integer"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          },
          "window_id": {
            "description": "Window ID from list_windows whose menu is invoked.",
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "pid",
          "window_id",
          "path"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "additionalProperties": false,
            "properties": {
              "delivered_count": {
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mode": {
                "enum": [
                  "background",
                  "foreground",
                  "not_applicable",
                  "unknown"
                ],
                "type": "string"
              }
            },
            "required": [
              "mode"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "effect": {
            "enum": [
              "confirmed",
              "partial",
              "unverifiable",
              "suspected_noop",
              "refused"
            ],
            "type": "string"
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "hint": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "escalation": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "enum": [
                  "route_unavailable",
                  "delivery_failed",
                  "effect_unconfirmed",
                  "suspected_noop",
                  "permission_required"
                ],
                "type": "string"
              },
              "target": {
                "enum": [
                  "pixel",
                  "foreground",
                  "page",
                  "session"
                ],
                "type": "string"
              }
            },
            "required": [
              "target",
              "reason"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "evidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "enum": [
                    "value_readback",
                    "window_change"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "fast_path": {
            "type": "object"
          },
          "hint": {
            "type": [
              "string",
              "null"
            ]
          },
          "next_call": {
            "additionalProperties": false,
            "properties": {
              "arguments": {
                "type": "object"
              },
              "tool": {
                "type": "string"
              }
            },
            "required": [
              "tool",
              "arguments"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "route": {
            "enum": [
              "accessibility",
              "synthetic_events",
              "global_input",
              "system_api",
              "dom",
              "trusted_input"
            ],
            "type": "string"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "effect",
          "route"
        ],
        "type": "object"
      }
    },
    {
      "name": "list_apps",
      "description": "Discover installed and running native applications.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "app.list"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "observe"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "apps": {
            "items": {
              "properties": {
                "active": {
                  "type": "boolean"
                },
                "bundle_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "last_used": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "launch_path": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "pid": {
                  "minimum": 0,
                  "type": "integer"
                },
                "running": {
                  "type": "boolean"
                }
              },
              "required": [
                "pid",
                "name",
                "running",
                "active"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "apps"
        ],
        "type": "object"
      }
    },
    {
      "name": "list_sessions",
      "description": "List content-free lifecycle summaries attached to this authenticated transport lease. It does not enumerate other callers' sessions.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "session.lifecycle.list"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "cursor_semantics": {
        "action": "system"
      },
      "input_schema": {
        "additionalProperties": true,
        "properties": {
          "cursor": {
            "description": "Opaque continuation cursor returned by a previous call.",
            "type": "string"
          },
          "limit": {
            "description": "Maximum number of content-free summaries to return (default 50, max\n100). Ordinary agent transports are scoped to their own lease.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sessions": {
            "items": {
              "properties": {
                "client_kind": {
                  "enum": [
                    "cli",
                    "direct",
                    "mcp",
                    "python_sdk",
                    "typescript_sdk"
                  ],
                  "type": "string"
                },
                "cursor_visible": {
                  "type": "boolean"
                },
                "expires_in_seconds": {
                  "minimum": 0,
                  "type": "integer"
                },
                "idle_seconds": {
                  "minimum": 0,
                  "type": "integer"
                },
                "implicit": {
                  "type": "boolean"
                },
                "recording_active": {
                  "type": "boolean"
                },
                "session": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "state": {
                  "enum": [
                    "active",
                    "ending"
                  ],
                  "type": "string"
                },
                "transport": {
                  "enum": [
                    "cli",
                    "daemon",
                    "mcp_stdio",
                    "mcp_http"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "session",
                "implicit",
                "state",
                "client_kind",
                "transport",
                "cursor_visible",
                "recording_active",
                "idle_seconds",
                "expires_in_seconds"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "sessions",
          "next_cursor"
        ],
        "type": "object"
      }
    },
    {
      "name": "list_windows",
      "description": "Discover exact native windows and observable bounds and stacking order.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "window.list"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "observe"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "on_screen_only": {
            "type": "boolean"
          },
          "pid": {
            "maximum": 4294967295,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "current_space_id": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "windows": {
            "items": {
              "properties": {
                "app_name": {
                  "type": "string"
                },
                "bounds": {
                  "properties": {
                    "height": {
                      "type": "number"
                    },
                    "width": {
                      "type": "number"
                    },
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "x",
                    "y",
                    "width",
                    "height"
                  ],
                  "type": "object"
                },
                "current_space_id": {
                  "minimum": 0,
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "is_on_screen": {
                  "type": "boolean"
                },
                "layer": {
                  "format": "int32",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "minimized": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "on_current_space": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "pid": {
                  "maximum": 4294967295,
                  "minimum": 0,
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "space_ids": {
                  "items": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "title": {
                  "type": "string"
                },
                "window_id": {
                  "minimum": 0,
                  "type": "integer"
                },
                "z_index": {
                  "description": "Higher values are closer to the front. Null means the provider cannot observe stacking order; callers must not infer an order from array position or treat null as zero.",
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              },
              "required": [
                "window_id",
                "pid",
                "app_name",
                "title",
                "bounds",
                "is_on_screen",
                "z_index"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "windows"
        ],
        "type": "object"
      }
    },
    {
      "name": "move_cursor",
      "description": "Move the real OS pointer in get_desktop_state coordinates.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "agent_cursor.move",
        "input.pointer.move"
      ],
      "annotations": {
        "read_only": false,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "navigate"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "scope": {
            "description": "Deprecated flat desktop target retained for wire compatibility.",
            "enum": [
              "desktop"
            ],
            "type": "string"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          },
          "target": {
            "additionalProperties": true,
            "description": "Preferred per-call target: an exact window (`kind=\"window\"`, `pid`, `window_id`) or the\nprimary desktop (`kind=\"desktop\"`, `display_id=\"primary\"`).",
            "properties": {
              "display_id": {
                "description": "Display id. Required when kind is desktop; use \"primary\".",
                "type": "string"
              },
              "kind": {
                "description": "window requires pid and window_id; desktop requires display_id.",
                "enum": [
                  "window",
                  "desktop"
                ],
                "type": "string"
              },
              "pid": {
                "description": "Process id. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              },
              "window_id": {
                "description": "Window id from list_windows. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          },
          "x": {
            "description": "Destination X: window-local screenshot pixels for a window target, native\nget_desktop_state screenshot pixels for the desktop.",
            "type": "number"
          },
          "y": {
            "description": "Destination Y, in the same space as `x`.",
            "type": "number"
          }
        },
        "required": [
          "x",
          "y"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "additionalProperties": false,
            "properties": {
              "delivered_count": {
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mode": {
                "enum": [
                  "background",
                  "foreground",
                  "not_applicable",
                  "unknown"
                ],
                "type": "string"
              }
            },
            "required": [
              "mode"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "effect": {
            "enum": [
              "confirmed",
              "partial",
              "unverifiable",
              "suspected_noop",
              "refused"
            ],
            "type": "string"
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "hint": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "escalation": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "enum": [
                  "route_unavailable",
                  "delivery_failed",
                  "effect_unconfirmed",
                  "suspected_noop",
                  "permission_required"
                ],
                "type": "string"
              },
              "target": {
                "enum": [
                  "pixel",
                  "foreground",
                  "page",
                  "session"
                ],
                "type": "string"
              }
            },
            "required": [
              "target",
              "reason"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "evidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "enum": [
                    "value_readback",
                    "window_change"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "fast_path": {
            "type": "object"
          },
          "hint": {
            "type": [
              "string",
              "null"
            ]
          },
          "next_call": {
            "additionalProperties": false,
            "properties": {
              "arguments": {
                "type": "object"
              },
              "tool": {
                "type": "string"
              }
            },
            "required": [
              "tool",
              "arguments"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "route": {
            "enum": [
              "accessibility",
              "synthetic_events",
              "global_input",
              "system_api",
              "dom",
              "trusted_input"
            ],
            "type": "string"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "effect",
          "route"
        ],
        "type": "object"
      }
    },
    {
      "name": "parse_visual_regions",
      "description": "Parse one immutable registered capture into model-neutral text and icon regions.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "visual.regions.parse",
        "screen.capture.registry.read"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "cursor_semantics": {
        "action": "observe"
      },
      "input_schema": {
        "additionalProperties": false,
        "description": "Parse one immutable screenshot capture. Pass the `capture_id` returned by\n`get_window_state` or `get_desktop_state`; the Driver capture registry\nresolves it to the exact pixels and action-coordinate transform.",
        "properties": {
          "capture_id": {
            "description": "`capture_id` of a screenshot returned by get_window_state or get_desktop_state.",
            "minLength": 1,
            "type": "string"
          },
          "options": {
            "additionalProperties": false,
            "default": {},
            "description": "Optional, model-neutral controls for one bounded parse.",
            "properties": {
              "kinds": {
                "description": "Region kinds to return (`text`, `icon`). Omit for all kinds.",
                "items": {
                  "enum": [
                    "text",
                    "icon"
                  ],
                  "type": "string"
                },
                "maxItems": 2,
                "minItems": 1,
                "type": "array"
              },
              "max_regions": {
                "description": "Return at most this many regions.",
                "minimum": 1,
                "type": "integer"
              },
              "min_confidence": {
                "description": "Drop regions below this confidence (0 to 1).",
                "maximum": 1,
                "minimum": 0,
                "type": "number"
              }
            },
            "required": [],
            "type": "object"
          }
        },
        "required": [
          "capture_id"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "capture": {
            "properties": {
              "action_coordinate_space": {
                "oneOf": [
                  {
                    "properties": {
                      "kind": {
                        "const": "screenshot_pixels",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  },
                  {
                    "properties": {
                      "kind": {
                        "const": "affine",
                        "type": "string"
                      },
                      "m11": {
                        "type": "number"
                      },
                      "m12": {
                        "type": "number"
                      },
                      "m21": {
                        "type": "number"
                      },
                      "m22": {
                        "type": "number"
                      },
                      "tx": {
                        "type": "number"
                      },
                      "ty": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "kind",
                      "m11",
                      "m12",
                      "m21",
                      "m22",
                      "tx",
                      "ty"
                    ],
                    "type": "object"
                  }
                ]
              },
              "capture_id": {
                "type": "string"
              },
              "captured_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "screenshot": {
                "properties": {
                  "height": {
                    "minimum": 1,
                    "type": "integer"
                  },
                  "mime_type": {
                    "const": "image/png"
                  },
                  "reference": {
                    "type": "string"
                  },
                  "sha256": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "width": {
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [
                  "reference",
                  "width",
                  "height",
                  "mime_type"
                ],
                "type": "object"
              },
              "source": {
                "oneOf": [
                  {
                    "properties": {
                      "kind": {
                        "const": "window",
                        "type": "string"
                      },
                      "pid": {
                        "minimum": 0,
                        "type": "integer"
                      },
                      "window_id": {
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "kind",
                      "pid",
                      "window_id"
                    ],
                    "type": "object"
                  },
                  {
                    "properties": {
                      "display_id": {
                        "const": "primary"
                      },
                      "kind": {
                        "const": "primary_desktop",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind",
                      "display_id"
                    ],
                    "type": "object"
                  }
                ]
              }
            },
            "required": [
              "capture_id",
              "source",
              "screenshot",
              "action_coordinate_space"
            ],
            "type": "object"
          },
          "parser": {
            "properties": {
              "backend": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "extension_id": {
                "type": "string"
              },
              "extension_version": {
                "type": "string"
              },
              "fixture_sha256": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "model_id": {
                "type": "string"
              },
              "model_manifest_sha256": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "model_source_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "model_version": {
                "type": "string"
              },
              "onnx_runtime_library_sha256": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "onnx_runtime_version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "runtime": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "extension_id",
              "extension_version",
              "model_id",
              "model_version"
            ],
            "type": "object"
          },
          "regions": {
            "items": {
              "properties": {
                "bounds": {
                  "properties": {
                    "height": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "width": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "x": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "y": {
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "x",
                    "y",
                    "width",
                    "height"
                  ],
                  "type": "object"
                },
                "confidence": {
                  "maximum": 1,
                  "minimum": 0,
                  "type": "number"
                },
                "group_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "id": {
                  "type": "string"
                },
                "interactive": {
                  "type": "boolean"
                },
                "kind": {
                  "enum": [
                    "text",
                    "icon"
                  ],
                  "type": "string"
                },
                "label": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "parent_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "reading_order": {
                  "minimum": 0,
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "text": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "kind",
                "bounds",
                "confidence",
                "interactive"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "request_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "schema": {
            "const": "cua.visual_regions_v1"
          },
          "timing": {
            "properties": {
              "duration_ms": {
                "minimum": 0,
                "type": "integer"
              },
              "inference_ms": {
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "preprocess_ms": {
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "duration_ms"
            ],
            "type": "object"
          },
          "warnings": {
            "items": {
              "properties": {
                "code": {
                  "type": "string"
                },
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "message"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "schema",
          "capture",
          "parser",
          "regions",
          "timing"
        ],
        "type": "object"
      },
      "error_output_schema": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "enum": [
              "not_installed",
              "capture_not_found",
              "capture_expired",
              "capture_stale",
              "capture_generation_mismatch",
              "unsupported_target",
              "unsupported_platform",
              "incompatible_protocol",
              "invalid_frame",
              "worker_launch_failed",
              "worker_crashed",
              "worker_cancelled",
              "timeout",
              "resource_limit_exceeded",
              "artifact_invalid",
              "inference_failed"
            ],
            "type": "string"
          },
          "detail": {
            "type": [
              "string",
              "null"
            ]
          },
          "message": {
            "type": "string"
          },
          "retryable": {
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "retryable"
        ],
        "type": "object"
      }
    },
    {
      "name": "press_key",
      "description": "Press one key, with optional modifiers, in the foreground desktop application.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "input.keyboard.press",
        "accessibility.element_tokens"
      ],
      "annotations": {
        "read_only": false,
        "destructive": true,
        "idempotent": false,
        "open_world": true
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "key"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "key": {
            "type": "string"
          },
          "modifiers": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "scope": {
            "description": "Deprecated flat desktop target retained for wire compatibility.",
            "enum": [
              "desktop"
            ],
            "type": "string"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          },
          "target": {
            "additionalProperties": true,
            "description": "Preferred per-call target: an exact window (`kind=\"window\"`, `pid`, `window_id`) or the\nprimary desktop (`kind=\"desktop\"`, `display_id=\"primary\"`).",
            "properties": {
              "display_id": {
                "description": "Display id. Required when kind is desktop; use \"primary\".",
                "type": "string"
              },
              "kind": {
                "description": "window requires pid and window_id; desktop requires display_id.",
                "enum": [
                  "window",
                  "desktop"
                ],
                "type": "string"
              },
              "pid": {
                "description": "Process id. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              },
              "window_id": {
                "description": "Window id from list_windows. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          }
        },
        "required": [
          "key"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "additionalProperties": false,
            "properties": {
              "delivered_count": {
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mode": {
                "enum": [
                  "background",
                  "foreground",
                  "not_applicable",
                  "unknown"
                ],
                "type": "string"
              }
            },
            "required": [
              "mode"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "effect": {
            "enum": [
              "confirmed",
              "partial",
              "unverifiable",
              "suspected_noop",
              "refused"
            ],
            "type": "string"
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "hint": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "escalation": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "enum": [
                  "route_unavailable",
                  "delivery_failed",
                  "effect_unconfirmed",
                  "suspected_noop",
                  "permission_required"
                ],
                "type": "string"
              },
              "target": {
                "enum": [
                  "pixel",
                  "foreground",
                  "page",
                  "session"
                ],
                "type": "string"
              }
            },
            "required": [
              "target",
              "reason"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "evidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "enum": [
                    "value_readback",
                    "window_change"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "fast_path": {
            "type": "object"
          },
          "hint": {
            "type": [
              "string",
              "null"
            ]
          },
          "next_call": {
            "additionalProperties": false,
            "properties": {
              "arguments": {
                "type": "object"
              },
              "tool": {
                "type": "string"
              }
            },
            "required": [
              "tool",
              "arguments"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "route": {
            "enum": [
              "accessibility",
              "synthetic_events",
              "global_input",
              "system_api",
              "dom",
              "trusted_input"
            ],
            "type": "string"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "effect",
          "route"
        ],
        "type": "object"
      }
    },
    {
      "name": "scroll",
      "description": "Scroll at an absolute point in get_desktop_state coordinates.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "input.pointer.scroll",
        "accessibility.element_tokens"
      ],
      "annotations": {
        "read_only": false,
        "destructive": false,
        "idempotent": false,
        "open_world": true
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "scroll"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "by": {
            "enum": [
              "line",
              "page"
            ],
            "type": "string"
          },
          "direction": {
            "enum": [
              "up",
              "down",
              "left",
              "right"
            ],
            "type": "string"
          },
          "scope": {
            "description": "Deprecated flat desktop target retained for wire compatibility.",
            "enum": [
              "desktop"
            ],
            "type": "string"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          },
          "target": {
            "additionalProperties": true,
            "description": "Preferred per-call target: an exact window (`kind=\"window\"`, `pid`, `window_id`) or the\nprimary desktop (`kind=\"desktop\"`, `display_id=\"primary\"`).",
            "properties": {
              "display_id": {
                "description": "Display id. Required when kind is desktop; use \"primary\".",
                "type": "string"
              },
              "kind": {
                "description": "window requires pid and window_id; desktop requires display_id.",
                "enum": [
                  "window",
                  "desktop"
                ],
                "type": "string"
              },
              "pid": {
                "description": "Process id. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              },
              "window_id": {
                "description": "Window id from list_windows. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          },
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          }
        },
        "required": [
          "x",
          "y",
          "direction"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "additionalProperties": false,
            "properties": {
              "delivered_count": {
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mode": {
                "enum": [
                  "background",
                  "foreground",
                  "not_applicable",
                  "unknown"
                ],
                "type": "string"
              }
            },
            "required": [
              "mode"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "effect": {
            "enum": [
              "confirmed",
              "partial",
              "unverifiable",
              "suspected_noop",
              "refused"
            ],
            "type": "string"
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "hint": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "escalation": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "enum": [
                  "route_unavailable",
                  "delivery_failed",
                  "effect_unconfirmed",
                  "suspected_noop",
                  "permission_required"
                ],
                "type": "string"
              },
              "target": {
                "enum": [
                  "pixel",
                  "foreground",
                  "page",
                  "session"
                ],
                "type": "string"
              }
            },
            "required": [
              "target",
              "reason"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "evidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "enum": [
                    "value_readback",
                    "window_change"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "fast_path": {
            "type": "object"
          },
          "hint": {
            "type": [
              "string",
              "null"
            ]
          },
          "next_call": {
            "additionalProperties": false,
            "properties": {
              "arguments": {
                "type": "object"
              },
              "tool": {
                "type": "string"
              }
            },
            "required": [
              "tool",
              "arguments"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "route": {
            "enum": [
              "accessibility",
              "synthetic_events",
              "global_input",
              "system_api",
              "dom",
              "trusted_input"
            ],
            "type": "string"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "effect",
          "route"
        ],
        "type": "object"
      }
    },
    {
      "name": "set_agent_cursor_enabled",
      "description": "Show or hide the agent cursor owned by a session.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "agent_cursor.set_enabled"
      ],
      "annotations": {
        "read_only": false,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "enabled": {
            "description": "`true` shows the session's agent cursor overlay; `false` hides it.",
            "type": "boolean"
          },
          "session": {
            "description": "Public label of the session that owns the cursor.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "enabled"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "session": {
            "type": "string"
          }
        },
        "required": [
          "session",
          "enabled"
        ],
        "type": "object"
      }
    },
    {
      "name": "set_agent_cursor_motion",
      "description": "Configure the movement style, timing, effects and visibility timing for a session cursor.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "agent_cursor.set_motion"
      ],
      "annotations": {
        "read_only": false,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "arc_flow": {
            "description": "Added to the arc asymmetry of `signature_arc`, `spring_settle` and `comet_swoop`:\npositive moves the apex toward the destination. Clamped to -1..1 (default 0).",
            "type": "number"
          },
          "arc_size": {
            "description": "Scales the arc of `signature_arc`, `spring_settle` and `comet_swoop`: 0.25 (default)\nkeeps the style's arc, 0 is a straight line, 0.5 doubles it. Clamped to 0..1.",
            "type": "number"
          },
          "dwell_after_click_ms": {
            "description": "Pause after a click animation, in milliseconds. Clamped to 0..5000 (default 80).",
            "type": "number"
          },
          "effects": {
            "additionalProperties": false,
            "description": "Turn effects on or off. Omit a field to keep it; `\"default\"` restores the style default.",
            "properties": {
              "glow": {
                "description": "Soft glow around the cursor that grows with speed.",
                "enum": [
                  "on",
                  "off",
                  "default"
                ],
                "type": "string"
              },
              "magnet": {
                "description": "Target glow when the `magnetic` style locks on.",
                "enum": [
                  "on",
                  "off",
                  "default"
                ],
                "type": "string"
              },
              "ripple": {
                "description": "Ring that expands from the hotspot on click.",
                "enum": [
                  "on",
                  "off",
                  "default"
                ],
                "type": "string"
              },
              "squish": {
                "description": "Brief scale-down of the cursor on click.",
                "enum": [
                  "on",
                  "off",
                  "default"
                ],
                "type": "string"
              },
              "trail": {
                "description": "Short fading trail behind the cursor.",
                "enum": [
                  "on",
                  "off",
                  "default"
                ],
                "type": "string"
              }
            },
            "required": [],
            "type": "object"
          },
          "end_handle": {
            "description": "Arc control-point offset from the end, as a fraction of the distance, for\n`signature_arc`, `spring_settle` and `comet_swoop`. Clamped to 0..1 (default 0.3).",
            "type": "number"
          },
          "glide_duration_ms": {
            "description": "Move duration in milliseconds for `fixed` timing (1430 ms when 0, the default). A\nnonzero value with `native` or the default `steady` timing also fixes the duration.\nClamped to 0..5000.",
            "type": "number"
          },
          "idle_hide_ms": {
            "description": "Hide the cursor after this many idle milliseconds; 0 never hides it. Clamped to\n0..60000 (default 15000).",
            "type": "number"
          },
          "session": {
            "description": "Public label of the session that owns the cursor. Omitted or null motion fields keep\ntheir current value.",
            "type": "string"
          },
          "spring": {
            "description": "Arrival spring damping for `classic`: 1 is critically damped, 0.3 is bouncy. Clamped\nto 0.3..1 (default 0.72).",
            "type": "number"
          },
          "start_handle": {
            "description": "Arc control-point offset from the start, as a fraction of the distance, for\n`signature_arc`, `spring_settle` and `comet_swoop`. Clamped to 0..1 (default 0.3).",
            "type": "number"
          },
          "style": {
            "description": "Trajectory style. `signature_arc` (default) is one arc with a small follow-through;\n`spring_settle` lands with one soft bounce; `magnetic` is pulled into the target;\n`comet_swoop` is a wide arc with a short trail; `adaptive` picks a careful approach for\nsmall targets and a swoop for long moves; `classic` is the previous Dubins glide. When\nthe theme's reduced motion is on, every move is a short straight glide with no effects.",
            "enum": [
              "signature_arc",
              "spring_settle",
              "magnetic",
              "comet_swoop",
              "adaptive",
              "classic"
            ],
            "type": "string"
          },
          "timing": {
            "description": "`steady` (default) keeps the style's timing but makes every move take at least 600 ms,\nwith a gentler ease; `relaxed` and `calm` do the same with a 450 or 750 ms floor.\n`native` uses the style's own timing; `fitts` scales the move time with distance and\ntarget size; `deliberate` is a slower Fitts curve (450..1300 ms); `fixed` uses\nglide_duration_ms (1430 ms when 0).",
            "enum": [
              "native",
              "fitts",
              "fixed",
              "relaxed",
              "steady",
              "calm",
              "deliberate"
            ],
            "type": "string"
          },
          "turn_radius": {
            "description": "Minimum turning radius of the `classic` glide path, in points; smaller turns tighter.\nClamped to 1..1000 (default 80).",
            "type": "number"
          }
        },
        "required": [
          "session"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "motion": {
            "properties": {
              "arc_flow": {
                "type": "number"
              },
              "arc_size": {
                "type": "number"
              },
              "dwell_after_click_ms": {
                "type": "number"
              },
              "effects": {
                "properties": {
                  "glow": {
                    "type": "boolean"
                  },
                  "magnet": {
                    "type": "boolean"
                  },
                  "ripple": {
                    "type": "boolean"
                  },
                  "squish": {
                    "type": "boolean"
                  },
                  "trail": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "trail",
                  "glow",
                  "magnet",
                  "ripple",
                  "squish"
                ],
                "type": [
                  "object",
                  "null"
                ]
              },
              "end_handle": {
                "type": "number"
              },
              "glide_duration_ms": {
                "type": "number"
              },
              "idle_hide_ms": {
                "type": "number"
              },
              "spring": {
                "type": "number"
              },
              "start_handle": {
                "type": "number"
              },
              "style": {
                "enum": [
                  "signature_arc",
                  "spring_settle",
                  "magnetic",
                  "comet_swoop",
                  "adaptive",
                  "classic"
                ],
                "type": "string"
              },
              "timing": {
                "enum": [
                  "native",
                  "fitts",
                  "fixed",
                  "relaxed",
                  "steady",
                  "calm",
                  "deliberate"
                ],
                "type": "string"
              },
              "turn_radius": {
                "type": "number"
              }
            },
            "required": [
              "start_handle",
              "end_handle",
              "arc_size",
              "arc_flow",
              "spring",
              "glide_duration_ms",
              "dwell_after_click_ms",
              "idle_hide_ms",
              "turn_radius"
            ],
            "type": "object"
          },
          "session": {
            "type": "string"
          }
        },
        "required": [
          "session",
          "motion"
        ],
        "type": "object"
      }
    },
    {
      "name": "set_agent_cursor_theme",
      "description": "Select an already-installed cursor theme for a session.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "agent_cursor.set_theme"
      ],
      "annotations": {
        "read_only": false,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "reduced_motion": {
            "default": "auto",
            "description": "Theme animation policy: `on` uses the theme's reduced-motion frames, `off` always\nanimates, `auto` (default) leaves the choice to the host.",
            "enum": [
              "auto",
              "on",
              "off"
            ],
            "type": "string"
          },
          "session": {
            "description": "Public label of the session that owns the cursor.",
            "type": "string"
          },
          "theme_id": {
            "description": "Id of an installed cursor theme (see `cua-driver cursor-theme list`).",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "session",
          "theme_id"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "session": {
            "type": "string"
          },
          "theme": {
            "properties": {
              "fallback": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string"
              },
              "profile": {
                "type": "string"
              },
              "reduced_motion": {
                "enum": [
                  "auto",
                  "on",
                  "off"
                ],
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "version",
              "profile",
              "reduced_motion",
              "fallback"
            ],
            "type": "object"
          }
        },
        "required": [
          "session",
          "theme"
        ],
        "type": "object"
      }
    },
    {
      "name": "set_window_frame",
      "description": "Set one exact top-level window's frame in the desktop-coordinate space reported by list_windows and verify the resulting geometry through an independent readback.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "window.frame.set"
      ],
      "annotations": {
        "read_only": false,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "app"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "height": {
            "description": "New height, in the same units as list_windows bounds.",
            "minimum": 1,
            "type": "number"
          },
          "pid": {
            "description": "Process ID that owns the window.",
            "minimum": 1,
            "type": "integer"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          },
          "width": {
            "description": "New width, in the same units as list_windows bounds.",
            "minimum": 1,
            "type": "number"
          },
          "window_id": {
            "description": "Window ID from list_windows.",
            "minimum": 1,
            "type": "integer"
          },
          "x": {
            "description": "New left edge in the desktop coordinate space reported by list_windows.",
            "type": "number"
          },
          "y": {
            "description": "New top edge in the desktop coordinate space reported by list_windows.",
            "type": "number"
          }
        },
        "required": [
          "pid",
          "window_id",
          "x",
          "y",
          "width",
          "height"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "additionalProperties": false,
            "properties": {
              "delivered_count": {
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mode": {
                "enum": [
                  "background",
                  "foreground",
                  "not_applicable",
                  "unknown"
                ],
                "type": "string"
              }
            },
            "required": [
              "mode"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "effect": {
            "enum": [
              "confirmed",
              "partial",
              "unverifiable",
              "suspected_noop",
              "refused"
            ],
            "type": "string"
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "hint": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "escalation": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "enum": [
                  "route_unavailable",
                  "delivery_failed",
                  "effect_unconfirmed",
                  "suspected_noop",
                  "permission_required"
                ],
                "type": "string"
              },
              "target": {
                "enum": [
                  "pixel",
                  "foreground",
                  "page",
                  "session"
                ],
                "type": "string"
              }
            },
            "required": [
              "target",
              "reason"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "evidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "enum": [
                    "value_readback",
                    "window_change"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "fast_path": {
            "type": "object"
          },
          "hint": {
            "type": [
              "string",
              "null"
            ]
          },
          "next_call": {
            "additionalProperties": false,
            "properties": {
              "arguments": {
                "type": "object"
              },
              "tool": {
                "type": "string"
              }
            },
            "required": [
              "tool",
              "arguments"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "route": {
            "enum": [
              "accessibility",
              "synthetic_events",
              "global_input",
              "system_api",
              "dom",
              "trusted_input"
            ],
            "type": "string"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "effect",
          "route"
        ],
        "type": "object"
      }
    },
    {
      "name": "start_session",
      "description": "Optionally create or return a lifecycle session before acting. For multi-call work, prefer a short public `session` label and repeat it on every call that accepts it; an omitted value uses the authenticated transport lease's implicit session instead. This tool is optional because an ordinary action can create or reuse a named run directly. Use it to set the initial cursor theme before acting or to revive a public name after it has ended; ordinary actions never revive ended names. `capture_scope` is deprecated compatibility input; new callers select window or desktop modality per action. Idempotent.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "session.lifecycle.start",
        "session.capture_scope"
      ],
      "annotations": {
        "read_only": false,
        "destructive": false,
        "idempotent": true,
        "open_world": false
      },
      "schema_mode": "canonical_runtime",
      "cursor_semantics": {
        "action": "system"
      },
      "input_schema": {
        "additionalProperties": true,
        "properties": {
          "capture_scope": {
            "description": "Deprecated compatibility policy. New callers select window or desktop\nmodality on each action instead of storing it on the session.",
            "enum": [
              "auto",
              "window",
              "desktop"
            ],
            "type": "string"
          },
          "cursor_motion": {
            "additionalProperties": false,
            "description": "Optional initial cursor motion (style, timing, effects and tuning). The host applies it\nbefore the cursor is first made visible. A later `set_agent_cursor_motion` call wins;\nthis wins over the saved default (`cursor.motion.*` in the driver config) and the\nbuilt-in `signature_arc`. Reduced motion always wins.",
            "properties": {
              "arc_flow": {
                "description": "Added to the arc asymmetry of `signature_arc`, `spring_settle` and `comet_swoop`:\npositive moves the apex toward the destination. Clamped to -1..1 (default 0).",
                "type": "number"
              },
              "arc_size": {
                "description": "Scales the arc of `signature_arc`, `spring_settle` and `comet_swoop`: 0.25 (default)\nkeeps the style's arc, 0 is a straight line, 0.5 doubles it. Clamped to 0..1.",
                "type": "number"
              },
              "dwell_after_click_ms": {
                "description": "Pause after a click animation, in milliseconds. Clamped to 0..5000 (default 80).",
                "type": "number"
              },
              "effects": {
                "additionalProperties": false,
                "description": "Turn effects on or off. Omit a field to keep it; `\"default\"` restores the style default.",
                "properties": {
                  "glow": {
                    "description": "Soft glow around the cursor that grows with speed.",
                    "enum": [
                      "on",
                      "off",
                      "default"
                    ],
                    "type": "string"
                  },
                  "magnet": {
                    "description": "Target glow when the `magnetic` style locks on.",
                    "enum": [
                      "on",
                      "off",
                      "default"
                    ],
                    "type": "string"
                  },
                  "ripple": {
                    "description": "Ring that expands from the hotspot on click.",
                    "enum": [
                      "on",
                      "off",
                      "default"
                    ],
                    "type": "string"
                  },
                  "squish": {
                    "description": "Brief scale-down of the cursor on click.",
                    "enum": [
                      "on",
                      "off",
                      "default"
                    ],
                    "type": "string"
                  },
                  "trail": {
                    "description": "Short fading trail behind the cursor.",
                    "enum": [
                      "on",
                      "off",
                      "default"
                    ],
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              },
              "end_handle": {
                "description": "Arc control-point offset from the end, as a fraction of the distance, for\n`signature_arc`, `spring_settle` and `comet_swoop`. Clamped to 0..1 (default 0.3).",
                "type": "number"
              },
              "glide_duration_ms": {
                "description": "Move duration in milliseconds for `fixed` timing (1430 ms when 0, the default). A\nnonzero value with `native` or the default `steady` timing also fixes the duration.\nClamped to 0..5000.",
                "type": "number"
              },
              "idle_hide_ms": {
                "description": "Hide the cursor after this many idle milliseconds; 0 never hides it. Clamped to\n0..60000 (default 15000).",
                "type": "number"
              },
              "spring": {
                "description": "Arrival spring damping for `classic`: 1 is critically damped, 0.3 is bouncy. Clamped\nto 0.3..1 (default 0.72).",
                "type": "number"
              },
              "start_handle": {
                "description": "Arc control-point offset from the start, as a fraction of the distance, for\n`signature_arc`, `spring_settle` and `comet_swoop`. Clamped to 0..1 (default 0.3).",
                "type": "number"
              },
              "style": {
                "description": "Trajectory style. `signature_arc` (default) is one arc with a small follow-through;\n`spring_settle` lands with one soft bounce; `magnetic` is pulled into the target;\n`comet_swoop` is a wide arc with a short trail; `adaptive` picks a careful approach for\nsmall targets and a swoop for long moves; `classic` is the previous Dubins glide. When\nthe theme's reduced motion is on, every move is a short straight glide with no effects.",
                "enum": [
                  "signature_arc",
                  "spring_settle",
                  "magnetic",
                  "comet_swoop",
                  "adaptive",
                  "classic"
                ],
                "type": "string"
              },
              "timing": {
                "description": "`steady` (default) keeps the style's timing but makes every move take at least 600 ms,\nwith a gentler ease; `relaxed` and `calm` do the same with a 450 or 750 ms floor.\n`native` uses the style's own timing; `fitts` scales the move time with distance and\ntarget size; `deliberate` is a slower Fitts curve (450..1300 ms); `fixed` uses\nglide_duration_ms (1430 ms when 0).",
                "enum": [
                  "native",
                  "fitts",
                  "fixed",
                  "relaxed",
                  "steady",
                  "calm",
                  "deliberate"
                ],
                "type": "string"
              },
              "turn_radius": {
                "description": "Minimum turning radius of the `classic` glide path, in points; smaller turns tighter.\nClamped to 1..1000 (default 80).",
                "type": "number"
              }
            },
            "required": [],
            "type": "object"
          },
          "cursor_theme": {
            "additionalProperties": true,
            "description": "Optional initial cursor theme. The host applies it before the cursor is\nfirst made visible, avoiding a flash of the default theme.",
            "properties": {
              "reduced_motion": {
                "default": "auto",
                "enum": [
                  "auto",
                  "on",
                  "off"
                ],
                "type": "string"
              },
              "theme_id": {
                "type": "string"
              }
            },
            "required": [
              "theme_id"
            ],
            "type": "object"
          },
          "session": {
            "description": "Optional stable public label for this run (e.g. \"research-run-1\").\nWhen omitted, the authenticated transport lease's implicit session is\ncreated or returned.",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "active": {
            "type": "boolean"
          },
          "capture_scope": {
            "enum": [
              "auto",
              "window",
              "desktop"
            ],
            "type": "string"
          },
          "cursor_motion": {
            "additionalProperties": false,
            "properties": {
              "arc_flow": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "arc_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "dwell_after_click_ms": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "effects": {
                "additionalProperties": false,
                "properties": {
                  "glow": {
                    "enum": [
                      "on",
                      "off",
                      "default"
                    ],
                    "type": "string"
                  },
                  "magnet": {
                    "enum": [
                      "on",
                      "off",
                      "default"
                    ],
                    "type": "string"
                  },
                  "ripple": {
                    "enum": [
                      "on",
                      "off",
                      "default"
                    ],
                    "type": "string"
                  },
                  "squish": {
                    "enum": [
                      "on",
                      "off",
                      "default"
                    ],
                    "type": "string"
                  },
                  "trail": {
                    "enum": [
                      "on",
                      "off",
                      "default"
                    ],
                    "type": "string"
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "end_handle": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "glide_duration_ms": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "idle_hide_ms": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "spring": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "start_handle": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "style": {
                "enum": [
                  "signature_arc",
                  "spring_settle",
                  "magnetic",
                  "comet_swoop",
                  "adaptive",
                  "classic"
                ],
                "type": "string"
              },
              "timing": {
                "enum": [
                  "native",
                  "fitts",
                  "fixed",
                  "relaxed",
                  "steady",
                  "calm",
                  "deliberate"
                ],
                "type": "string"
              },
              "turn_radius": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "type": [
              "object",
              "null"
            ]
          },
          "desktop_capture_authorized": {
            "type": "boolean"
          },
          "desktop_unlocked": {
            "type": "boolean"
          },
          "effective_scope": {
            "enum": [
              "window",
              "desktop"
            ],
            "type": "string"
          },
          "escalation_detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "escalation_reason": {
            "anyOf": [
              {
                "enum": [
                  "ax_tree_pixel_mismatch",
                  "background_delivery_failed",
                  "foreground_ineffective",
                  "no_window_target",
                  "other"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "revived": {
            "type": "boolean"
          },
          "session": {
            "type": "string"
          }
        },
        "required": [
          "session",
          "capture_scope",
          "effective_scope",
          "desktop_capture_authorized",
          "desktop_unlocked",
          "escalation_reason",
          "escalation_detail",
          "active",
          "revived"
        ],
        "type": "object"
      }
    },
    {
      "name": "type_text",
      "description": "Type text into the current foreground desktop application.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "input.keyboard.type",
        "input.keyboard.type.terminal_safe",
        "accessibility.element_tokens"
      ],
      "annotations": {
        "read_only": false,
        "destructive": true,
        "idempotent": false,
        "open_world": true
      },
      "schema_mode": "portable_subset",
      "cursor_semantics": {
        "action": "text"
      },
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "scope": {
            "description": "Deprecated flat desktop target retained for wire compatibility.",
            "enum": [
              "desktop"
            ],
            "type": "string"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session.",
            "type": "string"
          },
          "target": {
            "additionalProperties": true,
            "description": "Preferred per-call target: an exact window (`kind=\"window\"`, `pid`, `window_id`) or the\nprimary desktop (`kind=\"desktop\"`, `display_id=\"primary\"`).",
            "properties": {
              "display_id": {
                "description": "Display id. Required when kind is desktop; use \"primary\".",
                "type": "string"
              },
              "kind": {
                "description": "window requires pid and window_id; desktop requires display_id.",
                "enum": [
                  "window",
                  "desktop"
                ],
                "type": "string"
              },
              "pid": {
                "description": "Process id. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              },
              "window_id": {
                "description": "Window id from list_windows. Required when kind is window.",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "additionalProperties": false,
            "properties": {
              "delivered_count": {
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mode": {
                "enum": [
                  "background",
                  "foreground",
                  "not_applicable",
                  "unknown"
                ],
                "type": "string"
              }
            },
            "required": [
              "mode"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "effect": {
            "enum": [
              "confirmed",
              "partial",
              "unverifiable",
              "suspected_noop",
              "refused"
            ],
            "type": "string"
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "hint": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "escalation": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "enum": [
                  "route_unavailable",
                  "delivery_failed",
                  "effect_unconfirmed",
                  "suspected_noop",
                  "permission_required"
                ],
                "type": "string"
              },
              "target": {
                "enum": [
                  "pixel",
                  "foreground",
                  "page",
                  "session"
                ],
                "type": "string"
              }
            },
            "required": [
              "target",
              "reason"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "evidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "enum": [
                    "value_readback",
                    "window_change"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "fast_path": {
            "type": "object"
          },
          "hint": {
            "type": [
              "string",
              "null"
            ]
          },
          "next_call": {
            "additionalProperties": false,
            "properties": {
              "arguments": {
                "type": "object"
              },
              "tool": {
                "type": "string"
              }
            },
            "required": [
              "tool",
              "arguments"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "route": {
            "enum": [
              "accessibility",
              "synthetic_events",
              "global_input",
              "system_api",
              "dom",
              "trusted_input"
            ],
            "type": "string"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "effect",
          "route"
        ],
        "type": "object"
      }
    },
    {
      "name": "verify_state",
      "description": "Deterministically verify bounded predicates against one exact window. The driver evaluates structured window/accessibility state and may return the final screenshot as uninterpreted visual evidence for a multimodal caller. Predicate results are satisfied, unsatisfied, or unknown; unknown never implies success. Accessibility projections are conservative: absence remains unknown unless the observed search domain is proven exhaustive.",
      "platforms": [
        "macos",
        "windows",
        "linux"
      ],
      "capabilities": [
        "state.verify",
        "state.verify.window",
        "state.verify.element",
        "state.observe.visual_evidence"
      ],
      "annotations": {
        "read_only": true,
        "destructive": false,
        "idempotent": false,
        "open_world": false
      },
      "schema_mode": "portable_subset",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "expect": {
            "description": "One to eight predicates, combined with logical AND.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "element": {
                  "additionalProperties": false,
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "exists": {
                      "description": "Assert that at least one trusted element matches the selector.\n\nElement walks are not yet exhaustive on every platform, so absence\ncannot be proven. `false` is rejected instead of returning an\nindefinitely-unknown predicate.",
                      "type": "boolean"
                    },
                    "selected": {
                      "type": "boolean"
                    },
                    "selector": {
                      "additionalProperties": false,
                      "properties": {
                        "label_contains": {
                          "minLength": 1,
                          "type": "string"
                        },
                        "role": {
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [],
                      "type": "object"
                    },
                    "value_equals": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "selector"
                  ],
                  "type": "object"
                },
                "window": {
                  "additionalProperties": false,
                  "properties": {
                    "bounds": {
                      "additionalProperties": false,
                      "properties": {
                        "height": {
                          "type": "number"
                        },
                        "tolerance_px": {
                          "maximum": 100,
                          "minimum": 0,
                          "type": "number"
                        },
                        "width": {
                          "type": "number"
                        },
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "width",
                        "height"
                      ],
                      "type": "object"
                    },
                    "exists": {
                      "type": "boolean"
                    }
                  },
                  "required": [],
                  "type": "object"
                }
              },
              "required": [],
              "type": "object"
            },
            "maxItems": 8,
            "minItems": 1,
            "type": "array"
          },
          "include_screenshot": {
            "description": "Return the final window screenshot as image content for a multimodal\ncaller. The driver does not interpret that image.",
            "type": "boolean"
          },
          "pid": {
            "description": "Exact process whose window may be observed.",
            "minimum": 1,
            "type": "integer"
          },
          "session": {
            "description": "For multi-call work, prefer a short public session label and repeat it on every call that\naccepts it. Omit it to use the authenticated transport's implicit lifecycle session. This\nfield never selects capture modality or authorization.",
            "type": "string"
          },
          "stable_samples": {
            "default": 2,
            "description": "Consecutive satisfied samples required before returning success.",
            "maximum": 5,
            "minimum": 1,
            "type": "integer"
          },
          "timeout_ms": {
            "default": 5000,
            "description": "Bounded wait. Zero performs one sample.",
            "maximum": 10000,
            "minimum": 0,
            "type": "integer"
          },
          "window_id": {
            "description": "Exact native window identifier.",
            "type": "integer"
          }
        },
        "required": [
          "pid",
          "window_id",
          "expect"
        ],
        "type": "object"
      },
      "success_output_schema": {
        "additionalProperties": true,
        "properties": {
          "elapsed_ms": {
            "minimum": 0,
            "type": "integer"
          },
          "predicates": {
            "items": {
              "properties": {
                "index": {
                  "minimum": 0,
                  "type": "integer"
                },
                "observed_json": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "enum": [
                    "satisfied",
                    "unsatisfied",
                    "unknown"
                  ],
                  "type": "string"
                },
                "unknown_reason": {
                  "anyOf": [
                    {
                      "enum": [
                        "invalid_predicate",
                        "unsupported_predicate",
                        "untrusted_source",
                        "multi_match",
                        "target_missing",
                        "observation_unavailable",
                        "stability_unproven"
                      ],
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "index",
                "status",
                "unknown_reason",
                "observed_json"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "samples": {
            "minimum": 0,
            "type": "integer"
          },
          "stable": {
            "type": "boolean"
          },
          "status": {
            "enum": [
              "satisfied",
              "unsatisfied",
              "unknown"
            ],
            "type": "string"
          }
        },
        "required": [
          "status",
          "stable",
          "elapsed_ms",
          "samples",
          "predicates"
        ],
        "type": "object"
      }
    }
  ]
}