table_draft
Create, update, and add rows to table drafts with automatic save and resume. Commit drafts to final tables when complete.
Instructions
📝 草稿工作流:建立、更新、新增資料、恢復、提交。
草稿會自動保存,即使對話中斷也能恢復。 適合長時間的表格建立流程。
Operations:
create: 建立草稿
update: 更新草稿
add_rows: 批次新增資料到草稿
resume: 恢復草稿(Token-efficient)
commit: 草稿轉正式表格
list: 列出草稿
delete: 刪除草稿
Args: operation: 操作類型 draft_id: [大部分操作] 草稿 ID title: [create/update] 標題 intent: [create/update] comparison / citation / summary proposed_columns: [create/update] 欄位定義 extraction_plan: [create/update] 抽取計畫 source_doc_ids: [create/update] 來源文件 ID source_sections: [create/update] 來源章節 ID notes: [create/update] 工作筆記 rows: [add_rows] 資料列
Examples: table_draft("create", title="Drug Comparison", intent="comparison", proposed_columns=[{"name":"Drug","type":"text"}]) table_draft("add_rows", draft_id="draft_xxx", rows=[{"Drug":"A"}]) table_draft("commit", draft_id="draft_xxx")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| draft_id | No | ||
| title | No | ||
| intent | No | ||
| proposed_columns | No | ||
| extraction_plan | No | ||
| source_doc_ids | No | ||
| source_sections | No | ||
| notes | No | ||
| rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |