find_threads
Search workspace threads by task attributes or relation references, using equality filters and keyset pagination, to locate matching work items you can read.
Instructions
Find a workspace's threads by their task attributes: equality filters over kind, engine, threat_model, size, linear_issue, repo, tier, lane and review_family, given as attr (attr.linear_issue=ENG-123 style pairs), plus engine, tier and lane as bare shorthand, and ref (ref.twin_of= style: relation wire name to thread id) for threads holding that reference to that thread; a thread outside your workspace matches nothing (an unused relation is an empty result too). Combined with AND. A thread with no stored attributes matches the defaults it reads with (kind=change, threat_model=false); the other fields match only a stored value. Scoped to your own workspace (workspace_id omitted, the same; a foreign one is refused) and to threads you may read. Keyset-paginated like list_threads (limit, cursor, order; a cursor that is not a thread you can read in your workspace is refused); returned threads carry their attributes. The twin of GET /workspaces/{id}/threads.
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": "find_threads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Reference filters by relation wire name (twin_of, duplicates, supersedes, ...): keeps the threads holding that reference to the given thread id. | |
| attr | No | Attribute equality filters by field name: kind, engine, threat_model, size, linear_issue, repo, tier, lane, review_family. Values are the fields' wire forms. | |
| lane | No | Only threads in this service lane (batch or flex); shorthand for attr.lane. | |
| tier | No | Only threads carrying this review tier (A or B); shorthand for attr.tier. | |
| limit | No | Max threads to return (clamped 1..=500). | |
| order | No | Direction of the keyset walk (default oldest). | |
| cursor | No | Exclusive keyset cursor: the prior page's last thread id. | |
| engine | No | Only threads routed to this engine (unattended, session or human); shorthand for attr.engine. | |
| workspace_id | No | your own workspace (whoami's workspace_id); omitted, the same |