Ae · Github · Repos · Get · Readme
1.00积分/次
ae_github_repos_get_readme
获取 GitHub 仓库的主 README 文件(支持原始文本或渲染后的 HTML 格式)
1.00积分/次
价格说明
1.00积分/次
API 调用
通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。
cURL
curl --request POST \
--url 'https://api.agentearth.ai/v1/tools/run' \
--header 'Authorization: Bearer $AGENTEARTH_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"tool": "ae_github_repos_get_readme",
"input": {
"ref": "xxx",
"repo": "xxx",
"owner": "xxx"
}
}'- 请求方式
- POST
- 接口地址
- /v1/tools/run
- 鉴权方式
- Bearer Token
- 超时时间
- 60 秒
- 当前版本
- —
响应示例
{
"error_no": 0,
"error_msg": "",
"result": [
{
"type": "text",
"text": "xxx"
}
],
"platform_annotations": {
"source": "AgentEarth",
"platform_note": "xxx",
"platform_suggestion": "xxx"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
ref | string | 否 | The name of the commit/branch/tag. Default: the repository’s default branch. | — |
repo | string | 是 | The name of the repository without the `.git` extension. The name is not case sensitive. | — |
owner | string | 是 | The account owner of the repository. The name is not case sensitive. | — |
