Feishu doc search

From autogame-17/feishu-skills · View interactive version

Feishu doc search is an AI agent skill from the GitHub repository autogame-17/feishu-skills. Searches the Feishu (Lark) Drive for documents matching a query. Uses the Feishu Drive Search API to find docs, sheets, and other file types. Returns a JSON array of matches with token, name, type, an

How to use this skill

Skill file

Feishu Doc Search Skill

Description

Searches the Feishu (Lark) Drive for documents matching a query. Uses the Feishu Drive Search API to find docs, sheets, and other file types. Returns a JSON array of matches with token, name, type, and URL for each file. Requires a Feishu app with Drive read permissions.

When to Use

Usage

node skills/feishu-doc-search/index.js --query "search term"

Example

node skills/feishu-doc-search/index.js --query "Q4 roadmap"

Options and Arguments

| Option | Required | Description |

|--------|----------|-------------|

| --query | Yes | Search keyword or phrase |

The search is limited to 5 results by default (hardcoded in the Drive API call). The search type is doc (documents); the code can be extended to support sheet, bitable, mindnote, file, slide, wiki.

Output Format

Prints a JSON array to stdout:

[
  {
    "token": "doc_token",
    "name": "Document Name",
    "type": "doc",
    "url": "https://..."
  }
]

If no documents are found, prints "No documents found." Errors are written to stderr and exit code is 1.

Configuration

Loads .env from workspace root. Required variables:

| Variable | Description |

|----------|-------------|

| FEISHU_APP_ID | Feishu application ID |

| FEISHU_APP_SECRET | Feishu application secret |

The skill uses feishu-common for token acquisition. The Feishu app must have Drive read scope to search files.

Dependencies

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.