Skip to main content
Glama

safari_drag

Drag an element onto another element or to X/Y coordinates in Safari using CSS selectors or exact positions to automate drag-and-drop interactions.

Instructions

Drag an element to another element or position. Use CSS selectors or x/y coordinates.

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

Input Schema

NameRequiredDescriptionDefault
whyNoOptional short purpose of this step, shown to the user in the cursor's status pill (e.g. 'to save the settings'). The page can read it: never put passwords, codes, card numbers or other private data in it.
sourceXNoSource X coordinate
sourceYNoSource Y coordinate
targetXNoTarget X coordinate
targetYNoTarget Y coordinate
sourceSelectorNoCSS selector of element to drag
targetSelectorNoCSS selector of drop target

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does not state whether the drag fires HTML5 drag events or synthesizes raw mouse moves, whether the element must be scrolled into view, whether timing/waits are applied, or what the result looks like. For a state-mutating interaction with seven optional parameters, this is a substantial gap.

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?

Two short sentences, purpose front-loaded with the invocation modes following. No filler, though the second sentence is terse enough that a few more words on element requirements would not have hurt readability.

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?

With no annotations, no output schema, and zero required parameters across seven fields, the description should explain at least the minimum viable invocation and failure behavior. It leaves the agent to guess how to compose a valid call and what a failed drop looks like.

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 100%, so the parameters are individually documented and a baseline of 3 applies. The description adds the meaningful hint that selectors and coordinates are alternative addressing modes, but it does not clarify that a source-plus-target pair is needed or what happens if modes are mixed or omitted entirely given that nothing is required.

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 (drag) and resource (an element) plus both accepted addressing modes, so the agent knows exactly what the tool performs. It does not reference any sibling, but drag-and-drop is distinctive enough among the listed tools that confusion is unlikely.

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?

The second sentence implicitly guides mode selection between CSS selectors and x/y coordinates, which is useful. However, there is no guidance on when to prefer dragging over other interactions, no prerequisites (element visibility, drag-and-drop library support), and no exclusions.

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