export_gcode
Slice the current plate and export G-code to a specified file path, bypassing the file dialog for headless automation. Completion is detected when the G-code file appears on disk.
Instructions
Slice the current plate and export G-code to an absolute path.
Sends a single orca-cmd:export:<path> command over the single-instance
DBus channel. Inside OrcaSlicer this slices the current plate and writes the
G-code straight to (Plater::export_gcode_to), bypassing the file
dialog entirely. Completion is detected by the G-code file appearing on
disk. Returns a summary parsed from the generated G-code header.
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": {
"path": "<path>"
},
"name": "export_gcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |