yaaif_agent_spec_update
Update a scenario spec's name, description, status, requirements, slots, or segments only when the expected version matches the latest read, preventing lost updates.
Instructions
Update Scenario identity or segments using the version returned from its last read. Requirement and slot replacement is only allowed with replace_all=true; prefer granular tools.
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": {
"spec_id": "<spec_id>",
"expected_version": "<expected_version>"
},
"name": "yaaif_agent_spec_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| slots | No | ||
| status | No | ||
| spec_id | Yes | ||
| segments | No | ||
| description | No | ||
| replace_all | No | ||
| requirements | No | ||
| expected_version | Yes |