Download sliced gcode
get_gcodeRetrieve the G-code text from the last OrcaSlicer slice so you can inspect or verify the generated toolpaths without saving a file.
Instructions
Return the last slice's G-code as text; save_gcode writes it to a file and records the slice.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_gcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||