cdp.input.key
One-shot key press (keyDown + keyUp) via Input.dispatchKeyEvent. For functional keys (e.g. "Enter", "Tab") also pass code / windowsVirtualKeyCode for reliable delivery.
This record as markdown: /tools/pixi-inspector-mcp/cdp.input.key.md
What cdp.input.key does on Pixi Inspector
AI agents call cdp.input.key as a supporting operation in Pixi Inspector workflows.
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | DOM key value, e.g. "Enter", "a", "ArrowLeft". |
code | string | — | Physical key code, e.g. "Enter". |
text | string | — | Text generated by the key (for printable keys). |
tabId | integer | — | Legacy: a bare tab id, resolved inside the browser this session is already working with. Prefer `target`, which is unambiguous across browsers. |
target | string | — | Drive a specific tab: a target id like "b7a3c1#487" from status/use_target/CHOOSE_TARGET. Omit to use this session's chosen tab (or the only available one). Pas |
frameId | integer | — | Escape hatch: drive a specific FRAME of the tab (0 is the top frame). Normally unnecessary — the extension picks the frame running the game (canvas owner first, |
modifiers | integer | — | Modifier bitmask: Alt=1, Ctrl=2, Meta=4, Shift=8. |
windowsVirtualKeyCode | integer | — | Windows virtual key code (e.g. 13 for Enter). |
Parameters from the server's own tool schema.
Why cdp.input.key is rated Low
Without any rule in front of it, every call an agent makes to cdp.input.key happens silently: no trail, no cap, no way to know it misbehaved until something breaks downstream.
Risk signalsAccepts freeform code/query input (code)
Attacks that exploit this kind of access
The rule that runs cdp.input.key safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Pixi Inspector, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For cdp.input.key, this is the rule to start with:
cdp.input.key gets a rate cap, and everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Pixi Inspector, apply this rule, and every cdp.input.key call is checked against it from then on.
Questions about cdp.input.key
One-shot key press (keyDown + keyUp) via Input.dispatchKeyEvent. For functional keys (e.g. "Enter", "Tab") also pass code / windowsVirtualKeyCode for reliable delivery. It is categorised as a Other tool in the Pixi Inspector MCP Server, which means it performs auxiliary operations.
cdp.input.key accepts 8 parameters: key, code, text, tabId, target, frameId, modifiers, windowsVirtualKeyCode. Required: key. The full parameter table on this page comes from the server's own tool schema.
Register the Pixi Inspector MCP server in PolicyLayer and add a rule for cdp.input.key: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Pixi Inspector. Nothing to install.
cdp.input.key is a Other tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the cdp.input.key rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for cdp.input.key. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
cdp.input.key is provided by the Pixi Inspector MCP server (pixi-inspector-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Pixi Inspector, and thousands of servers like it.
This server
Across the catalogue