portal_search
BM25 full-text search over items (no body returned, token-light).
Ranked by weighted BM25 (SQLite FTS5) over the title, the original-language summary, the English summary, sentence-free English search signals and — for items whose license permits redistribution — the body. Japanese text is morphologically segmented at index time, so Japanese queries match words that a substring search would miss. Results carry score (0-1), rank and a snippet of the matching passage. Use portal_get to read a matched item's body.
Args: q: keyword(s). space-separated terms are ANDed. e.g. "openai gpt" category: category prefix match. e.g. "news" or "security" status: filter by ingested/processed/enriched/published (all if omitted) source: feed identifier. e.g. "ghost-chinng-lab" lang: original language. e.g. "ja" limit: number of results (default 20, max 100) offset: paging start position mode: "bm25" (default, relevance-ranked) or "index" (substring match, newest first)
Returns: {total, count, limit, offset, query, mode, total_is_capped, items[]} — same license-gated item shape as portal_list (summary/summary_en and snippet omitted for link-only, omission reason and search signals retained), never the body. In bm25 mode each item adds score / rank / snippet, and total is an estimate capped for cost. If the BM25 index is not usable the call transparently falls back to mode "index" and reports why in degraded_reason.
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": {
"q": "<q>"
},
"name": "portal_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | ||
| lang | No | ||
| mode | No | bm25 | |
| limit | No | ||
| offset | No | ||
| source | No | ||
| status | No | ||
| category | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||