工具
列出提示词
列出提示词。
参数#
| 名称 | 类型 | 必填 | 有效值与约束 |
|---|---|---|---|
host |
string | 必填 | maxLength 253 项目域名,不含协议或路径。 |
status |
string | 可选 | active, suggested, archived, rejected 按状态精确筛选。 |
topic |
string | 可选 | maxLength 200 按主题精确筛选。 |
limit |
integer | 可选 | min 1 max 100 返回条数上限。 |
cursor |
string | 可选 | maxLength 16 上一页返回的 nextCursor。 |
不接受额外参数。
调用示例#
客户端完成 initialize 握手后,将此 JSON-RPC 请求体发送到 POST https://app.keptai.com/mcp,并携带 Bearer 请求头。
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "list_prompts",
"arguments": {
"host": "example.com"
}
}
}
结果与限制#
默认 50 条,最多 100 条。将 nextCursor 作为 cursor 读取下一页,按数值提示词 ID 排序。
结果包含文本 JSON 和 structuredContent。工具失败时请检查 isError,内容裁剪时请检查 _meta.truncated。所有工具均为只读,并遵循项目权限。身份验证与限流请参考配置指南。