gdformat
Format GDScript files in a Godot project to enforce consistent code style, with an option to check formatting without modifying files.
Instructions
运行 gdformat 格式化 GDScript 文件
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": {
"project": "<project>",
"file": "<file>"
},
"name": "gdformat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | 要格式化的 GDScript 文件路径(必须是绝对路径) | |
| check | No | 只检查格式,不实际修改 | |
| project | Yes | Godot 项目根目录路径(必须是绝对路径) |