cmmn-add_discretionary_item
cmmn-add_discretionary_itemAdd a discretionary item to a running case by instantiating a PlanItemDefinition marked as discretionary. Optionally override the name and set initial status.
Instructions
Adds a discretionary item to a running case by instantiating from a PlanItemDefinition. The definition must be marked as discretionary.
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": {
"case_id": "<case_id>",
"definition_id": "<definition_id>"
},
"name": "cmmn-add_discretionary_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case_id | Yes | Case ID to add the item to (@rid format) | |
| definition_id | Yes | PlanItemDefinition ID to instantiate (@rid format) | |
| name | No | Override the name from the model | |
| parent_id | No | Optional stage ID to add the item to (@rid format) | |
| status | No | Initial status (default: 'available') |