Skip to main content
Glama

Add arrow or line

snipaya_add_arrow

Draw straight or gently curved arrows and lines between two points on a Snipaya canvas to point at details in screenshots. Ends landing on an image anchor to it.

Instructions

Draw a straight arrow (head at "to") or, with head false, a line. curved true draws a gentle curved arrow. Ends landing on an image are anchored to it.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "snipaya_add_arrow"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesA point. Canvas coordinates, or image pixels when relativeTo is set.
fromYesA point. Canvas coordinates, or image pixels when relativeTo is set.
headNo
styleNoOptional style. Omitted fields use the user’s current tool style. Brand colors: coral #EC534E, papaya #FE9440.
tabIdNoTarget tab id. Defaults to the active tab.
curvedNo
relativeToNoImage id from snipaya_get_canvas. When set, all coordinates in this call are pixels of that image as captured (the same pixels you see in snipaya_render of that image).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnly=false and destructive=false, so the safety profile is covered. The description adds a genuinely non-obvious behavior: ends landing on an image are anchored to it. It omits whether the new item becomes selected, what identifier is returned, and undo implications for this 7-param mutation.

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?

Three short sentences, zero filler, with the primary arrow behavior front-loaded before the variants. Slight terseness (fragmented second and third sentences) keeps it from being a model of structure, but nothing is wasted.

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

Completeness3/5

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

There is no output schema, and the description says nothing about what the call returns, whether the drawn item is selected, or how it interacts with snipaya_update_items/snipaya_undo. For a nested-object mutation with 7 parameters, the anchoring note helps but does not fully close the gap.

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 71%, and the two undocumented parameters (head and curved) are exactly the ones the description explains semantically — head true places the arrowhead at "to", head false yields a plain line, curved true bends it. It also notes anchoring semantics tied to relativeTo, adding value beyond the schema's coordinate note.

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 a specific verb and resource ("Draw a straight arrow ... or ... a line") and explains the head/curved variants. It is clearly distinguishable from shape, text, or freehand siblings, though it never names those siblings explicitly.

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?

The text explains variant selection inside the tool (head false draws a line, curved true draws a curve) but gives no guidance on when to choose this over snipaya_add_shape, snipaya_add_freehand, or snipaya_add_measure. An agent must infer the boundary between arrow/line and those siblings.

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