会话详情
get_session_detailRetrieve messages from a stored session with optional role filtering, message-range limits, and per-message character truncation; default caps keep responses small unless explicit ranges are provided.
Instructions
取某会话的消息(可按角色过滤、限制范围与长度)。默认安全:最多 20 条 × 1000 字 ≈ 20KB。要更多请显式传 start_msg/end_msg 或 max_chars。session_id 支持前缀
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | 只取该角色的消息(user=用户提问,轻量) | |
| end_msg | No | 结束消息序号(含) | |
| project | No | 项目根绝对路径。仅当服务端提示 unresolved_project(多项目/未自动识别)时选择传此参;传一次后本连接记住 | |
| max_chars | No | 单条截断长度(默认 1000;需全文时显式传大值如 5000) | |
| start_msg | No | 起始消息序号(含) | |
| session_id | Yes | ||
| include_exchanges | No | 附带关键往返(用户提问+AI结论对,约 3KB)——理解"为什么"的中间粒度,省去拉全文 |