scan
Find every occurrence of an exact string in one session, in reading order, without ranking or regex. Use when you know the wording and need where it occurs.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"needle": "<needle>",
"session_id": "<session_id>"
},
"name": "scan"
}
}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 |