Change the branch and path a glossary is fetched from
set_glossary_fileChange which branch and path of its repository a glossary fetched from a repository reads (fetched.sourceKind repository). The branch is checked live and the path must end .tbx or .csv. The new pair waits as fetched.pendingFile while a fetch with it runs in the background, and replaces the branch and path — and the entries — only once that fetch succeeds; a failed one keeps them, shown as fetched.status failed with filePending: true and the reason. The current branch and path again drop a pending pair and fetch nothing. The repository and source locale are fixed: to read another, create another glossary (create_repository_glossary). Needs no Feature grant. Refused with GLOSSARY_BRANCH_NOT_FOUND, GLOSSARY_REPOSITORY_NOT_VISIBLE, and BAD_REQUEST for another extension or a glossary not fetched from a repository. When referring to a project or language in your reply to the user, use its name and locale (e.g. "French (fr-FR)") — ids (UUIDs) are for tool calls only, never show them to the user.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"glossaryId": "<glossaryId>",
"branch": "<branch>",
"path": "<path>"
},
"name": "set_glossary_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | From the repository’s root, ending `.tbx` or `.csv`, which names its format, e.g. `docs/glossary.tbx` | |
| branch | Yes | ||
| glossaryId | Yes | From list_glossaries |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glossary | Yes |