Skip to main content
Glama

record

Start or stop screen capture for the active app session or supported device, and build contact-sheet PNGs from exported captures.

Instructions

Start or stop a screen recording for the active app session or, where supported, the selected device, or build a contact-sheet PNG from a recording already exported. Long Android recordings can return multiple video artifacts; HarmonyOS supports whole-screen recording on physical devices. Times out after 90s.

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": {
      "action": "<action>"
    },
    "name": "record"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNo
pathNo
udidNoApple device or simulator UDID.
debugNoEnable debug diagnostics.
actionYes
deviceNoDevice name; ids go in udid or serial.
serialNoAndroid, HarmonyOS, or Vega VVD serial.
targetNoAlias for deviceTarget.
qualityNo
sessionNoSession name.
noRecordNoDo not record this action.
platformNoDevice platform.
hideTouchesNo
includeCostNoAdd agent cost (cost.wallClockMs, …) to the result, returned as JSON text.
deviceTargetNoDevice form factor.
responseLevelNoResult detail: digest (smallest) or full (largest), as JSON; default is compact text.
recordingScopeNo
mcpOutputFormatNoResult text: compact optimized (default) or the full result as JSON (larger).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changedv0.21.37
    • removedInput schema / properties / androidDeviceAllowlist
      Removed value: -{
      -  "description": "Android serial allowlist used for device resolution.",
      -  "type": "string"
      -}
    • changedInput schema / properties / device / description
      Previous value: -"Device name selector (a UDID belongs in udid, a serial in serial)."New value: +"Device name; ids go in udid or serial."
    • changedInput schema / properties / deviceTarget / description
      Previous value: -"Device target form. Maps to the CLI --target flag."New value: +"Device form factor."
    • changedInput schema / properties / includeCost / description
      Previous value: -"Include per-command agent-cost (cost.wallClockMs, …) in structuredContent. Defaults to off; the default response shape is unchanged."New value: +"Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text."
    • removedInput schema / properties / leaseId
      Removed value: -{
      -  "description": "Existing lease identifier.",
      -  "type": "string"
      -}
    • changedInput schema / properties / mcpOutputFormat / description
      Previous value: -"MCP text content format. Defaults to optimized agent-friendly text; use json for JSON text. Structured content is always returned separately."New value: +"Result text: compact optimized (default) or the full result as JSON (larger)."
    • changedInput schema / properties / platform / description
      Previous value: -"Platform selector used to resolve a device."New value: +"Device platform."
    • changedInput schema / properties / responseLevel / description
      Previous value: -"Response verbosity: token-cheap digest / default (today) / full. Defaults to default; the default response shape is unchanged."New value: +"Result detail: digest (smallest) or full (largest), as JSON; default is compact text."
    • removedInput schema / properties / runId
      Removed value: -{
      -  "description": "Lease run identifier.",
      -  "type": "string"
      -}
    • changedInput schema / properties / serial / description
      Previous value: -"Android, HarmonyOS, or Vega VVD serial selector."New value: +"Android, HarmonyOS, or Vega VVD serial."
    • changedInput schema / properties / session / description
      Previous value: -"Agent-device session name."New value: +"Session name."
    • changedInput schema / properties / target / description
      Previous value: -"Alias for deviceTarget on commands without a UI target field. Interaction commands reserve target for the UI element."New value: +"Alias for deviceTarget."
    • removedInput schema / properties / tenant
      Removed value: -{
      -  "description": "Remote tenant identifier.",
      -  "type": "string"
      -}
    • changedInput schema / properties / udid / description
      Previous value: -"Apple device or simulator UDID; the selector that pins one device when several share a name."New value: +"Apple device or simulator UDID."
    • changedOutput schema / (root)
      Previous value: -{
      -  "oneOf": [
      -    {
      -      "properties": {
      -        "activeSessionApp": {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        "outPath": {
      -          "type": "string"
      -        },
      -        "recordOnlySession": {
      -          "type": "boolean"
      -        },
      -        "recording": {
      -          "const": "started",
      -          "type": "string"
      -        },
      -        "recordingBackend": {
      -          "type": "string"
      -        },
      -        "recordingScope": {
      -          "type": "string"
      -        },
      -        "sessionStateDir": {
      -          "type": "string"
      -        },
      -        "showTouches": {
      -          "type": "boolean"
      -        }
      -      },
      -      "required": [
      -        "recording",
      -        "outPath",
      -        "sessionStateDir",
      -        "showTouches"
      -      ],
      -      "type": "object"
      -    },
      -    {
      -      "properties": {
      -        "activeSessionApp": {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        "artifacts": {
      -          "items": {
      -            "properties": {
      -              "artifactType": {
      -                "type": "string"
      -              },
      -              "field": {
      -                "type": "string"
      -              },
      -              "fileName": {
      -                "type": "string"
      -              },
      -              "localPath": {
      -                "type": "string"
      -              },
      -              "path": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "field"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "capturedDurationMs": {
      -          "type": "number"
      -        },
      -        "chunks": {
      -          "items": {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "durationMs": {
      -          "type": "number"
      -        },
      -        "nativePathDisposition": {
      -          "description": "What became of the artifact path the recorder writes to: retirable while it still owes a removal, retired once that removal was verified. ADR 0024 reserves pending.",
      -          "enum": [
      -            "pending",
      -            "retirable",
      -            "retired"
      -          ],
      -          "type": "string"
      -        },
      -        "outPath": {
      -          "type": "string"
      -        },
      -        "overlayWarning": {
      -          "type": "string"
      -        },
      -        "recordOnlySession": {
      -          "type": "boolean"
      -        },
      -        "recorder": {
      -          "description": "What the recorder was observed doing when the recording was stopped: confirmed, or lost when the session holding it died. ADR 0024 reserves unconfirmed for the step that gains the probe.",
      -          "enum": [
      -            "confirmed",
      -            "unconfirmed",
      -            "lost"
      -          ],
      -          "type": "string"
      -        },
      -        "recording": {
      -          "const": "stopped",
      -          "type": "string"
      -        },
      -        "recordingBackend": {
      -          "type": "string"
      -        },
      -        "recordingScope": {
      -          "type": "string"
      -        },
      -        "showTouches": {
      -          "type": "boolean"
      -        },
      -        "telemetryPath": {
      -          "type": "string"
      -        },
      -        "warning": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "recording",
      -        "outPath",
      -        "artifacts",
      -        "durationMs",
      -        "showTouches"
      -      ],
      -      "type": "object"
      -    }
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changedv0.21.2
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "activeSessionApp": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "outPath": {
      -        "type": "string"
      -      },
      -      "recordOnlySession": {
      -        "type": "boolean"
      -      },
      -      "recording": {
      -        "const": "started",
      -        "type": "string"
      -      },
      -      "recordingBackend": {
      -        "type": "string"
      -      },
      -      "recordingScope": {
      -        "type": "string"
      -      },
      -      "sessionStateDir": {
      -        "type": "string"
      -      },
      -      "showTouches": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "recording",
      -      "outPath",
      -      "sessionStateDir",
      -      "showTouches"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "activeSessionApp": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "artifacts": {
      -        "items": {
      -          "properties": {
      -            "artifactType": {
      -              "type": "string"
      -            },
      -            "field": {
      -              "type": "string"
      -            },
      -            "fileName": {
      -              "type": "string"
      -            },
      -            "localPath": {
      -              "type": "string"
      -            },
      -            "path": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "field"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "chunks": {
      -        "items": {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "durationMs": {
      -        "type": "number"
      -      },
      -      "outPath": {
      -        "type": "string"
      -      },
      -      "overlayWarning": {
      -        "type": "string"
      -      },
      -      "recordOnlySession": {
      -        "type": "boolean"
      -      },
      -      "recording": {
      -        "const": "stopped",
      -        "type": "string"
      -      },
      -      "recordingBackend": {
      -        "type": "string"
      -      },
      -      "recordingScope": {
      -        "type": "string"
      -      },
      -      "showTouches": {
      -        "type": "boolean"
      -      },
      -      "telemetryPath": {
      -        "type": "string"
      -      },
      -      "warning": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "recording",
      -      "outPath",
      -      "artifacts",
      -      "durationMs",
      -      "showTouches"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "activeSessionApp": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "outPath": {
      +        "type": "string"
      +      },
      +      "recordOnlySession": {
      +        "type": "boolean"
      +      },
      +      "recording": {
      +        "const": "started",
      +        "type": "string"
      +      },
      +      "recordingBackend": {
      +        "type": "string"
      +      },
      +      "recordingScope": {
      +        "type": "string"
      +      },
      +      "sessionStateDir": {
      +        "type": "string"
      +      },
      +      "showTouches": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "recording",
      +      "outPath",
      +      "sessionStateDir",
      +      "showTouches"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "activeSessionApp": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "artifacts": {
      +        "items": {
      +          "properties": {
      +            "artifactType": {
      +              "type": "string"
      +            },
      +            "field": {
      +              "type": "string"
      +            },
      +            "fileName": {
      +              "type": "string"
      +            },
      +            "localPath": {
      +              "type": "string"
      +            },
      +            "path": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "field"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "capturedDurationMs": {
      +        "type": "number"
      +      },
      +      "chunks": {
      +        "items": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "durationMs": {
      +        "type": "number"
      +      },
      +      "nativePathDisposition": {
      +        "description": "What became of the artifact path the recorder writes to: retirable while it still owes a removal, retired once that removal was verified. ADR 0024 reserves pending.",
      +        "enum": [
      +          "pending",
      +          "retirable",
      +          "retired"
      +        ],
      +        "type": "string"
      +      },
      +      "outPath": {
      +        "type": "string"
      +      },
      +      "overlayWarning": {
      +        "type": "string"
      +      },
      +      "recordOnlySession": {
      +        "type": "boolean"
      +      },
      +      "recorder": {
      +        "description": "What the recorder was observed doing when the recording was stopped: confirmed, or lost when the session holding it died. ADR 0024 reserves unconfirmed for the step that gains the probe.",
      +        "enum": [
      +          "confirmed",
      +          "unconfirmed",
      +          "lost"
      +        ],
      +        "type": "string"
      +      },
      +      "recording": {
      +        "const": "stopped",
      +        "type": "string"
      +      },
      +      "recordingBackend": {
      +        "type": "string"
      +      },
      +      "recordingScope": {
      +        "type": "string"
      +      },
      +      "showTouches": {
      +        "type": "boolean"
      +      },
      +      "telemetryPath": {
      +        "type": "string"
      +      },
      +      "warning": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "recording",
      +      "outPath",
      +      "artifacts",
      +      "durationMs",
      +      "showTouches"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed3 schema fields changedv0.21.0
    • changedInput schema / properties / device / description
      Previous value: -"Device name selector."New value: +"Device name selector (a UDID belongs in udid, a serial in serial)."
    • changedInput schema / properties / serial / description
      Previous value: -"Android device or Vega VVD serial selector."New value: +"Android, HarmonyOS, or Vega VVD serial selector."
    • changedInput schema / properties / udid / description
      Previous value: -"iOS device UDID selector."New value: +"Apple device or simulator UDID; the selector that pins one device when several share a name."
  4. Changed8 schema fields changedv0.20.10
    • removedInput schema / properties / cwd
      Removed value: -{
      -  "description": "Working directory for command execution.",
      -  "type": "string"
      -}
    • removedInput schema / properties / daemonAuthToken
      Removed value: -{
      -  "description": "Remote daemon auth token.",
      -  "type": "string"
      -}
    • removedInput schema / properties / daemonBaseUrl
      Removed value: -{
      -  "description": "Remote daemon base URL.",
      -  "type": "string"
      -}
    • removedInput schema / properties / iosSimulatorDeviceSet
      Removed value: -{
      -  "description": "iOS simulator device-set path used for device resolution.",
      -  "type": "string"
      -}
    • removedInput schema / properties / iosXctestDerivedDataPath
      Removed value: -{
      -  "description": "Derived data path for external iOS XCTest runner execution.",
      -  "type": "string"
      -}
    • removedInput schema / properties / iosXctestEnvDir
      Removed value: -{
      -  "description": "Writable directory for iOS XCTest runner env overlays.",
      -  "type": "string"
      -}
    • removedInput schema / properties / iosXctestrunFile
      Removed value: -{
      -  "description": "Externally built iOS XCTest runner .xctestrun artifact path.",
      -  "type": "string"
      -}
    • removedInput schema / properties / stateDir
      Removed value: -{
      -  "description": "Agent-device state directory.",
      -  "type": "string"
      -}
  5. Changed1 schema field changedv0.20.9
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "apple",
      -  "android",
      -  "vega",
      -  "linux",
      -  "web",
      -  "ios",
      -  "macos"
      -]New value: +[
      +  "apple",
      +  "android",
      +  "harmonyos",
      +  "vega",
      +  "linux",
      +  "web",
      +  "ios",
      +  "macos"
      +]
  6. Changed1 schema field changedv0.20.6
    • removedInput schema / properties / maxSize
      Removed value: -{
      -  "type": "integer"
      -}
  7. Changed5 schema fields changedv0.20.2
    • addedInput schema / properties / noRecord
      Added value: +{
      +  "description": "Do not record this action.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "apple",
      -  "android",
      -  "linux",
      -  "web",
      -  "ios",
      -  "macos"
      -]New value: +[
      +  "apple",
      +  "android",
      +  "vega",
      +  "linux",
      +  "web",
      +  "ios",
      +  "macos"
      +]
    • addedInput schema / properties / recordingScope
      Added value: +{
      +  "enum": [
      +    "app",
      +    "device",
      +    "system"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / serial / description
      Previous value: -"Android serial selector."New value: +"Android device or Vega VVD serial selector."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "oneOf": [
      +    {
      +      "properties": {
      +        "activeSessionApp": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "outPath": {
      +          "type": "string"
      +        },
      +        "recordOnlySession": {
      +          "type": "boolean"
      +        },
      +        "recording": {
      +          "const": "started",
      +          "type": "string"
      +        },
      +        "recordingBackend": {
      +          "type": "string"
      +        },
      +        "recordingScope": {
      +          "type": "string"
      +        },
      +        "sessionStateDir": {
      +          "type": "string"
      +        },
      +        "showTouches": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "recording",
      +        "outPath",
      +        "sessionStateDir",
      +        "showTouches"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "activeSessionApp": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "artifacts": {
      +          "items": {
      +            "properties": {
      +              "artifactType": {
      +                "type": "string"
      +              },
      +              "field": {
      +                "type": "string"
      +              },
      +              "fileName": {
      +                "type": "string"
      +              },
      +              "localPath": {
      +                "type": "string"
      +              },
      +              "path": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "field"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "chunks": {
      +          "items": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "durationMs": {
      +          "type": "number"
      +        },
      +        "outPath": {
      +          "type": "string"
      +        },
      +        "overlayWarning": {
      +          "type": "string"
      +        },
      +        "recordOnlySession": {
      +          "type": "boolean"
      +        },
      +        "recording": {
      +          "const": "stopped",
      +          "type": "string"
      +        },
      +        "recordingBackend": {
      +          "type": "string"
      +        },
      +        "recordingScope": {
      +          "type": "string"
      +        },
      +        "showTouches": {
      +          "type": "boolean"
      +        },
      +        "telemetryPath": {
      +          "type": "string"
      +        },
      +        "warning": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "recording",
      +        "outPath",
      +        "artifacts",
      +        "durationMs",
      +        "showTouches"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  8. Changed3 schema fields changedv0.17.11
    • addedInput schema / properties / includeCost
      Added value: +{
      +  "description": "Include per-command agent-cost (cost.wallClockMs, …) in structuredContent. Defaults to off; the default response shape is unchanged.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "ios",
      -  "macos",
      -  "android",
      -  "linux",
      -  "web",
      -  "apple"
      -]New value: +[
      +  "apple",
      +  "android",
      +  "linux",
      +  "web",
      +  "ios",
      +  "macos"
      +]
    • addedInput schema / properties / responseLevel
      Added value: +{
      +  "description": "Response verbosity: token-cheap digest / default (today) / full. Defaults to default; the default response shape is unchanged.",
      +  "enum": [
      +    "digest",
      +    "default",
      +    "full"
      +  ],
      +  "type": "string"
      +}
  9. Changed4 schema fields changedv0.17.7
    • addedInput schema / properties / maxSize
      Added value: +{
      +  "type": "integer"
      +}
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "ios",
      -  "macos",
      -  "android",
      -  "linux",
      -  "apple"
      -]New value: +[
      +  "ios",
      +  "macos",
      +  "android",
      +  "linux",
      +  "web",
      +  "apple"
      +]
    • addedInput schema / properties / quality / enum
      Added value: +[
      +  "medium",
      +  "high"
      +]
    • changedInput schema / properties / quality / type
      Previous value: -"integer"New value: +"string"
  10. Changed5 schema fields changedv0.17.6
    • addedInput schema / properties / iosXctestDerivedDataPath
      Added value: +{
      +  "description": "Derived data path for external iOS XCTest runner execution.",
      +  "type": "string"
      +}
    • addedInput schema / properties / iosXctestEnvDir
      Added value: +{
      +  "description": "Writable directory for iOS XCTest runner env overlays.",
      +  "type": "string"
      +}
    • addedInput schema / properties / iosXctestrunFile
      Added value: +{
      +  "description": "Externally built iOS XCTest runner .xctestrun artifact path.",
      +  "type": "string"
      +}
    • addedInput schema / properties / mcpOutputFormat
      Added value: +{
      +  "description": "MCP text content format. Defaults to optimized agent-friendly text; use json for JSON text. Structured content is always returned separately.",
      +  "enum": [
      +    "optimized",
      +    "json"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "ios",
      -  "android",
      -  "macos",
      -  "linux",
      -  "apple"
      -]New value: +[
      +  "ios",
      +  "macos",
      +  "android",
      +  "linux",
      +  "apple"
      +]
  11. First observedv0.16.9

TDQS

C2.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It does disclose genuinely useful behavior: a 90s timeout, that long Android recordings can return multiple video artifacts, and that HarmonyOS whole-screen recording requires a physical device. It omits what 'stop' returns (file path? artifact handle?), where recordings are stored, and any permission requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The primary start/stop purpose is front-loaded and the platform caveats are compact. The trailing contact-sheet clause adds length and confusion without being actionable, since no enum value supports it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 18-parameter tool with no annotations and no output schema, the description is thin: it never says what a stop returns or how multiple artifacts are surfaced, and it leaves the large response-formatting parameter surface entirely unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Eighteen parameters at 67% schema coverage, and the description explains none of them. It only hints at the session/device/serial family via 'active app session or ... selected device'; the eight output-shaping parameters (responseLevel, mcpOutputFormat, includeCost, debug) and recordingScope, fps, quality, hideTouches are undocumented in prose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause gives a specific verb and resource ('Start or stop a screen recording') with platform scope ('active app session or ... selected device'), which an agent can act on. But the sentence then bolts on a third capability ('build a contact-sheet PNG from a recording already exported') that the schema's action enum ('start'|'stop') cannot express, so the stated purpose overreaches what the tool can actually be asked to do.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to choose this over siblings such as 'session' or 'artifacts', and no prerequisites stated beyond the vague 'where supported'. The agent is left to infer that 'start' must precede 'stop' and that an exported recording is a prerequisite for the contact-sheet mode.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.