yuque-document-management
Original:🇨🇳 Chinese
Translated
Manage YuQue knowledge base documents via the YuQue MCP tool. Suitable for creating, searching, updating, moving or deleting YuQue documents; organizing knowledge base structure; batch document operations; managing document templates; and implementing collaborative workflows. Provides MCP tool integration modes and key usage points.
5installs
Sourcedoomclouds/lightragnet
Added on
NPX Install
npx skill4agent add doomclouds/lightragnet yuque-document-managementTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →YuQue Document Management
Manage YuQue knowledge base documents via the YuQue MCP tool. This skill focuses on the key usage points and common operation modes of the MCP tool.
MCP Tool Overview
All operations are performed via the YuQue MCP tool:
- - Get default knowledge base information
mcp_YuQueMCP_get_default_repository - - Get complete directory tree structure
mcp_YuQueMCP_get_repository_toc_tree - - Search documents
mcp_YuQueMCP_search - - Create new documents
mcp_YuQueMCP_create_document - - Read document content
mcp_YuQueMCP_get_document - - Update document content or title
mcp_YuQueMCP_update_document - - Move documents to other directories
mcp_YuQueMCP_move_document - - Delete documents
mcp_YuQueMCP_delete_document
Basic Operation Points
Create Document
Steps:
- Get directory structure: Use to understand the organization
mcp_YuQueMCP_get_repository_toc_tree - Determine location: Select an appropriate or use the root directory (null)
parentUuid - Prepare content: Use Markdown format
- Create document: Call with parameters:
mcp_YuQueMCP_create_document- (required): Document title
title - (optional): Document content in Markdown format
body - (optional): Parent directory UUID
parentUuid
Key Points:
- Titles must be unique in the same directory
- Use standard Markdown syntax for content
- If is not specified, the document will be created in the root directory
parentUuid
Search Documents
Usage:
mcp_YuQueMCP_search query="search keywords" type="DOC" page=1Parameter Description:
- (required): Search keywords
query - (optional): Document type filter
type - (optional): Pagination page number
page
Key Points:
- Use specific keywords instead of general terms
- Combine multiple keywords to improve accuracy
- Use pagination for large result sets
Update Document
Usage:
mcp_YuQueMCP_update_document docId="document ID" body="new content" title="new title"Parameter Description:
- (required): Document ID
docId - (optional): New document content
body - (optional): New document title
title
Key Points:
- Provide at least either or
bodytitle - Verify that changes take effect after update
- Confirm the document ID is correct
Move Document
Usage:
mcp_YuQueMCP_move_document docId="document ID" parentUuid="target parent directory UUID"Key Points:
- If is null, move to the root directory
parentUuid - Confirm the target directory exists
- Avoid circular references (cannot move to its own subdirectory)
Delete Document
Usage:
mcp_YuQueMCP_delete_document docId="document ID"Key Points:
- Deletion is irreversible, confirm before proceeding
- Verify the document ID is correct
- Backup content before deletion if needed
Common Workflows
Document Creation Workflow
- View Structure: Use to understand existing organization
get_repository_toc_tree - Determine Location: Select appropriate parent directory UUID
- Prepare Content: Write content in Markdown format
- Create Document: Call
create_document - Verify Result: Confirm the document appears in the expected location
Document Organization Workflow
- Get Current Structure: Use to view the complete directory tree
get_repository_toc_tree - Identify Documents to Move: Determine restructuring goals
- Execute Move: Use to reposition
move_document - Verify Structure: Re-fetch the directory tree after moving to confirm
Error Handling Key Points
Common Errors
Document Creation Failed:
- Check if the title is unique in the target directory
- Verify Markdown syntax is correct
- Confirm exists
parentUuid
No Search Results:
- Try broader or alternative keywords
- Check spelling and terminology
- Verify document visibility/permissions
Move Failed:
- Confirm the target exists
parentUuid - Check if the source document exists
- Verify no circular references
Error Handling Mode
python
try:
result = mcp_YuQueMCP_create_document(title="Title", body="Content")
except Exception as e:
# Log error
# Implement retry logic
# Provide user feedbackUsage Best Practices
Pre-Operation Preparation
- Get Knowledge Base Information: First call to understand the knowledge base
get_default_repository - View Directory Structure: Use to plan organization
get_repository_toc_tree - Search Verification: Search to confirm the document does not exist before creation
Content Specifications
- Use clear, descriptive titles
- Use standard Markdown format for content
- Keep document size moderate (avoid oversized documents)
- Organize related documents in the same directory
Collaboration Notes
- Set appropriate visibility permissions
- Use version naming for major changes
- Coordinate with the team before moving documents
- Regularly clean up outdated content
Tool Parameter Quick Reference
| Tool | Required Parameters | Optional Parameters | Description |
|---|---|---|---|
| | | Create document |
| | - | Read document |
| | | Update document |
| | | Move document |
| | - | Delete document |
| | | Search documents |
| - | - | Get directory tree |
| - | - | Get knowledge base information |
Reference Documents
For detailed information, refer to:
- references/mcp-tools.md - Complete MCP tool reference
- references/troubleshooting.md - Troubleshooting guide