Skip to main content
Glama

pt_ui_capture

Captures a PNG of a Packet Tracer device window—or the main window when no device is specified—even if covered, and returns the saved file path.

Instructions

Saves a PNG of a device's window as it looks in PT (or of the main window if device is empty). Works even when the window is covered. Returns the file's PATH, not the image.

Open the tab/app you want first with pt_ui_open (or show=True on the tool you ran). For the logical canvas without the interface there is pt_screenshot.

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

Input Schema

NameRequiredDescriptionDefault
deviceNo
filenameNo
output_dirNoscreenshots

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavior burden and does well: it discloses that capture works even when the window is covered and that the return value is a file PATH rather than image data. It does not say what happens on filename collisions, whether an existing file is overwritten, or how it fails for an unknown device name.

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?

Front-loaded with the core action, then behavior caveat, return type, and prerequisites in descending priority. Four short sentences, none of which is filler or restates the tool name.

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?

An output schema exists, so return values need not be spelled out, yet the path-vs-image note is still a useful correction of a likely assumption. The remaining gap is the undocumented filename/output_dir behavior, which matters for a file-writing tool.

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 description coverage is 0% for all three parameters, and the description only explains the semantics of 'device' (empty means main window). 'filename' and 'output_dir' get no meaning beyond their names and defaults, so the coverage gap is only partly compensated.

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?

States a specific verb and resource: saves a PNG of a device's window as rendered in PT, with an explicit fallback (main window when device is empty). It also disambiguates from the closest sibling by naming pt_screenshot for the logical canvas.

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?

Gives an explicit prerequisite ('Open the tab/app you want first with pt_ui_open (or show=True on the tool you ran)') and routes the agent to the alternative for the non-UI case. When-to-use and when-to-use-something-else are both covered.

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