tool_compile_project
Compile a Ren'Py project to validate .rpy syntax and return structured errors with file paths and line numbers. Clear .rpyc cache when force is enabled to pick up file changes.
Instructions
Compile a Ren'Py project (validate syntax).
Runs Ren'Py's compiler on all .rpy files. Returns structured errors with file paths and line numbers if compilation fails.
Args: project_path: Absolute path to the Ren'Py project root directory. force: If True, clear .rpyc cache before compiling (to pick up file changes).
Returns: dict with {ok: bool, errors: [{file, line, message}], raw_output: str}.
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_path": "<project_path>"
},
"name": "tool_compile_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| project_path | Yes |