run_macro
Executes a named QIDI printer macro with optional parameters, applying confirmation and G-code screening to run routines such as bed levelling or nozzle clearing.
Instructions
Run one of the printer's defined macros by name, with optional parameters. This is how you reach QIDI's own routines (e.g. M4029 bed levelling, CLEAR_NOZZLE, PRINT_START). Use list_gcode_commands to see what exists. Two-step confirmation, because a macro can do anything. The assembled command is screened exactly like run_gcode (deny-list, temperature and velocity/accel envelope); deny-listed macros are always refused here.
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": {
"macro": "<macro>"
},
"name": "run_macro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macro | Yes | ||
| params | No | ||
| confirm | No | ||
| confirm_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||