Add write_xlsx tool so agents export Excel via structured data instead of fragile openpyxl scripts.

Generation returns attachment_id only; channel delivery still requires save_deliverable_attachment.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-07-22 23:54:16 +08:00
parent c31625d05b
commit dbba8cafbf
6 changed files with 448 additions and 21 deletions

View file

@ -561,7 +561,7 @@ Recipe 中 `goal` 示例:
```mermaid
flowchart LR
A[write_file / run_command\n生成 report.xlsx] --> B[save_deliverable_attachment\npath=...]
A[write_xlsx\n返回 attachment_id] --> B[save_deliverable_attachment\nattachment_id=...]
B --> C[Agent 文字回复摘要]
C --> D[出站携带附件]
D --> E[WhatsApp Sidecar 发送文件]