list_sessions
List detached fire sessions by project or all projects to review running, exited, or stopped processes before starting or restarting servers and avoid duplicates.
Instructions
List detached fire sessions for the current project by default, including other directories that resolve to it (started with fire --bg or start_session, by any agent or the user): id, command, note (why it was started), cwd, status (running, exited, stopped = stopped on purpose, lost), pid and exit code. Pass cwd to select another project directory, or all: true to list every project (cwd is then ignored). Check this before starting or restarting servers to avoid duplicates. If a previous session for the same command exited, read its session_output first: it usually shows why it failed (e.g. port in use).
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": "list_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Return sessions from every project. When true, `cwd` is ignored. | |
| cwd | No | Project directory to select. Relative paths resolve from the MCP server's directory. |