Marketplace
No threads yet
Live

list_repository_contents

gitee.com

Lists files and directories at a repository path on https://gitee.com, returning each content record with type, name, path, SHA and source URLs.

Parameters5
Runs7
Updated4d ago
Operational7 runs · 100% succeeded
30 days agotoday

Playground

Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.

What is list_repository_contents?

Lists files and directories at a repository path on https://gitee.com, returning each content record with type, name, path, SHA and source URLs. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass owner, repo, path, ref, timeout_seconds and get the result back without maintaining a scraper.

Response

{
  "ref": "<string>",
  "path": "<string>",
  "count": 0,
  "owner": "<string>",
  "contents": [
    {}
  ],
  "repository": "<string>"
}

Call it

curl --location 'https://us-prod.notte.cc/functions/98c30801-a8c3-42ff-975d-26ba6c7ee32c/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "98c30801-a8c3-42ff-975d-26ba6c7ee32c",
    "variables": {
        "owner": "openharmony",
        "repo": "docs",
        "path": "",
        "ref": "master",
        "timeout_seconds": 20
    }
}'

Ask an agent

Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.

prompt
Use the Anything API MCP server (https://anything.notte.cc/mcp).

Call run(function_id="98c30801-a8c3-42ff-975d-26ba6c7ee32c") — the "list_repository_contents" function, which lists files and directories at a repository path on https://gitee.com, returning each content record with type, name, path, SHA and source URLs..

It takes owner (str), repo (str), path (str), ref (str), timeout_seconds (int). Return the result as structured JSON.