Export presets: list, add, change, remove
godot_presetCreate, list, edit, or remove Godot export presets in export_presets.cfg without opening the editor; changes are dry-run unless write is true, then undoable.
Instructions
Edits export_presets.cfg without the editor. op list: the presets. op add: a preset for Windows Desktop, Linux, macOS, Web, Android or iOS with name, export_path, runnable, export_filter and include/exclude filters, plus options as key/value; Godot fills in the options you do not give when it loads the file. op set: change keys or options of a preset (unset removes them). op remove: a preset; the ones after it are renumbered, as Godot needs. Dry run by default; write: true writes, and godot_undo takes it back. To build with a preset use godot_export.
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": {
"op": "<op>"
},
"name": "godot_preset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | what to do | |
| set | No | set: preset keys to change | |
| name | No | add: the preset's name (default: the platform) | |
| path | No | project folder, or a file or folder inside it (relative to the server's folder; default: the current project) | |
| unset | No | set: keys to remove (options/<key> for an option) | |
| write | No | write the change (default false: show it) | |
| preset | No | set or remove: the preset's name or number | |
| options | No | add or set: platform options, e.g. {"binary_format/embed_pck": true} | |
| platform | No | add: the platform | |
| runnable | No | add: the preset one-click deploy uses | |
| export_path | No | add: where the build goes, e.g. build/game.exe | |
| export_filter | No | add: all_resources, scenes, resources, exclude or customized | |
| exclude_filter | No | add: files to leave out | |
| include_filter | No | add: extra files to include, e.g. *.json |