runtime_set
Change a node property in a running Godot game, then read back the value the engine reports; values convert to the property's own type.
Instructions
Change a property on a node in a running game, then read it back. Values are converted to the property's own type: pass [1, 2] or 'Vector2(1, 2)' for a Vector2, '#ff0000' for a Color, a res:// path for a resource. Returns: the value the engine now reports.
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": {
"property": "<property>",
"value": "<value>"
},
"name": "runtime_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | Node path: '/root/Main/Player', 'Main/Player', or an unambiguous tail such as 'Player' | |
| value | Yes | New value | |
| property | Yes | Property name, e.g. position | |
| object_id | No | Object id from runtime_tree or runtime_inspect | |
| session_id | No | Session from runtime_run. Required only when several games run. |