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}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| project_path | Yes |