launch_instance
Launch a game instance and wait for it to respond. The bridge assigns a free port, manages the process lifecycle, and returns the port for all other tools.
Instructions
Start a game instance and wait until it answers. The bridge picks a free port itself, so you never choose one and never collide with someone else's instance, and it owns the process: it is reaped when this server shuts down. Uses the project's launch declaration (gamebridge.json). Returns the port to pass to every other tool. Prefer this over starting the game yourself.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "launch_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Force a specific port instead of letting the bridge choose. Rarely needed. | |
| timeoutMs | No | How long to wait for the game to answer. A cold build plus a JVM can take minutes. |