Skip to main content
Glama
whodb-cli

whodb-cli

Official
by clidey

whodb_platform_app_screenshot

Read-onlyIdempotent

Capture a rendered app page at desktop, mobile, or tablet size after optional actions or JavaScript, returning a WebP image, visible text, diagnostics, and an optional interaction trace.

Instructions

Capture a rendered app page at desktop, mobile, or tablet size after optional actions or JavaScript. Returns a WebP image, visible text, diagnostics, and an optional interaction trace on compatible runtimes. Hosted writes are blocked. Accepts workspace {host, org, project} for per-call targeting without changing defaults.

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": {
      "app": "<app>"
    },
    "name": "whodb_platform_app_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesApp ID or exact name in the selected project
envNopublished (default) or dev
tabNoOptional visible tab or button label to open before capture
pageNoOptional page returned by whodb_platform_app_views
traceNoRequest an interaction trace from a compatible hosted app runtime
widthNoViewport width, default 1440
heightNoViewport height, default 900
mobileNoEmulate a touch-enabled mobile browser; default viewport 390x844 unless width or height is set
scriptNoOptional JavaScript expression or IIFE evaluated inside the app frame after actions
tabletNoEmulate a touch-enabled tablet browser; default viewport 820x1180 unless width or height is set
actionsNoOrdered actions inside the app frame: click, fill, press, wait_for, or wait
workspaceNoOptional target for this call only. Omit to use the session default set by whodb_platform_session_use, then process/saved defaults. Discover targets with whodb_platform_hosts, whodb_platform_orgs and whodb_platform_projects.
orientationNoOptional viewport orientation: portrait or landscape; rotates the device preset

Output Schema

NameRequiredDescriptionDefault
appNo
envNo
tabNo
pageNo
errorNo
scopeNo
traceNo
widthNo
app_idNo
heightNo
mobileNo
tabletNo
recoveryNo
mime_typeNo
retryableNo
workspaceNoOptional target for this call only. Omit to use the session default set by whodb_platform_session_use, then process/saved defaults. Discover targets with whodb_platform_hosts, whodb_platform_orgs and whodb_platform_projects.
error_codeNo
request_idNo
diagnosticsYes
orientationNo
visible_textNo
checks_passedYes
suggested_toolsNo
script_result_jsonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.139.0
    • changedInput schema / properties / actions / items / required
      Previous value: -[
      -  "kind",
      -  "value"
      -]New value: +[
      +  "kind"
      +]
  2. Changed4 schema fields changedv0.136.0
    • addedOutput schema / properties / error_code
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / recovery
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "LikelyCause": {
      +      "type": "string"
      +    },
      +    "NextSteps": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "LikelyCause",
      +    "NextSteps"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / retryable
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / suggested_tools
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Addedv0.135.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true, so the definition need not restate safety. It does add genuinely new behavior: the return payload (WebP, visible text, diagnostics, optional trace), the caveat that trace requires a compatible runtime, and that hosted writes are blocked even when actions/script run.

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

Conciseness4/5

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

Four tight sentences, front-loaded with the purpose and immediately followed by outputs, safety, and targeting. Small redundancy: the description largely duplicates the annotation `title` verbatim.

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 13-parameter tool with nested objects, an output schema, and full annotations, the description covers purpose, outputs, write-safety, runtime compatibility for traces, and default-resolution order for workspace targeting. Nothing critical to a correct call is missing.

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

Parameters3/5

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

Schema coverage is 100%, so all 13 parameters including nested `actions` and `workspace` are documented in the schema itself. The description adds one meaningful clarification — workspace targets a single call without changing session defaults — but does not explain the device presets or action semantics beyond what the schema already says.

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

Purpose4/5

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

States a specific verb and resource — 'Capture a rendered app page' — with explicit scope (desktop, mobile, tablet; optional actions or JavaScript). The word 'rendered' implicitly separates it from source-listing siblings like whodb_platform_app_views or whodb_platform_app_page_files, but no sibling is named explicitly.

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

Usage Guidelines3/5

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

Implied usage is clear: capture when you need a rendered visual rather than source. It references whodb_platform_app_views for obtaining a valid `page` value and whodb_platform_session_use for defaults, but there are no explicit when-not conditions or stated alternatives for other observation tools.

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

Deploy Server

Other Tools