Connect to and execute G-code on a Duet controller via the RepRapFirmware HTTP API

domain: docs.duet3d.com · 4 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. GET /rr_connect, supplying the machine's connection password as the query parameter named "password" (defaults to "reprap" if none is configured), to establish an HTTP session.
  2. GET /rr_gcode?gcode=<command> to execute one or more G/M/T-codes; the response's buff field reports remaining buffer space for streaming.
  3. GET /rr_reply to fetch the last G-code reply text after running a command such as M115.
  4. GET /rr_disconnect to end the session when finished.

Known gotchas

Related routes

Duet (RepRapFirmware) HTTP interface: send gcode and query status
duet3d.com · 5 steps · unrated
Query machine state via Duet's object model and manage files over the RepRapFirmware HTTP API
docs.duet3d.com · 4 steps · unrated
Upload a G-code file to a running OctoPrint instance and start printing via its REST API
octoprint.org · 4 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans