GhostKey Session Action
ghostkey_session_actionRelay one authorized browser action into the user's already-authenticated browser. Actions: navigate, inspect, click, input, select, read, wait. Password/hidden fields and off-allowlist navigation are denied. API and bridge documentation: https://ghostkey-mcp.onrender.com/session-bridge/README.txt.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"agent_token": "<agent_token>",
"action": "<action>"
},
"name": "ghostkey_session_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Target URL for navigate/read actions; must be on one of the session's allowed origins. | |
| text | No | Text to type for an input action, or the option value/label for a select action (up to 4000 characters); never used for password or hidden fields. | |
| action | Yes | The browser action to relay: navigate, inspect, click, input, select, read, or wait. Password and hidden fields and off-allowlist navigation are denied. | |
| selector | No | CSS selector (1-500 characters) identifying the element for click, input, select, inspect, or read actions. | |
| attribute | No | Attribute name to read for an inspect/read action (up to 100 characters), e.g. href or value. | |
| session_id | Yes | Session identifier (UUID) returned by ghostkey_session_create. | |
| timeout_ms | No | Maximum time in milliseconds to wait for the action to complete (1000-30000). | |
| agent_token | Yes | Agent token issued with the session at creation; authorizes actions inside this session only. |