openclaw - 💡(How to fix) Fix [Bug]: Feishu channel tools (feishu_doc/perm/wiki/drive) registered via registerFull but invisible in agent tool list on v2026.5.18 [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#84241Fetched 2026-05-20 03:42:16
View on GitHub
Comments
2
Participants
2
Timeline
9
Reactions
1
Author
Timeline (top)
labeled ×6commented ×2closed ×1

Fix Action

Workaround

Using feishu-api-fallback Python script that calls Feishu Open API directly via exec tool, covering create/write/append/upload_image/list_blocks operations.

Code Example

{
  "channels": {
    "feishu": {
      "enabled": true,
      "tools": { "perm": true, "doc": true, "drive": true, "chat": true }
    }
  },
  "plugins": {
    "entries": {
      "feishu": { "enabled": true }
    }
  }
}

---

const pluginToolsOnly = includeOpenClawTools || !includePluginTools 
  ? [] 
  : resolveOpenClawPluginToolsForOptions({...})

---

if (!options?.disablePluginTools) {
    allTools = [...tools, ...resolveOpenClawPluginToolsForOptions({...})]
}
RAW_BUFFERClick to expand / collapse

Bug description

Feishu channel tools (feishu_doc/feishu_perm/feishu_wiki/feishu_drive) are registered by the feishu plugin via api.registerTool() in registerFull, but never appear in any agent's callable tool list.

This is a continuation of the closed/locked #49496, which was marked fixed in v2026.4.22 but the issue persists on v2026.5.18.

Environment

  • OpenClaw: 2026.5.18 (50a2481)
  • feishu plugin: @openclaw/feishu 2026.5.18 (loaded from ~/.openclaw/npm/node_modules/)
  • Channel: Feishu DM, websocket mode
  • Connection: 3 feishu accounts (main/luban/baixs), all affected

Config

{
  "channels": {
    "feishu": {
      "enabled": true,
      "tools": { "perm": true, "doc": true, "drive": true, "chat": true }
    }
  },
  "plugins": {
    "entries": {
      "feishu": { "enabled": true }
    }
  }
}

All 3 agents have "tools": { "profile": "full" } with no deny entries matching feishu tools.

What we verified

  1. Plugin loads: openclaw plugins list shows feishu as enabled
  2. registerFull called: index.js confirms registerFull(api) → registerFeishuDocTools(api) → api.registerTool(factory)
  3. Tool factory returns definition: code shows it returns {name: "feishu_doc", label: "Feishu Doc", parameters: FeishuDocSchema, execute: async fn}
  4. Config merge: account.config.tools correctly inherits from channels.feishu.tools
  5. Not stale session: tested with fresh /new sessions — same result ❌
  6. Not profile issue: removed global tools.profile: "coding" (was overridden by per-agent "full" anyway) — no change ❌

Code observation

The tool injection logic has changed between 5.12 and 5.18:

5.12 (when #49496 was filed):

const pluginToolsOnly = includeOpenClawTools || !includePluginTools 
  ? [] 
  : resolveOpenClawPluginToolsForOptions({...})

5.18 (current):

if (!options?.disablePluginTools) {
    allTools = [...tools, ...resolveOpenClawPluginToolsForOptions({...})]
}

The 5.18 fix is correctly structured (include plugin tools by default), but the delivery chain (resolveOpenClawPluginToolsForOptions → resolvePluginTools → applyPluginToolDeliveryDefaults) still drops feishu tools before they reach the agent tool list.

Workaround

Using feishu-api-fallback Python script that calls Feishu Open API directly via exec tool, covering create/write/append/upload_image/list_blocks operations.

Checklist

  • I have read the troubleshooting guide
  • I have tested with a fresh /new session
  • I have confirmed plugin is enabled and loaded correctly

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: Feishu channel tools (feishu_doc/perm/wiki/drive) registered via registerFull but invisible in agent tool list on v2026.5.18 [2 comments, 2 participants]