scan
Find every occurrence of a literal string in one session, in reading order, to locate all exact matches when you know the wording, not ranked topic results.
Instructions
Find every occurrence of a literal string in one session — exhaustive, unranked, in reading order. For when you already know the wording and want where it occurs, rather than what a topic is about. Scope is one session and one spelling: a zero result clears only that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last turn to scan, as the session's own seq. Omit to scan to the end of the session. | |
| from | No | First turn to scan, as the session's own seq. Omit to start at the session's beginning; pass the seq a capped scan told you to continue from. | |
| memory | No | Memory to scan, as it stands — `<org>/<repo>`, an `hf://…` URI, a local path, or `local`. Omitted, the server's memory, where a session this host has not finished pushing is read from the local memory. | |
| needle | Yes | The literal string to find. Not regex — a pattern that silently matched nothing would read as a clean result. | |
| context | No | Characters of surrounding text shown on each side of a match | |
| session_id | Yes | Session to scan — the id from a `sessions` row or a recall hit's `→ get` line | |
| ignore_case | No | Match regardless of case |