github_files
GitHub — read and write repository files.
op='read' returns the decoded TEXT; op='list' returns the contents of a
directory; op='readme' finds the README whatever its name.
⚠️ Beyond 1 MB, GitHub serves the metadata without the content: the read then says so by name rather than returning an empty string that would read as an empty file.
⚠️ Writing over an existing file REQUIRES its sha (the
blob's, returned by op='list' or by a read). Without it, GitHub answers
409: it is its concurrency control, which guarantees we replace
the version we read and not a change that arrived in the meantime.
Omitting it is normal for a CREATION.
⚠️ Each write is a real commit on the targeted branch (branch,
or the default branch) — visible in history, and attributed to the
token holder.
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": "github_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | read | list | readme | write | delete. | read |
| ref | No | branch, tag or SHA to read (default: default branch). | |
| sha | No | op='write' (update) / 'delete' — the existing blob's sha. | |
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| path | No | path of the file or directory. | |
| repo | No | repository name. | |
| owner | No | repository owner. | |
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| branch | No | op='write'/'delete' — the target branch. | |
| _run_id | No | OBLIGATOIRE à chaque appel dès `run_start` ou `data_claim_next` : sans lui, l'écriture sur une ligne réservée est refusée. Hérité seulement si le serveur tient un run actif — n'y compte pas. | |
| content | No | op='write' — the text content to write. | |
| message | No | op='write'/'delete' — the commit message. | |
| _account | No | Compte à OPÉRER parmi : `Julien` (org), `Tulina front` (org). `oto_identity(op='list')`. | |
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| _instance | No | Instance de connecteur PRÉCISE (un credential exact). `oto_instance(op='list')`. |