wecom_smartsheet_setup_fields
Initialize a smartsheet's column schema by renaming the default field and adding specified columns. Must be called before adding records to a new sheet to ensure correct field structure.
Instructions
Initialize a smartsheet's column schema. Renames the default field and adds remaining fields. Must be called before adding records to a new sheet.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sheet_id": "<sheet_id>",
"field_names": "<field_names>"
},
"name": "wecom_smartsheet_setup_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Smartsheet URL (or use docid) | |
| docid | No | Smartsheet docid (or use url) | |
| sheet_id | Yes | Sheet ID from wecom_smartsheet_get_sheet | |
| field_names | Yes | Column names in order |