{
 "documentation_revision": 10,
 "api_revision": 58,
 "source": "Commands + ToolSchemas + PlatformApi.openApi",
 "operation": {
  "path": "/v2/call",
  "method": "POST",
  "mcp_tool": "bridgit_screen_wait",
  "idempotency_required": false,
  "documentation": "https://bridgit.cc/learn/operations/v2-screen.wait.json",
  "operation_url": "https://bridgit.cc/learn/operations/v2-screen.wait.json",
  "required_arguments": [
   "session_id",
   "expect"
  ],
  "http": {
   "path": "/v2/call",
   "headers": {"Authorization": "Bearer <your key>"},
   "instructions": "Send JSON {tool, arguments}. HTTP retry identity belongs in the Idempotency-Key header, never arguments.idempotency_key; MCP uses idempotency_key inside its tool arguments.",
   "method": "POST",
   "arguments_schema": {
    "additionalProperties": false,
    "type": "object",
    "properties": {
     "expect": {
      "description": "Postcondition: give package, text or both",
      "additionalProperties": false,
      "type": "object",
      "properties": {
       "package": {
        "description": "App that must be in front",
        "type": "string",
        "maxLength": 256
       },
       "text": {
        "description": "Text that must be visible",
        "type": "string",
        "maxLength": 512
       }
      },
      "required": []
     },
     "session_id": {
      "description": "A control session id from session.request, once the owner approved it",
      "type": "string"
     },
     "timeout_seconds": {
      "maximum": 30,
      "type": "integer",
      "minimum": 1
     }
    },
    "required": [
     "session_id",
     "expect"
    ]
   },
   "request_schema": {
    "additionalProperties": false,
    "type": "object",
    "required": [
     "tool",
     "arguments"
    ],
    "properties": {
     "arguments": {
      "additionalProperties": false,
      "type": "object",
      "properties": {
       "expect": {
        "description": "Postcondition: give package, text or both",
        "additionalProperties": false,
        "type": "object",
        "properties": {
         "package": {
          "description": "App that must be in front",
          "type": "string",
          "maxLength": 256
         },
         "text": {
          "description": "Text that must be visible",
          "type": "string",
          "maxLength": 512
         }
        },
        "required": []
       },
       "session_id": {
        "description": "A control session id from session.request, once the owner approved it",
        "type": "string"
       },
       "timeout_seconds": {
        "maximum": 30,
        "type": "integer",
        "minimum": 1
       }
      },
      "required": [
       "session_id",
       "expect"
      ]
     },
     "tool": {
      "description": "Dotted tool name, e.g. screen.observe (x-bridgit-tools lists the MCP names: drop the bridgit_ prefix and use dots)",
      "type": "string",
      "enum": ["screen.wait"]
     }
    }
   }
  },
  "mcp_input_schema": {
   "additionalProperties": false,
   "type": "object",
   "properties": {
    "expect": {
     "description": "Postcondition: give package, text or both",
     "additionalProperties": false,
     "type": "object",
     "properties": {
      "package": {
       "description": "App that must be in front",
       "type": "string",
       "maxLength": 256
      },
      "text": {
       "description": "Text that must be visible",
       "type": "string",
       "maxLength": 512
      }
     },
     "required": []
    },
    "session_id": {
     "description": "A control session id from session.request, once the owner approved it",
     "type": "string"
    },
    "timeout_seconds": {
     "maximum": 30,
     "type": "integer",
     "minimum": 1
    }
   },
   "required": [
    "session_id",
    "expect"
   ]
  },
  "mcp": {
   "path": "/mcp",
   "arguments_schema": "mcp_input_schema",
   "tool": "bridgit_screen_wait"
  },
  "required_arguments_transport": "mcp",
  "tool": "screen.wait"
 }
}
