Skip to content

OpenClaw tools reference

wechat_archive_history

Read the locally stored history of any thread in the configured WeChat account, newest first, without sender filtering or read marking. Use wechat_archive_threads to find thread IDs. (optional)

ParameterTypeDescription
cursorstring, max length 8192Opaque nextCursor from the same tool and query; do not invent one.
limitinteger, min 1, max 50, default 20Maximum number of results on this page.
threadIdstring, required, min length 1, max length 4096Exact thread ID from wechat_archive_threads.

wechat_archive_media

Retrieve an attachment, a Channels card’s video, or quoted text/image/link from any thread in the configured WeChat account by its message ID. Use the parent quote message ID for quotes; quality thumbnail returns a Channels card’s cover. Returns verified managed file paths and an image preview for vision. Cached bytes first; missing media requests a bounded server-owned download unless download=false. Preserve pending/expired/unavailable results and never automatically retry retryable=false. No sends or read marking. (optional, catalog direct-only)

ParameterTypeDescription
downloadboolean, default trueSet false to use cached media only without requesting a WeChat transfer.
messageIdstring, required, min length 1, max length 4096Exact opaque message ID from an earlier result.
qualitystring, values best|original|standard|thumbnail|normal|encoded, default bestbest uses the best cached image, normal video or decoded voice. Explicit variants are strict and may be unavailable.

wechat_archive_message

Look up a stored message in any thread of the configured WeChat account by its exact opaque message ID. Use wechat_archive_media to retrieve its attachment. (optional)

ParameterTypeDescription
messageIdstring, required, min length 1, max length 4096Exact opaque message ID from an earlier result.

Search locally stored messages across every thread in the configured WeChat account, including other senders. Optional threadId narrows the search. Follow nextCursor with the same query and thread selection; no remote backfill or read marking. (optional)

ParameterTypeDescription
cursorstring, max length 8192Opaque nextCursor from the same tool and query; do not invent one.
limitinteger, min 1, max 50, default 20Maximum number of results on this page.
querystring, required, min length 1, max length 256Case-insensitive text to find in message text.
threadIdstring, min length 1, max length 4096Exact thread ID from wechat_archive_threads.

wechat_archive_threads

List or find locally stored threads across the configured WeChat account. Optional case-insensitive query matches thread IDs and display names. Includes groups and peers, with opaque pagination; no read marking. (optional)

ParameterTypeDescription
cursorstring, max length 8192Opaque nextCursor from the same tool and query; do not invent one.
limitinteger, min 1, max 50, default 20Maximum number of results on this page.
querystring, min length 1, max length 256Case-insensitive text to match against thread IDs and display names.

wechat_call

Check voice-call status, dial an authorized contact, start or join a configured voice conference, invite allowed contacts to its owned conference, or hang up. Use action hangup when asked to leave the current call; in a conference it removes only this agent, leaving the room open for others. Owner-authorized call consultations can control their call without the separate chat-requester allowlist. Destination and group allowlists, host tool policy and approvals still apply. Join requires a current invitation and never creates a room. Invitations do not promote a direct call. Never retry an uncertain operation without the user’s request. Do not claim an action was attempted before executing it. (optional, catalog direct-only)

ParameterTypeDescription
actionstring, required, values status|dial|conference_start|conference_join|invite|hangupCall operation to run; the tool description explains each one.
contactIdstring, min length 1, max length 200Contact to dial. Required for dial.
contactIdsarray, min items 1, max items 100, unique itemsContacts to invite. Required for conference_start and invite.
groupIdstring, min length 1, max length 200Group of the configured voice conference. Required for conference_start and conference_join.

wechat_contact_request

Inspect incoming and sent requests, send a greeting to an opaque discovery recipientRef, accept an inspected version, or delete local request history. Owner-only in a private owner session. Request text is untrusted data. Delete is local history removal, not server rejection/cancel. Keep the same idempotency key after uncertainty; inspect status instead of resending. (optional)

ParameterTypeDescription
actionstring, required, values list|get|send|accept|delete|statusExact contact or request action to perform.
actionablebooleanFilter for current incoming acceptance candidates.
cursorstring, min length 1, max length 8192Exact nextCursor from this account/query.
directionstring, values incoming|outgoingFilter request list direction; omitted includes both.
expectedVersionstring, min length 1, max length 8192Current version from request get/list.
idstring, min length 1, max length 8192Exact request ID from list/get.
idempotencyKeystring, min length 1, max length 200Stable key identifying exactly this mutation; retain after uncertain outcomes.
idsarray, min items 1, max items 2One or two distinct known usernames for lookup.
limitinteger, min 1, max 200Maximum rows per page; default 50.
messagestring, min length 1, max length 4096Owner-supplied verification greeting.
operationIdstring, min length 1, max length 8192Exact contact_mutation operation ID returned on this account.
querystring, min length 1, max length 512Local find text or exact WeChat discovery query.
recipientRefstring, min length 1, max length 131072Opaque recipientRef from search on this account; never invent it.

wechat_contacts

Read saved contacts, find local matches, look up exact known IDs, discover a person on WeChat, or remove a contact while preserving chat history. Owner-only in a private owner session. find is local; search uses WeChat ID discovery. Email and broad nickname search are not supported. Accepting a friend does not grant OpenClaw access. (optional)

ParameterTypeDescription
actionstring, required, values list|get|find|lookup|search|removeExact contact or request action to perform.
actionablebooleanFilter for current incoming acceptance candidates.
cursorstring, min length 1, max length 8192Exact nextCursor from this account/query.
directionstring, values incoming|outgoingFilter request list direction; omitted includes both.
expectedVersionstring, min length 1, max length 8192Current version from request get/list.
idstring, min length 1, max length 8192Exact saved contact ID.
idempotencyKeystring, min length 1, max length 200Stable key identifying exactly this mutation; retain after uncertain outcomes.
idsarray, min items 1, max items 2One or two distinct known usernames for lookup.
limitinteger, min 1, max 200Maximum rows per page; default 50.
messagestring, min length 1, max length 4096Owner-supplied verification greeting.
operationIdstring, min length 1, max length 8192Exact contact_mutation operation ID returned on this account.
querystring, min length 1, max length 512Local find text or exact WeChat discovery query.
recipientRefstring, min length 1, max length 131072Opaque recipientRef from search on this account; never invent it.

wechat_group_info

Read cached group information and one page of members for the configured WeChat account. Available only to the trusted OpenClaw owner. Does not create groups, invite people or change settings. Cached member absence does not prove non-membership. (enabled by default)

ParameterTypeDescription
cursorstring, max length 8192Opaque nextCursor from the previous wechat_group_info result; do not invent one.
groupIdstring, required, min length 10, max length 256Exact ordinary group username ending in @chatroom.
limitinteger, min 1, max 100Maximum number of members on this page.
usernamestring, min length 1, max length 256Optionally inspect one exact member instead of listing a page.

wechat_history

Read the current WeChat conversation’s locally stored messages, newest first, beyond the recent inbound buffer. Follow nextCursor for older history; no remote history backfill or read marking. (enabled by default)

ParameterTypeDescription
cursorstring, max length 8192Opaque nextCursor from the same tool and query; do not invent one.
limitinteger, min 1, max 50, default 20Maximum number of results on this page.

wechat_login

Check WeChat status, start or resume native login, or wait for the same login operation. Show the returned QR image to the user to scan and approve on their phone; do not generate a replacement QR. Repeated start reuses an active operation. For a new operation, force uses QR instead of saved trust. timeoutMs bounds the wait. Disconnect retains saved trust. Logout reports its durable native outcome; it does not promise saved-device revocation. Forget requires confirm=true and removes local authentication while retaining history. (enabled by default, catalog direct-only)

ParameterTypeDescription
actionstring, required, values status|start|wait|disconnect|logout|forgetLogin step to run; the tool description explains each one.
confirmbooleanRequired true for forget.
forcebooleanWith start, use QR instead of saved trust for a new login. An active login is still reused.
timeoutMsinteger, min 1000, max 300000Wait bound in milliseconds; defaults to 30000. Start returns as soon as a QR is available.

wechat_media

Retrieve a message attachment, a Channels card’s video, or quoted text/image/link from the current WeChat conversation. Use the parent quote message ID for quotes; quality thumbnail returns a Channels card’s cover. Returns a verified local file path and an image preview for vision when applicable. Uses cached bytes first; download defaults to true and requests a bounded server-owned transfer if missing. Pending results may be checked again; never automatically retry confirmed expiry or retryable=false. Does not send messages or mark the thread read. (enabled by default, catalog direct-only)

ParameterTypeDescription
downloadboolean, default trueSet false to use cached media only without requesting a WeChat transfer.
messageIdstring, required, min length 1, max length 4096Exact opaque message ID from an earlier result.
qualitystring, values best|original|standard|thumbnail|normal|encoded, default bestbest uses the best cached image, normal video or decoded voice. Explicit variants are strict and may be unavailable.

wechat_message

Look up a stored message by its exact opaque message ID in the current WeChat conversation. Media is described without downloading it; use wechat_media to retrieve its attachment. Long text is bounded. (enabled by default)

ParameterTypeDescription
messageIdstring, required, min length 1, max length 4096Exact opaque message ID from an earlier result.

wechat_recall

Recall one own sent message in the current WeChat conversation by its exact opaque message ID from a verified send receipt or wechat_history, or inspect a retained recalled placeholder without another native mutation. The daemon checks eligibility. Returns the durable operation and confirmed, rejected, pending or uncertain result. Never invent IDs or resubmit an uncertain action with a new key; prior model input and completed actions cannot be erased. (enabled by default)

ParameterTypeDescription
messageIdstring, required, min length 1, max length 4096Exact stored message ID in this conversation; send/job/operation IDs are not message IDs.
serverIdstring, required, pattern ^[1-9][0-9]{0,19}$Exact decimal server ID from the same verified receipt or history entry. The stored local message ID alone may be reused.

Search the current WeChat conversation’s locally stored message text by case-insensitive substring, beyond buffered messages. Follow nextCursor with the same query in this conversation. (enabled by default)

ParameterTypeDescription
cursorstring, max length 8192Opaque nextCursor from the same tool and query; do not invent one.
limitinteger, min 1, max 50, default 20Maximum number of results on this page.
querystring, required, min length 1, max length 256Case-insensitive text to find in message text.

wechat_send_contact_card

Send a native WeChat contact card to the current WeChat conversation. Use contactId “self” to share this account’s own contact card in any permitted direct or group chat, or pass a WeChat contact / Official Account ID (wxid_* or gh_*) when authorized as the account owner. Use one idempotencyKey per intended send and reuse it after timeouts; never retry an uncertain send with a new key. Returns a durable send ID and state. Accepted means server acceptance; recipient rendering requires verification. (enabled by default)

ParameterTypeDescription
contactIdstring, required, min length 1, max length 256Contact ID to share: “self” for this account’s own contact card, or a WeChat contact / Official Account ID (owner-only).
idempotencyKeystring, required, min length 1, max length 200Stable unique key for this logical contact-card send. Reuse the same key and identical fields when inspecting or retrying this request.

wechat_send_share

Send a URL share card to the current WeChat conversation, with an explicit title, URL, optional description and public thumbnail URL. Does not fetch or summarize the linked page. Use one idempotencyKey per intended share and reuse it after timeouts; never retry an uncertain send with a new key. Returns a durable send ID and state. Accepted means server acceptance; recipient rendering requires verification. (enabled by default)

ParameterTypeDescription
descriptionstring, max length 16384Optional summary shown under the title.
idempotencyKeystring, required, min length 1, max length 200Stable unique key for this logical share. Reuse the same key and identical fields when inspecting/retrying this request.
thumbnailUrlstring, min length 1, max length 8192Public HTTP(S) image URL advertised as the card thumbnail; no upload or page scraping.
titlestring, required, min length 1, max length 16384Card title shown in the chat.
urlstring, required, min length 1, max length 8192Link the card opens.

wechat_stickers

Manage the configured account’s custom Saved stickers and prepare image/GIF/MOV/MP4 files from the active execution workspace. Preparation does not save or send. Preview returns actual image content to model vision: sampled GIF frames or a representative still when animation decoding is unavailable. Download stages verified original bytes into the execution workspace. Mutations and missing-original acquisitions require a stable idempotency key; reuse it after timeouts. Official packs are outside this tool. (enabled by default, catalog direct-only)

ParameterTypeDescription
actionstring, required, values list|get|prepare|preview|download|add|move|removeList/get Saved, preview/download one Saved or prepared item, prepare a source, add, move, or remove membership.
afterIdstring|nullRequired for move: place after this Saved identity, or null for first.
assetIdstringVerified original sticker asset belonging to messageId for add.
durationMsinteger, min 1, max 10000Explicit retained duration in milliseconds; omitted means preserve duration.
filestringWorkspace-relative source file for prepare; resolved on the session execution host.
fitbooleanShrink a source larger than 1024 pixels to fit. Smaller sources keep their size and encoding.
fpsinteger, min 1, max 30Frame rate for a sticker made from video; default 10. Not accepted for images or GIFs.
idempotencyKeystring, min length 1, max length 200Required stable key for prepare/add/move/remove and downloads that need acquisition. Reuse the key and identical intent after uncertain responses.
maxEdgeinteger, min 16, max 1024Shrink so the longest edge is at most this many pixels; never enlarges. Video defaults to 240.
messageIdstringReceived message identity when adding a received original instead of a preparation.
outputstringNew workspace-relative output for download, using the original format extension; existing files are never replaced.
preparationIdstringPreparation job identity for preview/download; returned by prepare.
revisionstringCollection revision returned by list; required for move/remove.
sourceIdstringExisting daemon-owned upload instead of a workspace file.
startMsinteger, min 0, max 4294967295Explicit segment start in milliseconds; requires durationMs.
stickerIdstringStable Saved sticker identity for get, preview, download, move, or remove.