move_printer_axis
Move a printer axis to a relative position
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": {
"printer_id": "<printer_id>",
"direction": "<direction>",
"distance": "<distance>"
},
"name": "move_printer_axis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| speed | No | Movement speed in mm/min. If not specified, uses printer default. | |
| macros | No | Predefined macro names, sent as one G-code block in this order. Either gcode, macro, macros, or snippet_id is required. | |
| distance | Yes | Distance to move in millimeters | |
| direction | Yes | Axis and direction to move. Use axis letter, optionally with minus for negative. Examples: "X" (+X), "X-" (-X), "Y", "Y-", "Z", "Z-" | |
| printer_id | Yes | The printer IDs (comma-separated for multiple) | |
| snippet_id | No | ID of a gcode snippet to send. Either gcode, macro, macros, or snippet_id is required. |