Add or rename field
set_fieldAdd a custom field (a column) to a project, or rename one. Without fieldId, adds a string, number, datetime or select field to every view. With fieldId (from list_fields or the fieldIds of list_tasks), renames it and can add select options. A name that another field has is refused. A type change is refused. It never deletes a field.
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": {
"projectId": "<projectId>",
"name": "<name>"
},
"name": "set_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The field name. No other field of the project can have it. | |
| type | No | Needed to add a field. A rename cannot change it. | |
| fieldId | No | Omit to add a field. Give a field id to rename that field. | |
| options | No | Select option titles. On a new select field, its options. On a rename, options to add after the stored ones. Option ids are made on the server. | |
| currency | No | For numberFormat currency: an ISO 4217 code such as USD | |
| projectId | Yes | Project ID from `list_projects` | |
| numberFormat | No | For a new number field (default decimal) |