Find related sources
find_related_sourcesFind artifacts on connected platforms that relate to a repository.
Show the results to the customer and let them correct the selection before
attaching anything. Search again by name, narrow to one connector, or drop
unwanted items. This tool reads the platforms. Pass the chosen items to
create_project or update_project as sources to attach them in one call.
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": "find_related_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | A repository as owner/name, for use before creating a project. | |
| query | No | Search by name, e.g. the title of a Notion page. Given, widens past exact matches. | |
| container | No | A platform container to browse within. | |
| project_id | No | Rank artifacts by this project's repositories. Give this, repo, or query. | |
| connector_id | No | Connector to search. Defaults to every connected connector. | |
| suggestions_only | No | Restrict results to artifacts with an exact repository match. A query or container takes precedence over this setting. |
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. | |
| items | No | Artifacts on connected platforms that relate to the project or repository. suggested is true for an exact repository match; matched_repo identifies the repository. Pass the items the customer chooses to create_project or update_project as sources. | |
| reason | No | A stable snake_case code from the allowed set. Present on every error and on successful calls that carry a workflow state. | |
| scopes | No | Containers that match (a Linear team or project, a Notion database or page): pass one as source_scopes to attach everything in it. Returned for a query or inside a container. | |
| message | No | Exactly one sentence written for the user. Never raw exception text or a backend error string, which may expose private details. | |
| 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. | |
| truncated | No | True when more artifacts matched than were returned; narrow the query. | |
| next_steps | No | Recommended next actions, in order. | |
| not_connected | No | Requested connectors awaiting connection in this workspace. | |
| connections_url | No | The app's connections page, when a person needs to act there. | |
| suggestions_only | No | True when every returned artifact is an exact repository match. Pass a query to widen the search. | |
| connection_problems | No | Connections whose search failed, each with the platform's or server's reason. A person can fix them in the app at connections_url. | |
| connectors_searched | No | Connectors that were searched. | |
| retry_after_seconds | No | With reason rate_limited, how many seconds Trent asks the caller to wait. |