#14674: feat(feishu): add feishu_chat tool for chat info/member queries
channel: feishu
stale
size: S
Cluster:
Feishu Integration Enhancements
## Summary
- add new `feishu_chat` tool with actions:
- `members`: query chat member list with pagination and member id type
- `info`: fetch chat metadata
- register `feishu_chat` in the Feishu extension plugin startup
- extend Feishu tools config/types/schema with `tools.chat?: boolean`
- default `tools.chat` to `true` in `resolveToolsConfig`
- add unit coverage for default chat enablement and schema acceptance
## Files changed
- `extensions/feishu/src/chat.ts`
- `extensions/feishu/src/chat-schema.ts`
- `extensions/feishu/index.ts`
- `extensions/feishu/src/types.ts`
- `extensions/feishu/src/tools-config.ts`
- `extensions/feishu/src/config-schema.ts`
- `extensions/feishu/src/tools-config.test.ts`
## Validation
Executed locally:
```bash
pnpm -C /Users/nereo/.openclaw/workspace-nereo/openclaw exec tsc -p tsconfig.json --noEmit
pnpm -C /Users/nereo/.openclaw/workspace-nereo/openclaw exec vitest run \
extensions/feishu/src/tools-config.test.ts \
extensions/feishu/src/channel.test.ts \
extensions/feishu/src/bot.checkBotMentioned.test.ts
```
Result: all checks passed (typecheck clean, 3 test files / 8 tests passing).
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adds a new Feishu tool (`feishu_chat`) with two actions (`members` with pagination and `info` for chat metadata), registers it in the Feishu plugin startup, and extends Feishu tool configuration/types/schema to include a `tools.chat` toggle (defaulting to enabled). It also adds unit tests covering the default enablement and config schema acceptance.
The implementation follows the existing Feishu tool patterns: it resolves the first enabled+configured account, checks the per-account tool config before registering, uses the shared `json()` response shape (`content` + `details`), and calls the Feishu SDK for `im.chat.get` and `im.chatMembers.get`.
<h3>Confidence Score: 5/5</h3>
- This PR appears safe to merge with minimal risk.
- Changes are additive and follow established Feishu tool patterns; config/schema/types are updated consistently and tests cover the new default config behavior. No merge-blocking issues were found in the diff after tracing the surrounding account/tool registration codepaths.
- No files require special attention
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#16337: feat(feishu): sync community plugin updates from clawdbot-feishu v0...
by graydawnc · 2026-02-14
79.2%
#19871: fix(feishu): support multi-account config in bitable tools
by linbojin · 2026-02-18
78.7%
#9268: Fix: Register feishu as official channel in CHAT_CHANNEL_ORDER
by vishaltandale00 · 2026-02-05
76.9%
#16284: fix(feishu): route tool credentials by account parameter
by Yaxuan42 · 2026-02-14
76.7%
#19793: feat(feishu): reply-in-thread, parallel group sessions, and fire-an...
by yinsn · 2026-02-18
76.3%
#15671: fix(feishu): Credentials check bug of Feishu bitable tools when usi...
by zxh0916 · 2026-02-13
75.7%
#22598: feat(feishu): support card action callback handler
by yingyixu · 2026-02-21
75.2%
#16064: feat: add contact-based tool permissions with verification
by jamiequint · 2026-02-14
74.9%
#10675: feat(feishu): add audio message support and fix file upload
by YumoeZhung · 2026-02-06
74.9%
#23261: fix(feishu): bitable tools fail to register with accounts config pa...
by stakeswky · 2026-02-22
74.9%