dsh_find_sessions
Find existing root sessions by exact title or substring, exact workspace path, or idle state, returning exact session ID and attach-precondition fields before connecting.
Instructions
Read bounded metadata for existing root sessions from DSH session.list. It can filter titles exactly or by a case-sensitive substring, or narrow candidates by an exact canonical cwd, an unambiguous BridgeTask mapping, or idle state; it returns no history or raw projections. These filters narrow candidates but never authorize automatic selection, history reads, attachment, or prompting. Use the returned exact sessionId and precondition fields with dsh_attach_session; never select a session by title alone.
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": "dsh_find_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional absolute existing workspace path; matches only sessions whose advertised cwd resolves to the same canonical directory. | |
| title | No | ||
| idleOnly | No | Return only sessions whose root turn is not running. | |
| mappedOnly | No | Return only sessions with one unambiguous existing BridgeTask mapping. | |
| maxResults | No | ||
| titleMatch | No | exact | |
| includeBlank | No |