GET
github_repos_get_content.py
Requires
repo, read:user.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Read a file, or list a directory. Pass an empty path for the repository root. File contents come back decoded as text.
from charter.packs import github
result = await github.repos_get_content.ainvoke({"owner": ..., "repo": ..., "path": ...})
repo, read:user.| Field | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the .git extension. The name is not case sensitive. |
path * | string | The path of the file or directory, relative to the repository root. Use an empty string for the root directory. |
| Field | Type | Description |
|---|---|---|
ref | string | The name of the commit/branch/tag. Defaults to the repository’s default branch. |
Was this page helpful?