Edit, remove or restore a pain
edit_painBefore the run: the pains («боли») the search looks for in a lead's facts. action=edit (new text of pain_id), remove, restore. [REST: POST /api/tasks/{id}/pains/{pid}/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>",
"pain_id": "<pain_id>",
"action": "<action>"
},
"name": "edit_pain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| action | Yes | ||
| pain_id | Yes | ||
| 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). |