session_search
Search the messages of every session you can see with a regular expression. Sessions come back best match first, each with its matching messages as snippets; open a match in context with session.history.list from its seq. The pattern is a JavaScript RegExp with the u flag, which differs from ripgrep: \w, \d and \b are ASCII-only, and there is no leading (?i). fixedStrings matches the pattern as plain text. Case follows smart case: case-insensitive unless the pattern spells an uppercase letter; caseSensitive overrides it. An index finds candidates by words, from the start of a word only, so the pattern must require a word that starts a word in the text: "ploy" does not find "deploy", and a pattern with no such word (\d{3}) is refused unless sessionId names one session to read whole. A word longer than 31 UTF-8 bytes is found by its first 31 bytes only, and near that cut a letter shorter lowercased than as written (the Kelvin sign, İ) can miss. Case-insensitive search finds a word by its lowercase spelling, so letters JavaScript treats as one (σ/ς, s/ſ, µ/μ) are different to the index. Long messages are indexed in chunks of about 8 KiB, and a match that spans two chunks can be missed. Only text a reader sees by default is searched: messages and the questions an agent asks, not tool calls, tool output, reasoning or attachments. meta.complete is false when a page may be missing matches, usually because a common word filled the read budget (reason read_budget); narrow the search as meta.hint says.
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": {
"workspaceSlug": "<workspaceSlug>"
},
"name": "session_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| workspaceSlug | Yes |