clearly_grep
Search CONTENT by regular expression, across notes and code at once. The pattern is passed to the engine unparsed, so metacharacters (|, (, $, quotes) mean what they mean in a regex rather than being eaten as shell syntax. ARCHIVED notes are excluded; when any matched, the result carries archivedHidden. Search the archive by naming it: path: "~/.archive". Paths are TITLES, not ids: ~ is the workspace (notes are files, projects are folders, e.g. ~/Q1/Pricing.md), /code is its code corpus, /chats is every chat you can see as read-only files (search it with grep path /chats).
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": {
"pattern": "<pattern>"
},
"name": "clearly_grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Scope to a subtree. Omit to search notes and code together. | |
| limit | No | Max matches per page (default 60, max 200). | |
| cursor | No | Continue with nextCursor using the same pattern and path. | |
| pattern | Yes | Regular expression, passed to the engine unparsed. | |
| ignore_case | No | Default true. |