Get context provenance
get_context_provenanceShow which Trent results reference the customer's own material.
For one scan, group findings, recommendations, and security requirements
by the exact version of the document or tool report they reference.
Sources can be uploaded, pushed by CI, or synced by a connector. Use this
to answer "where did the file I uploaded get used?" or
"does this version still matter?".
This tool gives a read-only view of recorded references. Describe them
as "Trent referenced this passage when producing this finding". Do not claim the
document caused a finding or that Trent would have missed it without the
document; Trent has not run that comparison. When provenance_recorded is
false, say the scan kept no record of what it read. A missing record does
not prove that the scan used no context.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_context_provenance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Opaque cursor from a previous call's `next_cursor`. | |
| moment | No | Which scan to answer from: 'current' (the newest completed one), 'settled' (the same, but refused while a scan is publishing), or 'scan:{scan_id}' to pin one scan. | current |
| project_id | No | Project ID (provide either project_id or project_name) | |
| revision_id | No | Narrow the answer to one exact source version, as returned in a previous call or on a result's provenance. Omit for every version this scan read. | |
| project_name | No | Project name (provide either project_id or project_name) |
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. | |
| scan_id | No | The scan the answer is taken from. | |
| 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. | |
| revisions | No | One entry per version of the customer's material this scan accounts for. | |
| next_steps | No | Recommended next actions. | |
| project_id | No | Resolved Trent project identifier. | |
| next_cursor | No | Pass back as `cursor` to read the next page. Absent when the last page was served. | |
| provenance_recorded | No | False when no record can be shown. reason says why: no_analysis, the scan kept no record (it predates provenance recording or read none); no_completed_scan; scan_running; or scan_not_in_project. Report the missing record. It does not establish that the scan used no customer context. | |
| retry_after_seconds | No | With reason rate_limited, how many seconds Trent asks the caller to wait. |