Feishu Doc
Documentsfeishu-docFeishu Doc is an Agent Skill for documents published in the OPPO-Mente-Lab/X-OmniClaw repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Feishu document read/write operations. Activate when user mentions Feishu docs, cloud docs, or docx links.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/OPPO-Mente-Lab/X-OmniClaw/blob/HEAD/extensions/feishu/skills/feishu-doc/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/feishu-doc-49833392, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Feishu Document Tool
Single tool feishu_doc with action parameter for all document operations.
Token Extraction
From URL https://xxx.feishu.cn/docx/ABC123def → doc_token = ABC123def
Actions
Read Document
{ "action": "read", "doc_token": "ABC123def" }
Returns: title, plain text content, block statistics.
Write Document (Replace All)
{ "action": "write", "doc_token": "ABC123def", "content": "# Title\n\nMarkdown content..." }
Replaces entire document with markdown content. Supports: headings, lists, code blocks, quotes, links, images ( auto-uploaded), bold/italic/strikethrough.
Note: On Android, markdown is converted to Feishu block format using document API.
Append Content
{ "action": "append", "doc_token": "ABC123def", "content": "Additional content" }
Appends markdown to end of document.
Create Document
{ "action": "create", "title": "New Document", "folder_token": "fldcnXXX" }
Creates a new document in specified folder.
X-OmniClaw Implementation
Tool Class: FeishuDocTools.kt
Available Tools:
feishu_doc_read- Read document contentfeishu_doc_write- Write/replace document contentfeishu_doc_append- Append content to documentfeishu_doc_create- Create new document
Example Usage:
// Read document
val result = feishuDocTools.readDoc(docToken = "ABC123def")
// Write document
val result = feishuDocTools.writeDoc(
docToken = "ABC123def",
content = "# Title\n\nContent..."
)
Permissions
Required: docx:document, docx:document:readonly