Update remediation tasks
update_tasksUpdate remediation control statuses in a batch. Updates are atomic and status changes persist across scans.
Use this for user-requested manual overrides. After implementing fixes,
run trigger_analysis so Trent confirms resolved controls. Do not mark
controls completed on your own initiative; doing so overrides verification.
control_status accepts in_review, in_progress, excluded, or completed.
remediation_category switches between automatable and manual.
For a risk decision, use record_feedback to inform the scan or
edit_analysis with field='disposition' on a task. For a finding, use
edit_analysis with reason='risk_accepted'.
completed requires a reason of at least 20 characters. excluded accepts
the control's risk. When the user requested either change, pass
confirmed=true to apply it. If you propose it, show the reason and ask
first. A completed update with confirmed=false returns justifications
for review and leaves controls unchanged.
ticket_action files each control's ticket or posts a note in this call.
Use it when requested by the user; ask first when proposing it. The reply
names each filed ticket with key and link, and each posted note.
tickets_refused explains failures, the remedy, and who can act. Relay its
message verbatim. The retry call targets the failed writes.
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": {
"updates": "<updates>"
},
"name": "update_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | With ticket_action='create': an optional comment on each new ticket. With ticket_action='note': the comment to post, required. Trent posts it as the user's comment. | |
| updates | Yes | List of control updates to apply. | |
| confirmed | No | True when the user requested completed or excluded status, or approved it after reviewing the justifications. False with control_status='completed' returns those justifications and leaves controls unchanged. | |
| project_id | No | Project ID (provide either project_id or project_name) | |
| project_name | No | Project name (provide either project_id or project_name) | |
| ticket_action | No | Ticket action for controls in updates. 'none' (default) leaves tickets unchanged. 'create' files a ticket for each control at any priority. 'note' posts note on each control's ticket. Ticket actions can be taken with control status unchanged. | none |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | True when the call itself failed. False for successful calls, including a scan still running, an already approved plan, or a repository classified as non-agentic. The reason field describes these workflow states. | |
| reason | No | A stable snake_case code from the allowed set. Present on every error and on successful calls that carry a workflow state. | |
| message | No | Exactly one sentence written for the user. Never raw exception text or a backend error string, which may expose private details. | |
| results | No | Per-control update results from Trent. | |
| tickets | No | The tickets this call filed or posted a note on, one per control: control_id, key, url, status and trent_state. status 'creating' means Trent is still filing the ticket and retries on its own. | |
| metadata | No | Caller metadata, such as 'expiration_warning'. Substantive results have their own fields. Never includes exception or backend error text, which may expose private details. | |
| outcomes | No | When the call did more than one thing: what each part did, in order. message gives the first. | |
| next_steps | No | Recommended next actions, in order. | |
| retry_controls | No | Controls whose ticket write failed and can be sent again. After fixing the cause in tickets_refused, retry those controls with the same ticket_action and note. next_steps gives the retry call. | |
| tickets_refused | No | Controls whose ticket creation or note failed, each with control_id, code, and a message explaining why and who can fix it. Relay the message as written. | |
| retry_after_seconds | No | With reason rate_limited, how many seconds Trent asks the caller to wait. | |
| pending_completed_controls | No | Completed controls awaiting explicit user approval. |