Post-traiter un G-code
postprocess_gcodeModify existing G-code files to insert layer-specific actions like pauses, filament changes, temperature adjustments, or custom commands without overwriting the original file.
Instructions
Modifie un fichier G-code existant pour insérer des actions : pause à une couche, changement de filament (M600), changement de température, ou commande custom. Crée un nouveau fichier sans écraser l'original.
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": {
"gcode_path": "<gcode_path>",
"actions": "<actions>"
},
"name": "postprocess_gcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gcode_path | Yes | Chemin du fichier G-code à modifier | |
| actions | Yes | Liste d'actions à insérer | |
| output_path | No | Chemin de sortie (sinon _modified.gcode) |