Skip to main content
Glama

Robot Actions — Remote Device Control

Session screenshot

session_screenshot
Read-onlyIdempotent

Capture what a WebDriver session is currently showing — the browser viewport for a browser session, the device screen for a mobile session — as a base64 PNG. Addressed by sessionId, which is what separates it from its neighbours: web_screenshot takes a desktop grid page by pageId, webpage_screenshot takes the browser on a real device by udid, and device_screenshot / ios_screenshot take the device screen itself by udid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesSession ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, openWorldHint=true, so the safety profile is covered. The description adds real behavioral value beyond that: it says the output is a base64 PNG and that the captured surface varies by session type (viewport vs device screen), which the annotations do not convey. It stops short of noting size limits or latency, so a 4 rather than 5.

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?

Purpose is front-loaded in the opening clause, and the second sentence is a single dense routing list where every clause maps one sibling to its addressing key. No filler or repetition of the title.

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

Completeness4/5

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

With one fully documented parameter and no output schema, the description carries the return-format burden and does so (base64 PNG, surface depends on session type). Nothing needed to invoke it correctly is missing, though error behavior for an invalid or expired sessionId is unaddressed.

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, and the schema itself only says 'Session ID'. The description adds genuine meaning: sessionId identifies a WebDriver session and is the addressing key that distinguishes this tool from pageId- and udid-addressed siblings. No format or validity details are given, keeping it below 5.

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 description states a specific verb and resource — capture what a WebDriver session is currently showing, viewport for browser sessions, device screen for mobile — and names the return format (base64 PNG). It also explicitly enumerates the sibling tools it is not (web_screenshot, webpage_screenshot, device_screenshot, ios_screenshot), so an agent can pick it without opening any schema.

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?

It gives a positive selection rule (addressed by sessionId, which is the differentiator) and maps each alternative sibling to its own addressing key: pageId for web_screenshot, udid for webpage_screenshot/device_screenshot/ios_screenshot. This is effectively explicit when-to-use and when-to-use-something-else routing.

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