Skip to main content
Glama

Take a screenshot of a screen

capture_screenshot

Take a new screenshot of one screen and return it as an image; nothing on the screen changes.

When to use:

  • Checking what a screen shows, e.g. after set_screen_content or refresh_screens.

When NOT to use:

  • Learning why: use get_screen_status. Polling in a loop.

What to know:

  • Waits up to about 5 seconds; a slow or offline screen returns its last frame with fresh:false. A frame over 2 MB returns latestFrameUrl only. Needs screen.edit (it sends a device command).

Parameters:

  • screenId: one scr_… id from list_items kind screens; for several screens, call once each. An id outside this connection's reach reads as not found and nothing is sent.

  • kind and id: a stored picture of a layout, design, app, file, web link or old screenshot instead; no device is asked, so it needs only that item's view permission.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "capture_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoWith kind: the item's id, from list_items of that kind (screenshots: list_items kind screenshots).
kindNoWhat to picture. Left out or screens: a new screenshot of screenId. Any other kind is a stored picture of content and nothing is sent to a device: a layout or design comes back as SVG text, an app as its latest snapshot, a file as its poster, a web link as its latest render, and a stored screenshot by its id.
screenIdNoThe screen to take a picture of. A screen id comes from list_items kind screens.

Output Schema

NameRequiredDescriptionDefault
svgNolayouts and creatives: the picture as SVG markup.
noteNoWhat happened, in plain language, including why a picture is not fresh.
freshNotrue when the picture was taken after this call; false when the device did not answer in time and the picture is the last one stored.
pictureNokind other than screens: true when a picture came back (as an image, or as svg).
mimeTypeNokind other than screens: the picture's type, e.g. image/png or image/svg+xml.
latestFrameAtNoISO 8601 time the picture was taken; null when the screen never sent one.
latestFrameUrlNoLink to the picture file. The same picture is also returned as an image.
latestScreenshotIdNoId of the stored picture.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "With kind: the item's id, from list_items of that kind (screenshots: list_items kind screenshots).",
      +  "type": "string"
      +}
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "What to picture. Left out or screens: a new screenshot of screenId. Any other kind is a stored picture of content and nothing is sent to a device: a layout or design comes back as SVG text, an app as its latest snapshot, a file as its poster, a web link as its latest render, and a stored screenshot by its id.",
      +  "enum": [
      +    "screens",
      +    "layouts",
      +    "creatives",
      +    "apps",
      +    "media",
      +    "web_links",
      +    "screenshots"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "screenId"
      -]
    • addedOutput schema / properties / mimeType
      Added value: +{
      +  "description": "kind other than screens: the picture's type, e.g. image/png or image/svg+xml.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / picture
      Added value: +{
      +  "description": "kind other than screens: true when a picture came back (as an image, or as svg).",
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / svg
      Added value: +{
      +  "description": "layouts and creatives: the picture as SVG markup.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed7 schema fields changed
    • changedInput schema / properties / screenId / description
      Previous value: -"Screen id."New value: +"The screen to take a picture of. A screen id comes from list_items kind screens."
    • addedOutput schema / description
      Added value: +"The newest picture of the screen and how old it is."
    • changedOutput schema / properties / fresh / description
      Previous value: -"true when the frame was taken after this call."New value: +"true when the picture was taken after this call; false when the device did not answer in time and the picture is the last one stored."
    • changedOutput schema / properties / latestFrameAt / description
      Previous value: -"ISO 8601 time the returned frame was taken."New value: +"ISO 8601 time the picture was taken; null when the screen never sent one."
    • changedOutput schema / properties / latestFrameUrl / description
      Previous value: -"Link to the frame."New value: +"Link to the picture file. The same picture is also returned as an image."
    • changedOutput schema / properties / latestScreenshotId / description
      Previous value: -"Id of the stored frame."New value: +"Id of the stored picture."
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "What happened, in plain language, including why a picture is not fresh.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / screenId / description
      Previous value: -"One screen id, from list_items kind screens."New value: +"Screen id."
  4. Added

TDQS

A4.7/5.0
Behavior4/5

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

The description goes well beyond the annotations: it explains why readOnlyHint=false while destructiveHint=false (it sends a device command, needs screen.edit, but nothing on the screen changes), discloses the ~5 second wait, the fresh:false fallback for slow/offline screens, and the 2 MB frame limit that returns latestFrameUrl only. It also states that an out-of-reach screenId reads as not found and sends nothing, and that kind/id requires no device at all. Minor gap: no guidance on retry or rate behavior for repeated captures.

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

Conciseness5/5

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

The lead sentence states the action and the no-side-effect property up front, then labeled sections (when/when-not/what to know/parameters) make it scannable. Every line carries distinct information; nothing restates the name or title.

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

Completeness5/5

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

For a 3-parameter tool with an output schema, the description covers the remaining burden fully: permissions, latency, size-limit fallback, degraded-screen behavior, and the alternate stored-picture mode with its own permission model. An agent could call this correctly in either mode without further inference.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond it: screenId must come from list_items kind screens and multi-screen capture requires one call each, invalid ids silently resolve to not found, and kind/id is a non-device path gated by the item's view permission rather than screen.edit. This clarifies error and permission semantics the schema does not encode.

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

Purpose5/5

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

The opening sentence gives a specific verb and resource ('Take a new screenshot of one screen') plus the return form (an image) and a key side-effect statement. The parameters section further distinguishes the two modes: a live device capture via screenId versus a stored picture via kind/id, which no sibling tool covers.

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

Usage Guidelines5/5

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

Explicit 'When to use' with a concrete example (after set_screen_content or refresh_screens) and an explicit 'When NOT to use' naming the alternative for diagnosis (get_screen_status) plus a polling anti-pattern. This is exactly the routing guidance an agent needs against the large sibling set.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources