yuque_create_repo
Create a repository in the Yuque knowledge base to organize documents and manage content hierarchies. Specify name, visibility, owner, and description for structured knowledge management.
Instructions
Create a repository.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Repository name. | |
| slug | No | Optional repository slug. | |
| description | No | Optional repository description. | |
| isPublic | No | Whether the repository is public. | |
| ownerType | No | Owner type. | |
| ownerLogin | No | Owner login for user or group repo creation. |
Implementation Reference
- src/tools.js:452-452 (handler)The handler function for the yuque_create_repo tool.
yuque_create_repo: async (args, client) => jsonText(await client.createRepo(args)), - src/tools.js:272-286 (registration)The registration and schema definition for the yuque_create_repo tool.
{ name: "yuque_create_repo", description: "Create a repository.", inputSchema: { type: "object", properties: { name: schemaProperty("string", "Repository name.", { minLength: 1 }), slug: schemaProperty("string", "Optional repository slug."), description: schemaProperty("string", "Optional repository description."), isPublic: schemaProperty("boolean", "Whether the repository is public."), ownerType: schemaProperty("string", "Owner type.", { enum: ["user", "group"] }), ownerLogin: schemaProperty("string", "Owner login for user or group repo creation.") }, required: ["name"] }