release
Publish a new release of the Feishu plugin. Use when the user asks to release, publish, or…
Local E2E debug and test framework for clawd-feishu plugin development. Use when debugging message flow, testing bot responses, verifying Feishu web UI interactions, or performing end-to-end validation of the OpenClaw-Feishu integration during development.
$ npx -y skills add m1heng/clawdbot-feishu --skill feishu-e2e-test --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/feishu-e2e-testContext preview
The summary Claude sees to decide when to auto-load this skill.
Local E2E debug and test framework for clawd-feishu plugin development. Use when debugging message flow, testing bot responses, verifying Feishu web UI interactions, or performing end-to-end validation of the OpenClaw-Feishu integration during development.
name: feishu-e2e-test description: Local E2E debug and test framework for clawd-feishu plugin development. Use when debugging message flow, testing bot responses, verifying Feishu web UI interactions, or performing end-to-end validation of the OpenClaw-Feishu integration during development. allowed-tools: Bash(agent-browser:*)
Local development testing using `agent-browser` CLI to interact with Feishu web app.
**Every time you modify extension code, you MUST restart OpenClaw Gateway for changes to take effect.**
# Restart gateway (required after code changes) openclaw gateway restart # Check if gateway is running ps aux | grep openclaw # View gateway logs tail -f ~/.openclaw/logs/gateway.log
Always use `--headed` mode so user can see the browser and help with login:
agent-browser --headed --session feishu-test open "https://feishu.cn/next/messenger"
Feishu web has complex UI that makes direct clicking unreliable. Use these strategies:
Clicking on chat list items often misses or selects wrong item. Use global search:
# Open search agent-browser --session feishu-test press "Meta+k" # Type bot name letter by letter agent-browser --session feishu-test press "o" agent-browser --session feishu-test press "p" agent-browser --session feishu-test press "e" agent-browser --session feishu-test press "n" # Select first result agent-browser --session feishu-test press "Enter"
After entering a chat, press "/" to focus the message input:
agent-browser --session feishu-test press "/" agent-browser --session feishu-test press "Backspace" # Remove the "/" # Then type your message
The `type` command often fails with special characters. Use `press` for each character:
# Instead of: agent-browser type "ping" agent-browser --session feishu-test press "p" agent-browser --session feishu-test press "i" agent-browser --session feishu-test press "n" agent-browser --session feishu-test press "g"
**Chinese characters cannot be typed with `press` command.** Use English only:
# BAD - Chinese won't render for char in $(echo "读取文档" | grep -o .); do agent-browser --session feishu-test press "$char" # Will fail silently done # GOOD - Use English for char in r e a d " " d o c; do agent-browser --session feishu-test press "$char" done
Spaces must be quoted as `" "`:
# Type "read doc" for char in r e a d " " d o c; do agent-browser --session feishu-test press "$char" done
Use a for loop to type URLs or long text:
# Type a full URL url="https://feishu.cn/docx/YOUR_DOC_TOKEN" for char in $(echo "$url" | grep -o .); do agent-browser --session feishu-test press "$char" 2>/dev/null || true done
Do NOT use `eval` to set input values - it can break the page:
# BAD - will corrupt page agent-browser eval "document.activeElement.innerText = 'text'" # GOOD - use keyboard input agent-browser press "t" && agent-browser press "e" ...
When testing document tools, send full URLs rather than just document IDs:
# Better - bot recognizes as document link "https://feishu.cn/docx/YOUR_DOC_TOKEN" # Less reliable - may not trigger tool "read YOUR_DOC_TOKEN"
Monitor gateway logs to verify tool execution:
tail -f ~/.openclaw/logs/gateway.log
Key log entries:
Ask bot explicitly to confirm tool usage:
use feishu_doc tool to read YOUR_DOC_TOKEN
Look for confirmation in response like: > "我已经用 **Feishu Doc Tool** 读过了这个文档"
Access denied. One of the following scopes is required: [contact:contact.base:readonly...]
This means bot lacks contact permission. Doesn't affect core messaging but prevents resolving sender names.
# Error logs tail -f ~/.openclaw/logs/gateway.err.log # All log files ls -la ~/.openclaw/logs/ # Raw agent session records (tool calls, responses, etc.) ls ~/.openclaw/agents/main/sessions/ # View specific session cat ~/.openclaw/agents/main/sessions/<session-id>.json
1. Start browser: `agent-browser --headed --session feishu-test open "https://feishu.cn/next/messenger"` 2. User scans QR to login 3. Search for bot: `Cmd+K` → type bot name → `Enter` 4. Focus input: press `/` then `Backspace` 5. Type message (English only, letter by letter) 6. Press `Enter` to send 7. Wait 10-20 seconds for response 8. Take screenshot and check logs to verify
# 1. Focus input agent-browser --session feishu-test press "/" && \ agent-browser --session feishu-test press "Backspace" # 2. Type full doc URL url="https://feishu.cn/docx/YOUR_DOC_ID" for char in $(echo "$url" | grep -o .); do agent-browser --session feishu-test press "$char" 2>/dev/null || true done # 3. Send agent-browser --session feishu-test press "Enter" # 4. Wait and check logs sleep 15 && tail -30 ~/.openclaw/logs/gateway.log
Feishu/Lark (飞书) channel plugin for OpenClaw. 中文社区资料 - 配置教程、常见问题、使用技巧:Wiki Contributing / 贡献指南: CONTRIBUTING.md Issue Reporting / 问题反馈: Please check Discussions first for common solutions, then open a structured Issue Form if needed.
Repo: m1heng/clawdbot-feishu
Publish a new release of the Feishu plugin. Use when the user asks to release, publish, or…
Feishu chat operations including group announcement reading/writing and group chat management.
Feishu document read/write operations + comment management. Activate when user mentions…
Feishu cloud storage file management. Activate when user mentions cloud space, folders, drive.
Feishu message reading. Activate when user mentions reading messages, chat history, message…
Feishu permission management for documents and files. Activate when user mentions sharing,…