create_choice
Add a new choice value to a field's choice list in ServiceNow, returning a deploy-ready payload for custom states, priorities, categories, or types.
Instructions
Add a new choice value to a field's choice list in ServiceNow.
Returns deploy-ready payload for the sys_choice table. Common use: adding custom states, priorities, categories, or types.
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": {
"table": "<table>",
"field": "<field>",
"value": "<value>",
"label": "<label>"
},
"name": "create_choice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name (e.g. "incident") | |
| field | Yes | Field name (e.g. "state") | |
| value | Yes | Internal value stored in DB (e.g. "6") | |
| label | Yes | Display label shown to users (e.g. "Pending Vendor") | |
| sequence | No | Sort order (lower = first) | |
| color | No | Bootstrap color class: success, warning, danger, info, default | |
| dependent_value | No | Dependent field value (for dependent choice lists) |