get_recent_context
Recover previous AI conversation state after a tool restart or session disconnect. Reads recent context on demand without auto-loading it into new sessions.
Instructions
找回最近的 AI 对话上下文。 / Retrieve the most recent AI conversation context.
用途:上下文丢失时(工具重启、会话断开)调用,找回之前的工作状态。
Purpose: Call after context loss (tool restart, session disconnect) to recover previous work state.
不会自动加载到新会话 — 只在你需要时才读取。
Does NOT auto-load into new sessions — only reads when you ask.
Args:
tool: 工具名(可选)。留空则搜索所有工具的上下文。 / Tool name (optional). Empty searches all tools.
limit: 最多返回几个会话(默认 1 = 最近一次)。 / Max sessions to return (default 1 = most recent).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_recent_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | ||
| limit | No | ||
| project_folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |