Suggestions Accept
suggestions_acceptApply suggestions, by the ids a run's saved_suggestions or suggestions_list gives, all as one change a single undo reverts. Per item, fields applies only some proposed keys and values applies your own value instead. Items whose target changed since they were made come back in stale and are not applied unless force is true. Ids in reject are declined in the same change, so undoing it brings them back too; items may be empty when only declining. Uses no AI and no credits.
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": {
"project_id": "<project_id>",
"items": "<items>"
},
"name": "suggestions_accept"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Apply stale items too, overwriting later changes. | |
| items | Yes | Suggestions to apply; empty when the call only declines. | |
| reject | No | Suggestions to decline in the same change; undoing it brings them back. Not one of items. | |
| project_id | Yes | Project UUID (database id). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stale | Yes | Not applied: the target changed or is gone. | |
| blocked | Yes | Not applied, still pending: the requirement is locked, or the story to delete backs a reviewed requirement. | |
| created | Yes | Suggestion UUID mapped to its created entity UUID. | |
| accepted | Yes | ||
| rejected | Yes | Declined in this change. | |
| accept_token | No | Identifies this accept's undo step; absent when nothing was applied or declined. Pass it to projects_undo to undo this accept and nothing made after it. | |
| kept_pending | Yes | Updates accepted for only some fields: applied, and still pending with the rest. |