run_script
Executes custom Stellarium scripting commands for advanced planetarium control, enabling low-level automation of views, time, and observer settings via code.
Instructions
Execute a Stellarium script command directly. This gives low-level access to Stellarium's scripting engine for advanced operations. See Stellarium scripting documentation for available commands.
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": {
"code": "<code>"
},
"name": "run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Stellarium Script code to execute (e.g. 'core.setObserverLocation(-19.73, -42.63, 300, 0, "My Location", "Earth")') |