tool_run_renpy
Run any Ren'Py CLI subcommand directly to handle translations, compiles, or custom tasks when dedicated tools don't cover it or time out.
Instructions
Run an arbitrary Ren'Py CLI subcommand via the SDK's bundled Python.
Generic escape hatch for Ren'Py CLI subcommands without a dedicated wrapper.
Useful for translate (generate/refresh translation files), rtc,
add, or for running compile/lint with a custom timeout when the
dedicated tools time out.
Examples:
command="translate", args=["english"] -> generate/refresh English translation files (creates block-translation skeletons).
command="compile" -> same as tool_compile_project.
command="lint" -> same as tool_lint_project.
Args: project_path: Absolute path to the Ren'Py project root directory. command: Ren'Py CLI subcommand (e.g. "compile", "lint", "translate"). args: Extra arguments after the command (e.g. ["english"] for translate). timeout: Override default timeout (seconds). Default via RENPY_MCP_TIMEOUT env var or 180.
Returns: dict with {ok, returncode, raw_output, errors}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| command | Yes | ||
| timeout | No | ||
| project_path | Yes |