Sign in

Get repository contents

documented

Get the contents of a file or directory in a repository.

GET /repos/{owner}/{repo}/contents/{path}Repositoriesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.github.com/repos/{{$owner}}/{{$repo}}/contents/{{$path}}?ref={{$ref}}" \
  -X GET \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "User-Agent: keychains"
Get repository contents · GitHub · OpenIntegrations