yuque_get_repos
Retrieve Yuque knowledge base repositories for current or specified users and groups to manage content hierarchies and document structures.
Instructions
List Yuque repositories for the current user or a specified user.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | No | Optional Yuque user ID. | |
| ownerType | No | Optional owner type. | |
| ownerLogin | No | Optional owner login. When provided, ownerType decides /users/{login}/repos or /groups/{login}/repos. |
Implementation Reference
- src/tools.js:434-435 (handler)The handler function for 'yuque_get_repos' which calls the client's getRepos method.
yuque_get_repos: async (args, client) => jsonText(await client.getRepos(args.ownerLogin ? args : args.userId)), - src/tools.js:97-107 (schema)The schema definition for 'yuque_get_repos'.
name: "yuque_get_repos", description: "List Yuque repositories for the current user or a specified user.", inputSchema: { type: "object", properties: { userId: schemaProperty("string", "Optional Yuque user ID."), ownerType: schemaProperty("string", "Optional owner type.", { enum: ["user", "group"] }), ownerLogin: schemaProperty("string", "Optional owner login. When provided, ownerType decides /users/{login}/repos or /groups/{login}/repos.") } } },