chainabit search
Published (2.2.0)
Search across sessions, storage, bits, projects, chains, and agents
Synopsis
chainabit search <query> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<query> | Required. | — |
Options
| Option | Description | Default |
|---|---|---|
-t, --type <type> | Resource family to search. Accepted values: sessions, storage, bits, projects, chains, agents. | "sessions" |
--chainy <id> | Scope results to a project | — |
--limit <n> | Page size | "20" |
--cursor <c> | Resume from a keyset cursor returned by a previous search | — |
--all | Follow nextCursor up to the result and page bounds | — |
--max <n> | Hard cap on results collected by --all (1–10000) | "500" |
Options shared by every command are described in Global options and shared behavior.
Development (2.2.0)
Search sessions, storage, tasks, projects, chains, agents, memories, the calendar, or attachments
Synopsis
chainabit search <query> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<query> | Required. | — |
Options
| Option | Description | Default |
|---|---|---|
-t, --type <type> | Resource family to search. Accepted values: sessions, storage, bits, projects, chains, agents, memory, calendar, chainies, attachments. | "sessions" |
--chainy <id> | Scope results to a project | — |
--limit <n> | Page size | "20" |
--cursor <c> | Resume from a keyset cursor returned by a previous search | — |
--session <id> | Conversation ID for attachment search | — |
--all | Follow nextCursor up to the result and page bounds | — |
--max <n> | Hard cap on results collected by --all (1–10000) | "500" |
Options shared by every command are described in Global options and shared behavior.
Behavior
Searches one resource family, defaulting to sessions. It preserves the result envelope and nextCursor in JSON output; --all follows cursors until the collection bound is reached, and can report truncation.
Validation
--type is one of sessions, storage, bits, projects, chains or agents. --max is a safe integer from 1 to 10000 when --all is used. --limit is validated by the server. --cursor is the opaque nextCursor returned by the same search context.
Output
Human output is a resource-family table with next-cursor/truncation hints. --json returns {data, meta}; meta can contain nextCursor and truncated. Errors exit with the codes in Exit codes, and help exits 0.
Examples
chainabit search "reference" --type projects --limit 20