全文搜索会话内容
piweb_search_sessionsSearch all session message bodies for a literal, case-insensitive keyword and return matching session IDs, with results possibly truncated under a 3-second budget.
Instructions
在所有会话的消息正文里做字面量(不区分大小写)搜索,返回命中片段所在的会话 id。服务端有 3 秒时间预算,结果可能被截断(truncated);命中很多时缩小关键词或用 piweb_get_session 细看。
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": "piweb_search_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | 只看某个项目目录(前缀匹配) | |
| limit | No | 返回命中条数上限,默认 20 | |
| query | Yes | 搜索关键词(字面量,最长 200 字) |