Gitee

by normal-coder
Verified

get_file_contents

Retrieve the contents of a file or directory from a Gitee repository by specifying the owner, repository, path, and optional branch. Designed to simplify file access and management in Gitee projects.

Instructions

获取 Gitee 仓库中文件或目录的内容

Input Schema

NameRequiredDescriptionDefault
branchNoBranch name, defaults to the repository's default branch
ownerYesRepository owner path (enterprise, organization, or personal path)
pathYesFile path
repoYesRepository path

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "branch": { "description": "Branch name, defaults to the repository's default branch", "type": "string" }, "owner": { "description": "Repository owner path (enterprise, organization, or personal path)", "type": "string" }, "path": { "description": "File path", "type": "string" }, "repo": { "description": "Repository path", "type": "string" } }, "required": [ "owner", "repo", "path" ], "type": "object" }
ID: cck9xigm1d