Alphaxiv Read Files From GitHub Repository

1积分/次
ae_alphaxiv_read_files_from_github_repository

读取 GitHub 仓库中的文件或目录,也可用于查看论文项目网站的源码。调用时,在 request_body.githubUrl 中填写 GitHub 仓库 URL,在 request_body.path 中填写文件或目录路径。 返回内容取决于 path: 1. path 为 '/' 时,返回仓库结构和顶层文件的内容。大型仓库的结果可能仅限于顶层条目。 2. path 指向目录时,返回文件和子目录列表,并获取可读取文件的内容。被省略的文件会附带原因,并在可用时提供原始文件 URL。 3. path 指向文件时,返回文件内容。二进制文件不会被读取,而会返回原始文件 URL;如需查询 PDF 内容,请使用 answer_pdf_queries。 查找项目网站源码时,对于 owner.github.io,可尝试 owner/owner.github.io 仓库;对于 owner.github.io/project/,可先尝试 owner/project。这些只是候选仓库,不保证就是网站源码所在仓库。 查找项目演示视频时,应先阅读网页。仅当网页未提供所需演示的可播放 URL 时,才检查网站源码中的 HTML、组件和资源清单;不要重复检查网页已经提供的资源。

效率工具
1积分/次

价格说明

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

工具参数

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

参数类型必填说明默认值
pathstring是The path to the file or directory. Use '/' to get the entire repository structure.—
githubUrlstring是The GitHub repository URL, including project website repositories.—

调用示例

参数模板

根据参数配置生成,使用前请替换示例值。

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_alphaxiv_read_files_from_github_repository' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "path": "xxx",
    "githubUrl": "https://example.com/image.jpg"
  }
}'

暂无返回示例。