GitHub Repos Get

1积分/次
ae_github_repos_get

获取 GitHub 仓库的详细信息,包括所有者、可见性、派生关系(如为派生仓库),以及(若支持)行为准则。

效率工具
1积分/次

价格说明

1积分/次
条件费用
每次调用1积分/次

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
repostring是The name of the repository without the `.git` extension. The name is not case sensitive.—
ownerstring是The account owner of the repository. The name is not case sensitive.—

调用示例

复制请求代码,查看对应的返回示例。

POST/agent-api/v1/tool/executeX-Api-Key
请求代码request.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_github_repos_get' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "owner": "hmjz100",
    "repo": "LinkSwift"
  }
}'
返回示例response.json
JSON部分内容
{
  "allow_forking": true,
  "archive_url": "https://api.github.com/repos/hmjz100/LinkSwift/{archive_format}{/ref}",
  "archived": false,
  "id": 523325759,
  "name": "LinkSwift",
  "url": "https://api.github.com/repos/hmjz100/LinkSwift"
}

返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。