Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Feishu document creation and editing operations using OpenAPI. Activate when user needs to create, edit, or read Feishu documents programmatically.
Feishu document creation and editing operations using OpenAPI. Activate when user needs to create, edit, or read Feishu documents programmatically.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
This skill provides comprehensive guidance for creating and editing Feishu documents using the Feishu OpenAPI.
Create enterprise self-built app: Login to Feishu Open Platform, create an app and add "Bot" capability. Apply for API permissions: In "Permission Management", apply for the following permissions: Document editing: docx:document:write_only Document viewing: docx:document:readonly Publish app: Submit version and publish, ensuring the app coverage includes target users/departments.
Call the self-built app get tenant_access_token interface: curl -X POST https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal \ -H "Content-Type: application/json" \ -d '{"app_id": "your_app_id", "app_secret": "your_app_secret"}' Response example: { "code": 0, "tenant_access_token": "t-xxx", "expire": 7200 }
Get document_id from document URL: Example URL: https://bigdatacenter.feishu.cn/docx/HpK2dtGu9omhMAxV12zcB6i7ngd document_id = HpK2dtGu9omhMAxV12zcB6i7ngd
Manually add collaborator: Open document in Feishu client โ Click "..." in top right โ "More" โ "Add document app" Search and add your app, grant "Can edit" permission.
Interface: Create Block Path parameters: document_id = document ID, block_id = document ID (root node is the document itself) Request headers: Authorization: Bearer {tenant_access_token} Content-Type: application/json Request body example (write "hello"): { "index": -1, "children": [ { "block_type": 2, "text": { "elements": [ { "text_run": { "content": "hello" } } ] } } ] }
Interface: Get Document Plain Text curl -X GET "https://open.feishu.cn/open-apis/docx/v1/documents/{document_id}/plaintext" \ -H "Authorization: Bearer {tenant_access_token}" Response example: { "code": 0, "data": { "content": "Document text content here" } }
Diagnosis: App not added as document collaborator, or tenant_access_token is invalid. Solution: Re-add app as collaborator, or re-get tenant_access_token.
Diagnosis: Request header does not carry Authorization: Bearer {token}. Solution: Ensure tenant_access_token is correctly added to request header.
Diagnosis: document_id is incorrect or document has been deleted. Solution: Re-extract document_id from document URL.
Create Block Interface Get Document Plain Text Interface Permission Configuration Guide Through the above steps, you can achieve editing Feishu documents via API, supporting add/delete/modify/query operations for multiple content types including text, tables, and images.
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.