card_custom_field_set
Set or replace one Trello card custom field value by matching its existing type; use custom_field_options for list option IDs and card_custom_field_clear to remove a value.
Instructions
Set or replace one card custom field value, using the existing definition's type from custom_field_get. Use custom_field_options to find list option ids and card_custom_field_clear to remove a value.
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": {
"cardId": "<cardId>",
"customFieldId": "<customFieldId>",
"type": "<type>"
},
"name": "card_custom_field_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ISO-8601 date/time value for date custom fields. | |
| text | No | Text value for text custom fields. | |
| type | Yes | Match the existing field type. Requires text for text, number for number, date for date, checked for checkbox, or optionId for list; other value inputs are ignored. | |
| cardId | Yes | Trello card id, short link, or Trello card URL. | |
| number | No | Number value for number custom fields; Trello expects a string. | |
| checked | No | Boolean value for checkbox fields. | |
| optionId | No | Dropdown/list custom field option id for list fields. | |
| customFieldId | Yes | Trello custom field definition id. |