derivation_show
Display the current derivation state with LaTeX formula, step count, and session info. Choose between LaTeX, SymPy, or summary format and optionally show step history.
Instructions
顯示當前推導狀態和公式(類似 SymPy-MCP 的 print_latex_expression)
═══════════════════════════════════════════════════════════════════════
⚠️ 重要:Agent 必須在每次推導操作後調用此工具向用戶展示結果!
═══════════════════════════════════════════════════════════════════════
這個工具確保用戶能看到:
1. 當前公式的 LaTeX 渲染結果
2. 推導進度(第幾步)
3. 會話名稱和狀態
Args:
format: 輸出格式
- "all": 完整資訊(預設)
- "latex": 只返回 LaTeX
- "sympy": 只返回 SymPy 字串
- "summary": 簡短摘要
show_steps: 是否顯示所有步驟歷史
Returns:
當前公式和推導狀態
Example:
derivation_show()
→ {
"latex": "C_{0} e^{- k t}",
"sympy": "C_0*exp(-k*t)",
"session_name": "drug_elimination",
"step_count": 3,
"status": "active",
"display_text": "📊 **drug_elimination** (Step 3)\n\n$$C_{0} e^{- k t}$$"
}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | all | |
| session_id | No | ||
| show_steps | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||