tool_list_labels
List all labels in a Ren'Py project by scanning .rpy files, returning label names, source files, and line numbers. Optionally parse parameters, jumps, calls, and return-value status.
Instructions
List all labels in a Ren'Py project.
Scans all .rpy files under project_path/game/ and returns label names, their source files, and line numbers.
Args: project_path: Absolute path to the Ren'Py project root directory. rich: If True, also parse each label's params, jumps, calls, and return-value status (slower, reads every label block).
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_list_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rich | No | ||
| project_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |