Search wiki
search_wikiFind wiki lines containing a case-insensitive text query or regular expression and return page, line, and matched text to locate pages by content.
Instructions
Find the lines of a wiki that contain a text, to locate pages by content.
Returns [{page, line, text}], one entry per matching line. Read the full page with read_page (offset=line jumps to the match); to browse by path, use list_pages. An invalid regular expression is refused with an error.
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": {
"wiki": "<wiki>",
"query": "<query>"
},
"name": "search_wiki"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wiki | Yes | Wiki id, as returned by list_wikis. | |
| query | Yes | Text to find, case-insensitive. | |
| regex | No | Treat query as a regular expression (default: literal). | |
| scope | No | Zone: 'wiki' (distilled pages, default), 'raw' (verbatim sources) or 'all' (both). Index, log and schema files sit at the wiki root, outside every zone: open them with read_page. | wiki |
| max_results | No | Stop after this many matching lines. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |