立即开始
GitHub Tools

Github Get Repository Content

通过 Aident Loadout 使用 GitHub Tools 的 Github Get Repository Content。执行前查看输入、输出、设置、价格和风险。

写入操作风险等级 2/5OAuth 连接

服务提供商说明

Retrieves a file's Base64 encoded content or lists a directory's contents from a GitHub repository.

价格与限制

价格
免费操作
统一支付
暂不支持

输入

  • refstring
    The name of the commit, branch, or tag to read from. Use this parameter to specify which branch (e.g., 'feat/godlocal-dev', 'main', 'develop'), tag (e.g., 'v1.2.0'), or commit SHA you want to access. If not provided, the repository's default branch will be used. Note: Branch nam…
  • pathstring
    必填
    Required. Path to file or directory in the repository. Empty string ('') retrieves root directory contents. Leading slashes auto-stripped. CRITICAL: Do NOT pass branch names here (e.g., 'feat/godlocal-dev', 'main'). Branch names belong in the `ref` parameter. Path should be file…
  • repostring
    必填
    Required. The name of the repository, without the `.git` extension. This name is not case sensitive.
  • ownerstring
    必填
    Required. The account owner of the repository. This name is not case sensitive. Can also accept full repository path in format 'owner/repo' - the repo part will be extracted automatically.

可观察输出

  • data
    必填
    Data from the action execution
  • errorstring
    Error if any occurred during the execution of the action
  • successfulboolean
    必填
    Whether or not the action execution was successful or not

使用此操作的技能

相关使用场景

官方来源

服务提供商来源