table_data
Manage table data in PDF assets by adding, retrieving, updating, or deleting rows and cells.
Instructions
📝 表格資料操作:新增/取得/更新/刪除 列 & 儲存格。
Operations:
add_rows: 批次新增資料列
get_row: 取得單列(含引用)
update_row: 整列更新
delete_row: 刪除列
get_cell: 取得單格(含引用)
update_cell: 更新單格
clear_cell: 清除單格
Args: operation: 操作類型 table_id: 表格 ID rows: [add_rows] 資料列列表 row: [update_row] 新的列資料 row_index: [get/update/delete_row, cell ops] 列索引 (0-based) column_name: [cell ops] 欄位名 value: [update_cell] 新的值
Examples: table_data("add_rows", "tbl_xxx", rows=[{"Drug":"A","Dose":1}]) table_data("get_row", "tbl_xxx", row_index=0) table_data("update_cell", "tbl_xxx", row_index=0, column_name="Drug", value="B")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| table_id | Yes | ||
| rows | No | ||
| row | No | ||
| row_index | No | ||
| row_id | No | ||
| offset | No | ||
| limit | No | ||
| search | No | ||
| filters | No | ||
| include_coverage | No | ||
| selected_columns | No | ||
| column_name | No | ||
| value | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |