# Send feishu-doc-editor to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "feishu-doc-editor",
    "name": "feishu-doc-editor",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/zhuligu/feishu-doc-editor",
    "canonicalUrl": "https://clawhub.ai/zhuligu/feishu-doc-editor",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/feishu-doc-editor",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-doc-editor",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/api-guide.md",
      "references/common-errors.md",
      "references/permission-setup.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "feishu-doc-editor",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T01:06:10.949Z",
      "expiresAt": "2026-05-19T01:06:10.949Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-doc-editor",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-doc-editor",
        "contentDisposition": "attachment; filename=\"feishu-doc-editor-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "feishu-doc-editor"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/feishu-doc-editor"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/feishu-doc-editor",
    "downloadUrl": "https://openagent3.xyz/downloads/feishu-doc-editor",
    "agentUrl": "https://openagent3.xyz/skills/feishu-doc-editor/agent",
    "manifestUrl": "https://openagent3.xyz/skills/feishu-doc-editor/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/feishu-doc-editor/agent.md"
  }
}
```
## Documentation

### Feishu Document Editor Skill

This skill provides comprehensive guidance for creating and editing Feishu documents using the Feishu OpenAPI.

### 1. App Creation and Configuration

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.

### 2. Get Access Token

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
}

### Extract Document ID

Get document_id from document URL:

Example URL: https://bigdatacenter.feishu.cn/docx/HpK2dtGu9omhMAxV12zcB6i7ngd

document_id = HpK2dtGu9omhMAxV12zcB6i7ngd

### Grant App Document Permission

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.

### Write Text Content

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"
            }
          }
        ]
      }
    }
  ]
}

### Read Document Content

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"
  }
}

### 1. Permission Error (403 Forbidden)

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.

### 2. Missing Access Token (99991661)

Diagnosis: Request header does not carry Authorization: Bearer {token}.
Solution: Ensure tenant_access_token is correctly added to request header.

### 3. Document Not Found (404 Not Found)

Diagnosis: document_id is incorrect or document has been deleted.
Solution: Re-extract document_id from document URL.

### Reference Documentation

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.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: zhuligu
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-12T01:06:10.949Z
- Expires at: 2026-05-19T01:06:10.949Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/feishu-doc-editor)
- [Send to Agent page](https://openagent3.xyz/skills/feishu-doc-editor/agent)
- [JSON manifest](https://openagent3.xyz/skills/feishu-doc-editor/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/feishu-doc-editor/agent.md)
- [Download page](https://openagent3.xyz/downloads/feishu-doc-editor)