Skip to content

feat: add im message patch meta api - #2178

Open
91-enjoy wants to merge 1 commit into
larksuite:mainfrom
91-enjoy:feat/add_im_message_patch_meta_api
Open

feat: add im message patch meta api#2178
91-enjoy wants to merge 1 commit into
larksuite:mainfrom
91-enjoy:feat/add_im_message_patch_meta_api

Conversation

@91-enjoy

@91-enjoy 91-enjoy commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

The IM skill did not document the existing Meta API for updating interactive
message cards. This PR adds im messages patch to the domain guide so agents
can discover its constraints and required scope.

Changes

  • Document messages.patch, including supported identities, the 14-day update
    window, and the 30 KB serialized card-content limit
  • Map messages.patch to the required im:message:update scope

Test Plan

  • node scripts/skill-format-check/index.js
  • git diff --check upstream/main...HEAD
  • Verified the agent discovery flow through:
    • ./lark-cli im --help
    • ./lark-cli im messages --help
    • ./lark-cli im messages patch --help
    • ./lark-cli schema im.messages.patch --format json
  • Manually updated an interactive card as a bot with
    ./lark-cli im messages patch

Related Issues

  • None

Summary by CodeRabbit

  • New Features
    • Added support for updating interactive message cards through the messages.patch API.
    • Documented identity, recency, and payload-size constraints for message updates.
    • Added the required message-update permission.

@github-actions github-actions Bot added domain/im PR touches the im domain size/M Single-domain feat or fix with limited business impact labels Aug 4, 2026
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 26eea5d4-e876-46b4-bdc5-7509402e9d6b

📥 Commits

Reviewing files that changed from the base of the PR and between 1df0007 and 98d044f.

📒 Files selected for processing (1)
  • skills/lark-im/SKILL.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • skills/lark-im/SKILL.md

📝 Walkthrough

Walkthrough

The Lark IM skill documentation adds the messages.patch operation for updating app-sent interactive message cards and maps it to the im:message:update permission.

Changes

Interactive message patch

Layer / File(s) Summary
Patch operation contract and permission
skills/lark-im/SKILL.md
Documents messages.patch for user and bot identities, with a 14-day message-age limit and a 30 KB JSON content limit. Adds the im:message:update permission mapping.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the addition of the IM messages.patch Meta API documentation and schema support.
Description check ✅ Passed The description includes the required summary, changes, test plan, and related issues sections with specific verification details.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@91-enjoy
91-enjoy force-pushed the feat/add_im_message_patch_meta_api branch from 1df0007 to 98d044f Compare August 4, 2026 08:44
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

PR Quality Summary

CI did not complete successfully. Use the failed check links below to decide whether this PR needs a code change or a rerun.

CI status

  • Workflow conclusion: cancelled.

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

🚀 PR Preview Install Guide

🧰 CLI update

npm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@98d044fe0512d57e57201a4e9fd4e2f6ff75f73c

🧩 Skill update

npx skills add 91-enjoy/cli#feat/add_im_message_patch_meta_api -y -g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain/im PR touches the im domain size/M Single-domain feat or fix with limited business impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant