Dea DardanicaDocumentation
Input and formsRead Markdown

press_key

Press one keyboard key. Keys: Enter, Tab, Escape, Backspace, Delete, arrow keys, PageUp/PageDown, Home, End. Use Enter to submit a focused form field. Hold modifiers for a shortcut: key="Enter" with modifiers=["ctrl"] (or ["cmd"]) sends Ctrl/Cmd+Enter, which posts/sends in Meta composers (Instagram post caption, comments, DMs) through the page's own handler — try this when clicking Share/Done doesn't fire the save.

Example#

Call this MCP tool with the argument object below. Replace illustrative IDs, selectors, local paths, and project URLs with values observed in your session.

json
{
  "key": "Tab"
}

Usage notes#

Confirm which control is focused before using Enter; it may submit a form.

Result#

Sends the allowed key and optional modifiers to the focused control and returns action outcome information.

Results arrive in MCP content blocks. Most structured results are JSON in text blocks; image tools can include image blocks. Handle errors and partial or truncated data. No formal output schema is declared for this tool.

Parameters#

press_key — table 1
ParameterTypeRequiredDescription
key"Enter" / "Tab" / "Escape" / "Backspace" / "Delete" / "ArrowUp" / "ArrowDown" / "ArrowLeft" / "ArrowRight" / "PageUp" / "PageDown" / "Home" / "End"YesSee usage and full schema below.
modifiersarray of stringNoHeld modifier keys: ctrl, cmd, alt, shift
tabstringNoTab name or id in your workspace; does not change the visible tab. minLength: 1

Full input schema#

The schema includes nested shapes and constraints. Additional semantic constraints can apply at runtime; read the description and usage notes.

json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "enum": [
        "Enter",
        "Tab",
        "Escape",
        "Backspace",
        "Delete",
        "ArrowUp",
        "ArrowDown",
        "ArrowLeft",
        "ArrowRight",
        "PageUp",
        "PageDown",
        "Home",
        "End"
      ]
    },
    "modifiers": {
      "description": "Held modifier keys: ctrl, cmd, alt, shift",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tab": {
      "description": "Tab name or id in your workspace; does not change the visible tab.",
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "key"
  ],
  "additionalProperties": false
}

Reference conventions · Agent operating guide · Troubleshooting