工具
读取采样答案
读取采样答案。
参数#
| 名称 | 类型 | 必填 | 有效值与约束 |
|---|---|---|---|
host |
string | 必填 | maxLength 253 项目域名,不含协议或路径。 |
prompt_id |
integer | 必填 | min 1 max 9007199254740991 提示词的数值 ID。 |
days |
integer | 可选 | 7, 30, 90 包含首尾的自然日;默认 30。 |
engine |
string | 可选 | chat_gpt, chat_gpt_web, gemini_web, google_ai_mode, google_ai_overview, perplexity_web, copilot_web, grok_web, perplexity, gemini, claude AI 模型或搜索界面。 |
不接受额外参数。
调用示例#
客户端完成 initialize 握手后,将此 JSON-RPC 请求体发送到 POST https://app.keptai.com/mcp,并携带 Bearer 请求头。
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "get_prompt_runs",
"arguments": {
"host": "example.com",
"prompt_id": 1
}
}
}
结果与限制#
最多返回 20 条采样答案,每条最多 2,000 个字符。
结果包含文本 JSON 和 structuredContent。工具失败时请检查 isError,内容裁剪时请检查 _meta.truncated。所有工具均为只读,并遵循项目权限。身份验证与限流请参考配置指南。