Edit Behavioural Element
edit_behavioural_elementReplace or add a single behavioural model element, creating a new model version and requiring reconfirmation when the edit changes state.
Instructions
Replace, or add, one element of a model's behavioural model. Mutating; creates a model version (none when the edit changes nothing).
The element is kept as a person wrote it, so a later extraction keeps it.
It changes the model's ir_hash, which voids a confirmation: confirm
again with confirm_behavioural_model. The result must still be a
valid model (422 otherwise), and a build holding the model refuses it
(409).
A program's edit is a judgment. Unless the workspace's delegation policy
admits it, it is refused with 403 and an escalation_id and parked for
a person. Do not retry: report the escalation_id and poll
list_proposals.
Returns what the edit did, not the whole model: changed, the model's
status, version and ir_hash, the element as it now stands, the open
questions about it and how many are open in all. Read
get_behavioural_model for the rest.
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": {
"server_version": "<server_version>",
"model_id": "<model_id>",
"collection": "<collection>",
"element": "<element>"
},
"name": "edit_behavioural_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element | Yes | JSON object, the whole element including its ``id``; it replaces the element of that id, or adds one. | |
| evidence | No | ||
| model_id | Yes | ID of the threat model. | |
| collection | Yes | The collection of ``get_behavioural_model``'s ``ir`` the element belongs to. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||