List connected sources
list_connected_sourcesList the workspace's connected platforms and the sources a project uses.
Omit project_id for connectors and their connections. An unconnected
connector includes connect_url. Send the customer there to connect it in
the app.
Pass project_id to also read its connected sources and each document's
source_kind: connector, push, or upload. This identifies, for example, a
report synced from Semgrep and a report uploaded by hand.
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": "list_connected_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | A Trent project id, to also list that project's sources. Omit for the workspace view. |
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. | |
| sources | No | The project's connected sources when project_id was given. Each includes its connector, title, status, last sync, sync policy, and platform link. Every document has source_kind: connector, push, or upload. Staged sources awaiting attachment appear under pending_sources. | |
| 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. | |
| connectors | No | Every connector Trent offers, with this workspace's connections. An unconnected connector includes connect_url, the app page where a person connects it. | |
| next_steps | No | Recommended next actions, in order. | |
| project_id | No | Resolved Trent project identifier, when one was given. | |
| document_count | No | Documents the project holds now. | |
| document_limit | No | The most documents a project holds. | |
| connections_url | No | The app's connections page. | |
| pending_sources | No | Sources staged for the project. Saving the project attaches them. | |
| retry_after_seconds | No | With reason rate_limited, how many seconds Trent asks the caller to wait. |