start_session
Start a configured fire command as a detached managed session for long-running processes; it survives your shell and can be listed, read, signaled, or stopped.
Instructions
Start a configured fire command detached, in a managed session. ALWAYS use this for long-running processes (dev servers, watchers, workers, tunnels, log tails) instead of backgrounding them in your own shell: the process survives your shell, and you, other agents and the user can list it, read its output, send input/signals, or stop it. command must be a configured fire command (find it with search_commands). One command in one cwd is one session: if it is already running, this returns its id and replaces its note instead of starting a duplicate; if it ended (crashed or stopped), it starts again under the same id with the new note. So to restart a server, stop it with stop_session and call this again. Returns the session id as session_id; then confirm it came up with session_output. Fails for commands the user reserved for humans (agents: false).
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": {
"command": "<command>",
"note": "<note>"
},
"name": "start_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project directory to resolve and run the command from. Defaults to the server's cwd. | |
| note | Yes | Very short context about why you are starting it (e.g. "api for auth e2e tests"). Other agents and the user see it in `list_sessions`. | |
| command | Yes | The fire command path plus its arguments, one token per item, without the leading `fire`, e.g. `["api", "dev", "--port", "3000"]` for `fire api dev --port 3000`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| stderr | Yes | ||
| stdout | Yes | ||
| session_id | No |