Read Repository File
Read a bounded text range from a granted private repository. Resolves the ref to a commit SHA and returns an immutable permalink, blob SHA, exact line range, and text, so an answer can cite code that will not move.
Access
This tool reads a data source you connect. Cortexa hosts no dataset behind it and nothing here is publicly queryable — there is no result to show a visitor, only the shape of the call. Add a connection in Settings → Connections, and the agent can use it in your own sessions.
- Works with
- GitHub
- Scope
- A bounded line range of one file under the connection's allowed paths.
Access is read-only and re-authorized on every call against the connection's owner, your active workspace, and any explicit grants. Credentials stay encrypted at rest and are never returned by a tool.
Schema
JSON Schema the agent (or your API call) must match.
View JSON schemaExpandCollapse
Examples (1)
Illustrative only — the ids below are placeholders. Real ids come from list_connections at run time and are scoped to the caller.
Read a pinned line range
Identifiers
- Catalog ID
- github_read_file
- Agent tool
- github_read_file
- Added
- 2026-07-26 09:40Z
- Tags
- connection, private, read-only, github, code