link_codebase
Link your product's source folder or Git repo so video compositions use real components and design tokens; then reference files with @ and let the agent read them directly.
Instructions
Add the product's own source to the library, so videos are built from its real components and design tokens: path links a folder where it is on disk (never copied); url clones a Git repository (shallow, into the MOGA home), and linking the same url again pulls its latest. Kept in moga.json "codebases". Then @ reaches its files and folders, and the agent reads them with its own file tools. Returns what it holds: how many source files, the token files, how many components and styles.
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": "link_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Or a Git remote: https://…, ssh://… or git@host:path | |
| name | No | What @ calls it (default: the folder or repository name) | |
| path | No | Absolute path of the folder | |
| basis | No | What you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it. | |
| message | No | One line saying why, kept with the change in the history | |
| feedback | No | Ids of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again. | |
| confidence | No | How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change. |