chainabit memory search
Published (2.2.0)
This command is not included in Published (2.2.0). It is available in Development (2.2.0).
Development (2.2.0)
Find text in up to 500 memories in the current workspace
Synopsis
chainabit memory search <text> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<text> | Required. | — |
Options
| Option | Description | Default |
|---|---|---|
--scope <scope> | Memory scope. Accepted values: session, conversation, user, agent, account, global, chainy. | — |
--project-id <id> | Project ID | — |
--limit <n> | Results per page | — |
--cursor <cursor> | Continue from a previous page | — |
Options shared by every command are described in Global options and shared behavior.
Behavior
Finds memories whose text contains <text>. The match is a case-insensitive literal text match, not a semantic search, and <text> must not be empty. The filter is applied before paging, so total counts matches only. The command changes nothing. --scope limits the result to one memory scope (session, conversation, user, agent, account, global or chainy) and --project-id limits it to the project with that ID. At most 500 memories are considered. --limit sets the page size (a whole number from 1 to 500, 20 by default) and --cursor continues from the cursor printed with the previous page; an invalid value is refused.
Output
Prints a table with each matching memory's ID and text. When more matches remain, it prints the --cursor value for the next page. With --json, the output contains data (the memories, each with id and content) and meta with offset, limit, total, hasNextPage, nextCursor and sourceLimitReached. sourceLimitReached is true when the 500-memory ceiling was reached, so more memories may exist than were considered.
Authentication and permissions
You must be signed in. The command only reads; if the server refuses, it prints the error and exits with a non-zero code. If the connected API does not support the operation yet, the command stops before sending anything.
Examples
chainabit memory search "reading list"
chainabit memory search notebook --scope account