TOOL API
smartsheet. update_ view
Updates the title, filters, sorting, grouping, field visibility, column widths, and frozen columns of a non-query view in a Tencent Docs smart sheet. Call smartsheet.list_views first to get the view's current configuration, and call smartsheet.list_fields first whenever fields are involved; if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick the target account before invoking this tool.
Call information
- Tool slug
- tencent-docs.smartsheet.update_view
- Provider
- Tencent Docs
- Average response
- 0 ms
- Calls in 7 days
- 0
Input parameters
file_idrequired智能表格文档的唯一标识符
patch_jsonrequired视图局部更新的 JSON 字符串,不超过 64KB,仅支持非 query 视图。格式见 smartsheet_references.md 的 smartsheet.update_view 章节;调用前通过 list_views/list_fields 获取真实 ID 与字段类型。顶层仅允许 title/filter/sort/group/fields/frozen_field_count,至少传一项;未传的键保持不变。filter.conditions、sort.items、group.items 是全量规则列表,传对应空数组表示清除;fields 仅更新列出的字段属性。筛选 operator 与 value 必须匹配文档定义和字段类型;排序、分组使用 field_id 和 direction(asc/desc)。
sheet_idrequired工作表ID
view_idrequired要更新的视图ID;调用前必须先通过 list_views 获取当前配置