tool_read_script
Reads the complete Ren'Py script block for a given label, including dialogue, menus, and nested logic, so agents can inspect story structure and references.
Instructions
Read the script content of a specific label.
Returns the complete Ren'Py script block under the given label, including all dialogue, menus, and nested logic.
Args: project_path: Absolute path to the Ren'Py project root directory. label_name: The label name to read (e.g. "start", "chapter_01").
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>",
"label_name": "<label_name>"
},
"name": "tool_read_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label_name | Yes | ||
| project_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |