圖表、文檔與可視化
從圖像生成圖表、電子表格、PDF、演示文稿和技術分析
🟢 初學者友好。在你的機器上生成文件,無資金流動。
Agent 可以生成可視化產物:ECharts 交互式圖表、Word/PDF/PowerPoint 文檔,以及分析上傳的圖表圖像來識別技術形態。
你可以做什麼
- 圖表生成:價格圖表、對比圖表、投資組合餅圖
- 從圖像進行技術分析:上傳 K 線截圖進行技術分析
- 文檔生成:Word、PDF、PowerPoint 報告產物
- 電子表格創建:數據表和分析導出
- 數據可視化:任何結構化數據渲染為圖表
示例提示詞
create a chart comparing BTC and ETH performance over 6 months
analyze this chart [upload screenshot] — what patterns do you see?
generate a PDF report of my portfolio performance
create a spreadsheet of the top 20 DeFi protocols by TVL示例輸出。圖表生成
提示詞:create a chart comparing BTC and ETH performance over 6 months, indexed to 100 at start
Agent 回應:
Creating interactive ECharts visualization…
Chart is ready: BTC vs ETH, 6-month indexed.
Data summary (2026-10-17 → 2026-04-17):
- BTC: 100 → 138.5 (+38.5%)
- ETH: 100 → 125.7 (+25.7%)
- BTC outperformed by 12.8 percentage points
- BTC max drawdown: -14.2% (Jan 2026)
- ETH max drawdown: -21.4% (Jan 2026)
- Correlation: 0.82 (strong, as expected)
Want me to add a correlation heatmap or extend the window?
輪次結束時,圖表引用會解析為沙盒中的三個文件:
📎 Artifacts
📊 BTC vs ETH, 6-month indexed
html → file:///…/sandbox/files/artifacts/x-a3b48f/chart-x-a3b48f.html
json → file:///…/sandbox/files/artifacts/x-a3b48f/chart-x-a3b48f.json
png → file:///…/sandbox/files/artifacts/x-a3b48f/chart-x-a3b48f.png- HTML。自包含頁面,從公共 CDN 加載 ECharts。在瀏覽器中打開可交互(提示、圖例切換、縮放)。
- JSON。原始
{ charts: [...] }選項,可導入任何 ECharts 查看器或嵌入你的應用。 - PNG。通過 Playwright 以 2× DPR 渲染。盡力而為;若未安裝 Chromium,HTML 和 JSON 仍可生成,PNG 跳過並記錄警告。
示例輸出。圖像技術分析
提示詞:analyze this chart [上傳 4h BTC 圖表截圖]
Agent 回應:
4-hour BTC chart, pattern analysis:
- Ascending triangle forming since April 10。水平阻力位 $68.2k,上升支撐來自 $63.4k 低點。
- Volume profile。每次反彈阻力時成交量下降(典型的積累設置)。尚未確認。
- RSI-14。58。超買前還有上升空間。
- Projected breakout target: $68.2k + (triangle height $4.8k) = $73.0k measured move.
Caveats: ascending triangles fail ~30% of the time, especially on lower timeframes. Confirm with a 4h candle close above $68.4k on rising volume before treating this as a real breakout.
示例輸出。PDF 報告
提示詞:generate a PDF report of my portfolio performance over Q1
Agent 回應:
Compiled a Q1 performance report. Sections: holdings overview, realized vs unrealized P&L, top contributors, drawdown breakdown, and a risk commentary.
Written to
reports/portfolio-q1-2026.pdf(7 pages, 142 KB).
📎 Artifacts
📄 Portfolio — Q1 2026
pdf → file:///…/sandbox/files/reports/portfolio-q1-2026.pdfPDF 由 pdf_create 工具(pdf-lib,MIT)生成。純文本輸出,按 Helvetica 信紙尺寸換行。Agent 傳遞 { title, sections: [{ heading?, paragraphs }] } 載荷。
示例輸出。Word(DOCX)備忘錄
提示詞:write a DOCX memo summarizing the top 5 DeFi protocol risks
Agent 回應:
Drafted a five-section memo. Each risk has a one-paragraph explanation plus a mitigation note. Kept headings at H2 so you can paste into any template.
Written to
memos/defi-risks.docx(5 sections, 18 KB).
📎 Artifacts
📄 DeFi protocol risks — memo
docx → file:///…/sandbox/files/memos/defi-risks.docxDOCX 由 docx_create(docx npm,MIT)生成。形狀與 PDF 相同。{ title, sections }。兩個工具共享輸入約定,你可以交替請求任一格式。
示例輸出。電子表格(CSV)
提示詞:create a CSV of the top 20 DeFi protocols by TVL
Agent 回應:
Pulled the top 20 from DefiLlama. Columns: rank, protocol, chain, category, TVL (USD), 7d change, 30d change. Sorted by TVL desc.
Written to
data/defi-top20-tvl.csv(21 rows including header).
📎 Artifacts
📊 DeFi top-20 by TVL
csv → file:///…/sandbox/files/data/defi-top20-tvl.csv電子表格以 CSV 形式通過 write_file 工具導出到沙盒。若需更豐富的格式(公式、多工作表、樣式化單元格),請要求 PDF 或 DOCX 報告來嵌入表格。文檔工具處理佈局,數據來自相同的 DefiLlama / 市場數據技能。
XLSX 注意。Agent 不原生生成
.xlsx文件。CSV 以最少依賴權重涵蓋分析導出用例。XLSX 支持作為輸入:上傳電子表格,電子表格解析器將其轉換為 Agent 推理的結構化文本。
涉及的技能和工具
| 技能 | 角色 |
|---|---|
viz-chart | ECharts 交互式圖表產物(每個圖表的 HTML + JSON + PNG) |
workspace.documents | Word / PDF / PowerPoint 建立與編輯(docx_create、docx_replace、pdf_create、pdf_merge、pdf_split、pdf_watermark、pptx_create、pptx_export_images) |
workspace.files | 沙盒文件讀寫/搜索。CSV 導出位於此處 |
research.web | 可視化數據收集 |
場景。SCENARIO_VISUALIZATION · SCENARIO_CHART_TECHNICAL_ANALYSIS