搜尋 Wiki.js 頁面
wikijs_search_pagesSearch Wiki.js pages by keyword to get titles, descriptions, and paths, optionally limited by path prefix; use the returned paths to read full page content.
Instructions
以關鍵字搜尋 Wiki.js 頁面(使用站台設定的搜尋引擎),回傳標題、描述與路徑(不含頁面 ID,因站台搜尋索引的 ID 可能與實際頁面不一致)。可用 pathPrefix 限定路徑範圍;取得路徑後再以 wikijs_get_page 讀取全文。
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": {
"query": "<query>"
},
"name": "wikijs_search_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 回傳筆數上限,預設 20 | |
| query | Yes | 搜尋關鍵字 | |
| locale | No | 頁面語系,例如 zh-tw;省略時使用 WIKIJS_LOCALE(預設 zh-tw) | |
| offset | No | 略過前幾筆結果,用於分頁,預設 0 | |
| pathPrefix | No | 只保留此路徑底下的頁面,例如 RD部/Projects(以路徑段落比對,不分大小寫) |