getFile
Retrieve file content from a gittr repository without cloning it. Specify owner, repo, file path, and optional branch to fetch a file directly.
Instructions
Get file content without a full local clone. Tries gittr bridge file-content, then a few hardcoded GRASP /raw/ hosts. Not full Code-tab parity (no 30617 clone[] / repo-files for home remotes) — prefer bridgeListFiles after importRemoteToBridge/mirrorRepo.
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": {
"ownerPubkey": "<ownerPubkey>",
"repoId": "<repoId>",
"filePath": "<filePath>"
},
"name": "getFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Branch name (default: main) | |
| repoId | Yes | Repository ID | |
| filePath | Yes | Path to file (e.g., "README.md") | |
| ownerPubkey | Yes | Repository owner pubkey |