Link Repositories Tool
link-repositories-toolTeach the team's org map how two repositories relate, so every future get-team-context
call — by any teammate's agent — knows it. Relations (read as "repository
to_repository"): depends_on (this repo consumes that one — an SDK, package, or service),
documents (this repo is the docs for that one), ships_with (changes here usually mean
changes there), and unrelated (suppress a noisy derived connection between the pair).
Use it when you discover a relationship the map is missing, or when the user tells you how
repos fit together. Re-teaching the same edge refreshes it. Links are team-visible and
attributed to you.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional short context, e.g. "the widget bundles this SDK — API changes here need a release there". Max 500 characters. | |
| relation | Yes | How `repository` relates to `to_repository`: depends_on, documents, ships_with, or unrelated (suppresses derived connections between the pair). | |
| repository | Yes | The FROM side of the relation — usually the repository you are working in, as owner/name or a bare repo name. Also binds the session to the owning team. | |
| to_repository | Yes | The TO side of the relation, as owner/name or a bare repo name. Must be on the same team. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The TO repository. | |
| from | Yes | The FROM repository. | |
| team | Yes | Team name. | |
| message | Yes | Human-readable confirmation. | |
| relation | Yes | The relation recorded. |