Add, reword, remove or restore a criterion
edit_criterionBefore the run: action=add (a new requirement in words; an AI call adds it), edit (new wording and/or role / standard of criterion_id), remove («Неверно»: drop it; confirm true when the answer warned that it is the only job-title criterion), restore («Вернуть»: undo the last change of it). The estimate is counted again. [REST: POST /api/tasks/{id}/criteria, POST /api/tasks/{id}/criteria/{cid}/edit|remove|restore]
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": {
"task_id": "<task_id>",
"action": "<action>"
},
"name": "edit_criterion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| text | No | ||
| action | Yes | ||
| confirm | No | ||
| task_id | Yes | The search id (task id), e.g. from list_searches or create_search. | |
| version | No | The spec version from get_search (optional: protects against an edit made meanwhile in the web). | |
| standard | No | ||
| criterion_id | No |