Skip to main content
Glama

get_latest_snapshot

Retrieves the most recent AnySnap app-window snapshot. Use it when a chat image is an app screenshot to return full window text, off-screen content, app name, title, and URL.

Instructions

Get the most recent app snapshot the user captured with the AnySnap hotkey. Call this whenever the user sends a screenshot of an app window: the chat only shows the image, this returns the window's full text (including text scrolled off-screen), app name, window title and URL. Use include_screenshot=false when the image is already in the chat.

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": "get_latest_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_charsNoMax characters of window text to return (default 40000).
include_screenshotNoAttach the window screenshot (default true). Set false for text-only models.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it explains that the chat only shows the image, that this call returns full window text including text scrolled off-screen, and that app name, window title and URL are included. It does not explicitly frame the operation as a safe read or note any failure mode when no snapshot exists, which keeps it below a 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?

Three sentences, each doing distinct work: what is returned, when to call it, and how to set the optional flag. The core trigger is front-loaded and there is no redundant restatement of the name or schema.

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?

No output schema exists, and the description compensates by enumerating the returned fields (window text, app name, window title, URL) and the off-screen text behavior. It is complete enough to call correctly, with only the return structure and the no-snapshot-exists case left 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 schema already documents both parameters and the baseline would be 3. The description earns above baseline by giving an additional selection rule for include_screenshot ('false when the image is already in the chat') beyond the schema's 'text-only models' note, though max_chars is left to the schema entirely.

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 ('Get the most recent app snapshot') plus the capture origin ('AnySnap hotkey'), which scopes it to the latest item rather than any snapshot in the library. It does not name get_snapshot or list_snapshots as the alternatives, so the differentiation is implied by 'most recent' rather than stated.

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

Usage Guidelines4/5

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

Gives a concrete trigger condition: 'Call this whenever the user sends a screenshot of an app window', plus a conditional for include_screenshot=false when the image is already in chat. It lacks any when-not guidance relative to get_snapshot or list_snapshots, so an agent facing a non-screenshot request has no routing rule.

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