create_catalog_item_variable
Add a custom form field (variable) to a ServiceNow catalog item by specifying name, type, label, and optional properties like mandatory or default value.
Instructions
Create a new variable (form field) on a catalog item.
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": {
"catalog_item_id": "<catalog_item_id>",
"name": "<name>",
"type": "<type>",
"label": "<label>"
},
"name": "create_catalog_item_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | ||
| min | No | ||
| name | Yes | Internal name of the variable | |
| type | Yes | Variable type, e.g. string, integer, boolean, reference | |
| label | Yes | Display label (question text) | |
| order | No | ||
| help_text | No | ||
| mandatory | No | ||
| max_length | No | ||
| description | No | ||
| default_value | No | ||
| catalog_item_id | Yes | sys_id or name of the catalog item | |
| reference_table | No | For reference-type variables, the table to reference | |
| reference_qualifier | No |