workspaces_context_fields_partial_update
Changes the description, type, order or the 'include in AI context' flag. To change the key, use context_fields_rename: it also moves every lead's value, which a plain update does not.
Method: PATCH /api/v1/workspaces/{workspace_sqid}/context-fields/{sqid}/
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": {
"sqid": "<sqid>"
},
"name": "workspaces_context_fields_partial_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| use | No | Use for message generation. | |
| keys | No | Comma-separated list of alternative keys for this field | |
| sqid | Yes | ||
| order | No | ||
| field_type | No | * `string` - String * `text` - Text * `number` - Number * `boolean` - Boolean * `date` - Date * `url` - URL * `phone_number` - Phone Number * `email` - Email * `choice` - Choice | |
| description | No | Explain to AI what this field is about |