switch_project
Point runtime tools like screenshots, input, UI, and logs at another Godot project's live session when multiple sessions exist. Select an exited game's session to read its logs or stop it.
Instructions
Point the runtime tools (screenshots, input, UI, run_script, debug output, profiling, stop_project) at another project's session. Needed only when several sessions exist; run_project makes its own session current. A session whose game exited can be selected to read its logs or stop it: live is then false and warnings leads. Returns: projectPath, previousProjectPath, live, sessionMode, bridgePort, bridgeResponsive, message. Errors if the project has no session, listing the live ones.
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": {
"projectPath": "<projectPath>"
},
"name": "switch_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory whose session becomes the current one. check_project lists the live sessions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | Yes | ||
| message | Yes | ||
| exitCode | No | ||
| warnings | No | ||
| bridgePort | Yes | ||
| projectPath | Yes | ||
| sessionMode | Yes | ||
| bridgeResponsive | Yes | ||
| previousProjectPath | Yes |