crosspad_run
Launch the built PC simulator in the background and return its pid, path and port. Call the build tool first; start a second instance only on its own port.
Instructions
[PC] Launch the built PC simulator (crosspad-pc) in the background. Returns pid, exe_path and port. Refuses to start a duplicate when one already answers on the control port; a second instance needs its own port (the simulator exits with code 3 when it cannot bind, and the reply carries its log tail). Fails if the binary is not built: call crosspad_build first. The simulator manipulates the desktop's audio sinks on start, so do not launch one beside a user's session without need.
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": "crosspad_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Simulator control port (default: CROSSPAD_REMOTE_PORT of this server, else 19840). Needed to address a second instance. | |
| force | No | Spawn even if something already answers on the port. Only useful together with a different `port`. Default: false. | |
| no_midi | No | Open no MIDI port (CROSSPAD_NO_MIDI=1). A scripted run should, or it can play a real CrossPad on USB. | |
| platform | No | Platform — currently only 'pc' is supported here. | pc |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| docs | No | ||
| next | No | ||
| port | No | ||
| error | No | ||
| notice | No | ||
| success | Yes | ||
| exe_path | Yes | ||
| log_path | No | ||
| log_tail | No | ||
| responsive | No | ||
| already_running | No |