Skip to main content
Glama
abranson
by abranson

Screenshot And Touch

sailfish_device_touch_workflow

Inject tap or swipe gestures on a Sailfish OS device after capturing a Lipstick screenshot. Optionally list touch inputs to test touch interactions.

Instructions

Capture a Lipstick screenshot, optionally list touch inputs, then inject a tap or swipe.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
end_xNo
end_yNo
stepsNo
actionYes
deviceNoConfigured device alias or ssh target. When the user says the device is attached over USB, use 'usb' for the default device or 'usb:<name>' when the user supplies a device name. The USB connection trusts that name for device metadata and does not resolve it through DNS.
hold_msNo
start_xNo
start_yNo
timeoutNoCommand timeout in seconds.
local_pathNoOptional local path for the before screenshot.
privilegedNo
duration_msNo
input_deviceNoOptional explicit device path, for example /dev/input/event5.
discover_inputNo
after_local_pathNo
screenshot_afterNo
after_remote_pathNo
before_local_pathNo
screenshot_beforeNo
before_remote_pathNo
include_evdev_traceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is partly covered. The description adds little beyond restating the steps: it does not disclose that input injection is a side effect on a live device, the implications of the privileged default, ordering of before/after screenshots, or any auth/rate constraints.

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?

A single front-loaded sentence with no filler waste. It is efficient, though it trades away almost all useful detail for that brevity given the tool's complexity.

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

Completeness2/5

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

For a 23-parameter, multi-step device tool with 17% schema coverage and no output schema, a one-sentence description is far too thin. The workflow ordering, coordinate semantics, and screenshot/trace behavior that an agent needs to call it correctly are not conveyed.

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

Parameters2/5

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

With 23 parameters and only 17% schema description coverage, the description carries nearly the full burden and fails to help: it never explains x/y/start_x/end_x coordinates, steps, hold_ms, duration_ms, timeout, or the screenshot/trace toggles. Only 'tap or swipe' loosely maps to the action enum, leaving most parameters undocumented in both schema and description.

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?

The description names specific capabilities (capture a Lipstick screenshot, list touch inputs, inject a tap or swipe) with clear verbs and resources. However, it never distinguishes this bundled 'workflow' from its atomic siblings sailfish_device_touch and sailfish_device_lipstick_screenshot, so an agent cannot tell when the combined tool is preferred.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. The name 'workflow' hints that it bundles steps, but the description does not explain preferring this over the individual screenshot and touch tools, nor any prerequisites or device/connection conditions.

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