tool_get_image_size
Retrieve image dimensions and format to calculate correct sprite positioning transforms in Ren'Py projects. Accepts absolute or project-relative paths.
Instructions
Get dimensions and format of an image file.
Useful for calculating correct sprite positioning transforms. Supports absolute paths or paths relative to project_path.
Args: project_path: Absolute path to the Ren'Py project root directory. image_path: Path to image file (absolute, or relative to project_path).
Returns: dict with {ok, width, height, format, file_size}.
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>",
"image_path": "<image_path>"
},
"name": "tool_get_image_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | ||
| project_path | Yes |