Skip to content
English

MCP tools

PhysiClaw exposes six tools over the Model Context Protocol. The agent only ever works in high-level terms — directions, distances, and gestures — never raw coordinates.

Parks the stylus out of frame and returns a top-down photo of the screen.

  • Parameters: none
  • Returns: image (PNG)
screenshot_top() → <image 1920×1080>

Returns the ~45° side view used to check the stylus tip position.

  • Parameters: none
  • Returns: image (PNG)

Moves the stylus across the X/Y plane by a direction and a coarse distance.

ParameterTypeValues
directionstringup, down, left, right, up-left, up-right, down-left, down-right
distancestringsmall, medium, large
move("down-right", "large")

Lowers the stylus to register a touch at the current position, then retracts.

ParameterTypeDefaultNotes
kindstringsinglesingle, double, long
tap() # single
tap(kind="long") # long press

Touches down, drags in a direction, and lifts — for scrolling and flicks.

ParameterTypeValues
directionstringup, down, left, right
distancestringsmall, medium, large
swipe("up", "medium")

Retracts the stylus fully out of the top camera’s frame. Called automatically before every screenshot_top, and available on its own to clear the view.

  • Parameters: none
  • Returns: ok

See Gestures for how tap and swipe map down to GRBL G-code.