Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/larksuite/openclaw-lark
/ functions
Functions
1,118 in github.com/larksuite/openclaw-lark
⨍
Functions
1,118
◇
Types & classes
241
↓ 1 callers
Function
dispatchSyntheticMessage
* Dispatch a synthetic-target message via the buffered block dispatcher * while discarding every delivered payload. * * Synthetic contexts (e.g. VC
src/messaging/inbound/dispatch.ts:140
↓ 1 callers
Function
doRefreshToken
(opts: UATCallOptions, stored: StoredUAToken)
src/core/uat-client.ts:69
↓ 1 callers
Method
doUpload
(url: string)
src/card/image-resolver.ts:111
↓ 1 callers
Function
downloadMessageResourceFeishu
(params: { cfg: OpenClawConfig; messageId: string; fileKey: string; type: 'image' | 'file'; accountI
src/messaging/outbound/media.ts:288
↓ 1 callers
Function
downloadResources
(params: { cfg: ClawdbotConfig; messageId: string; resources: ResourceDescriptor[]; maxBytes: number;
src/messaging/inbound/media-resolver.ts:25
↓ 1 callers
Function
emitSecurityWarnings
( _cfg: ClawdbotConfig, _logger: { warn?: (msg: string) => void; info?: (msg: string) => void }, )
src/core/security-check.ts:225
↓ 1 callers
Function
encodeFeishuRouteTarget
(params: { target: string; replyToMessageId?: string; threadId?: string | number | null; })
src/core/targets.ts:110
↓ 1 callers
Function
enrichMessages
( messages: FormattedMessage[], items: any[], chatMap: Map<string, ChatContext>, nameResolver: (openId
src/tools/oapi/im/message-read.ts:451
↓ 1 callers
Function
ensureRuntime
(runtime: RuntimeEnv | undefined)
src/messaging/inbound/dispatch-context.ts:55
↓ 1 callers
Function
escapeToolUseMarkdownText
(value: string)
src/card/builder.ts:980
↓ 1 callers
Method
evict
()
src/messaging/inbound/sentinel-store.ts:78
↓ 1 callers
Method
evict
()
src/core/chat-info-cache.ts:93
↓ 1 callers
Function
expand
( accountId: string | undefined, messageId: string, resolveUserName?: (openId: string) => string | undef
src/messaging/converters/merge-forward.ts:60
↓ 1 callers
Function
expandAutoMode
(params: { mode: ReplyModeValue; streaming: boolean | undefined; chatType?: 'p2p' | 'group'; })
src/card/reply-mode.ts:58
↓ 1 callers
Function
extractApiCode
Returns the numeric Feishu API error code from a thrown error, or null.
src/messaging/inbound/user-name-cache.ts:178
↓ 1 callers
Function
extractBasics
(data: unknown)
src/channel/interactive-dispatch.ts:32
↓ 1 callers
Method
extractBody
(card: Obj, _schema: number)
src/messaging/converters/interactive/card-converter.ts:105
↓ 1 callers
Function
extractBuffer
(res: any)
src/tools/tat/im/resource.ts:67
↓ 1 callers
Function
extractBufferFromResponse
* Extract a Buffer from various SDK response formats. * * The Feishu Node SDK can return binary data in several shapes depending * on the runtime e
src/messaging/outbound/media.ts:167
↓ 1 callers
Method
extractChartSummary
(prop: Obj, chartType: string)
src/messaging/converters/interactive/card-converter.ts:1015
↓ 1 callers
Function
extractDetailFromParams
( params: Record<string, unknown> | undefined, descriptor: ToolDescriptor, )
src/card/tool-use-display.ts:254
↓ 1 callers
Function
extractDetailFromSummary
(summaryText: string | undefined, descriptor: ToolDescriptor)
src/card/tool-use-display.ts:270
↓ 1 callers
Function
extractDocumentId
* 从文档 URL 或纯 ID 中提取 document_id
src/tools/oapi/drive/doc-media.ts:93
↓ 1 callers
Function
extractElementText
* Extract plain text from comment element arrays.
src/messaging/inbound/comment-context.ts:57
↓ 1 callers
Function
extractFirstCodeSpan
(value: string)
src/card/tool-use-display.ts:579
↓ 1 callers
Function
extractFirstQuotedText
(value: string)
src/card/tool-use-display.ts:584
↓ 1 callers
Function
extractFirstUrl
(value: string)
src/card/tool-use-display.ts:589
↓ 1 callers
Method
extractHeaderTitle
(header: Obj, _schema: number)
src/messaging/converters/interactive/card-converter.ts:112
↓ 1 callers
Function
extractHighestPriorityScope
* Extract the highest-priority permission from a scope list. * Returns the permission with the lowest priority number (read > write > other).
src/core/permission-url.ts:36
↓ 1 callers
Function
extractHttpStatus
* Best-effort extraction of an HTTP status code from an unknown error. * Returns `undefined` when the error does not carry status information.
src/messaging/outbound/media.ts:82
↓ 1 callers
Function
extractInlineVerboseMode
(body?: string)
src/card/tool-use-config.ts:83
↓ 1 callers
Method
extractLineBarSummary
(chartSpec: Obj, values: unknown[])
src/messaging/converters/interactive/card-converter.ts:1037
↓ 1 callers
Function
extractPermissionScopes
(msg: string)
src/core/permission-url.ts:74
↓ 1 callers
Method
extractPieSummary
(chartSpec: Obj, values: unknown[])
src/messaging/converters/interactive/card-converter.ts:1054
↓ 1 callers
Function
extractPlainText
Extract plain text from post-style content blocks.
src/messaging/converters/todo.ts:12
↓ 1 callers
Method
extractProperty
(elem: Obj)
src/messaging/converters/interactive/card-converter.ts:163
↓ 1 callers
Function
extractRawTextFromEvent
(event: FeishuMessageEvent)
src/channel/abort-detect.ts:205
↓ 1 callers
Function
extractRecentErrors
(logPath: string)
src/commands/diagnose.ts:100
↓ 1 callers
Function
extractSubCode
(msg: string)
src/card/card-error.ts:69
↓ 1 callers
Method
extractTableCellValue
(data: unknown)
src/messaging/converters/interactive/card-converter.ts:1135
↓ 1 callers
Method
extractTextStyle
(prop: Obj)
src/messaging/converters/interactive/card-converter.ts:1154
↓ 1 callers
Function
extractTexts
(elements: unknown[], out: string[])
src/messaging/converters/interactive/legacy.ts:29
↓ 1 callers
Function
extractThinkingContent
* Extract content from `<think>`, `<thinking>`, `<thought>` blocks. * Handles both closed and unclosed (streaming) tags.
src/card/builder.ts:109
↓ 1 callers
Function
fetchCardContent
(messageId: string, larkClient: LarkClientType)
src/messaging/inbound/parse-io.ts:43
↓ 1 callers
Function
fetchChatContexts
( client: ToolClient, chatIds: string[], logInfo: (msg: string) => void, logWarn: (msg: string) => voi
src/tools/oapi/im/message-read.ts:393
↓ 1 callers
Function
fetchComment
* Fetch a single comment with its replies.
src/messaging/inbound/comment-context.ts:129
↓ 1 callers
Function
fetchDocTitle
* Fetch document title via Drive file meta API.
src/messaging/inbound/comment-context.ts:103
↓ 1 callers
Function
fetchRemoteImageBuffer
(url: string)
src/messaging/outbound/media.ts:920
↓ 1 callers
Function
findPendingStepIndex
( steps: ToolUseTraceStep[], toolName: string, params?: Record<string, unknown>, toolCallId?: string,
src/card/tool-use-trace-store.ts:182
↓ 1 callers
Function
findQuestionByChat
* Targeted chat-scoped fallback: exact accountId:chatId match via secondary index. * Used when operationId cannot be extracted from the card callback
src/tools/ask-user-question.ts:160
↓ 1 callers
Function
flattenValues
(values: unknown[][] | undefined)
src/tools/oapi/sheets/sheet.ts:232
↓ 1 callers
Function
formatDiagReportCli
(report: DiagReport)
src/commands/diagnose.ts:878
↓ 1 callers
Function
formatDiagReportText
(report: DiagReport)
src/commands/diagnose.ts:369
↓ 1 callers
Function
formatDmScopeWarning
User-facing dmScope warning block (markdown).
src/core/security-check.ts:110
↓ 1 callers
Function
formatDurationLabel
(durationMs: number)
src/card/tool-use-display.ts:571
↓ 1 callers
Function
formatMentionList
(mentions: ReturnType<typeof nonBotMentions>)
src/messaging/inbound/dispatch-builders.ts:61
↓ 1 callers
Function
formatMessageItem
( item: ApiMessageItem, accountId: string, nameResolver: (openId: string) => string | undefined, ctxOv
src/tools/oapi/im/format-messages.ts:78
↓ 1 callers
Function
formatMillisecondsToISO8601
(milliseconds: string)
src/messaging/converters/interactive/card-utils.ts:12
↓ 1 callers
Function
formatReasoningDuration
(ms: number)
src/card/builder.ts:164
↓ 1 callers
Function
formatSentinelFeedback
(sentinels: SentinelEntry[] | undefined)
src/messaging/inbound/dispatch-builders.ts:70
↓ 1 callers
Function
formatSubTree
* Recursively format a sub-tree of messages rooted at `parentId`. * * For `merge_forward` children this recurses into `formatSubTree` * directly (n
src/messaging/converters/merge-forward.ts:181
↓ 1 callers
Function
formatTimestamp
* Convert a millisecond timestamp to RFC 3339 format with +08:00 offset * (Beijing time).
src/messaging/converters/merge-forward.ts:258
↓ 1 callers
Function
formatTimestamp
* 格式化时间戳为 "YYYY-MM-DD HH:mm:ss"
src/commands/doctor.ts:271
↓ 1 callers
Function
formatToolStep
( source: ToolStepSource, options: { showFullPaths: boolean; showResultDetails: boolean }, )
src/card/tool-use-display.ts:210
↓ 1 callers
Function
formatToolUseDuration
(ms: number)
src/card/builder.ts:172
↓ 1 callers
Function
formatToolUseStepStatus
(status: ToolUseDisplayStep['status'])
src/card/builder.ts:957
↓ 1 callers
Function
formatTraceOutput
(lines: string[], messageId: string)
src/commands/diagnose.ts:506
↓ 1 callers
Method
fromCredentials
* Create an ephemeral `LarkClient` from bare credentials. * The instance is **not** added to the global cache — suitable for * one-off probe / d
src/core/lark-client.ts:213
↓ 1 callers
Function
generatePermissionTable
* 生成权限对照表
src/commands/doctor.ts:467
↓ 1 callers
Method
get
(openId: string)
src/messaging/inbound/user-name-cache-store.ts:74
↓ 1 callers
Function
getActiveDispatcher
(key: string)
src/channel/chat-queue.ts:45
↓ 1 callers
Method
getByDedupKey
通过去重键查询(避免发送重复卡片)
src/tools/auto-auth.ts:371
↓ 1 callers
Method
getByOperationId
通过 operationId 查询(card action 回调用)
src/tools/auto-auth.ts:366
↓ 1 callers
Function
getChatInfoCache
(accountId: string)
src/core/chat-info-cache.ts:107
↓ 1 callers
Function
getChatMap
(chatId: string)
src/messaging/inbound/mention-registry.ts:39
↓ 1 callers
Function
getChatTypeFeishu
(params: { cfg: ClawdbotConfig; chatId: string; accountId?: string; })
src/core/chat-info-cache.ts:205
↓ 1 callers
Function
getFeishuHelpI18n
()
src/commands/index.ts:158
↓ 1 callers
Method
getImageToken
(imageID: string)
src/messaging/converters/interactive/card-converter.ts:1193
↓ 1 callers
Function
getInboundHandler
()
src/messaging/inbound/handler-registry.ts:33
↓ 1 callers
Function
getLarkRuntime
()
src/core/runtime-store.ts:27
↓ 1 callers
Method
getMany
(openIds: string[])
src/messaging/inbound/user-name-cache-store.ts:124
↓ 1 callers
Function
getMcpEndpoint
(brand?: LarkBrand)
src/tools/mcp/shared.ts:134
↓ 1 callers
Function
getPlatform
()
src/core/version.ts:46
↓ 1 callers
Function
getTokenType
* 从 token 中提取类型前缀(如 "sht"、"wik"、"doc" 等)。 * 先检测新版格式(第 5/10/15 位),再回退旧版格式(前 3 位)。
src/tools/oapi/sheets/sheet.ts:105
↓ 1 callers
Function
getTraceMeta
()
src/core/lark-logger.ts:76
↓ 1 callers
Function
getValidAccessToken
(opts: UATCallOptions)
src/core/uat-client.ts:183
↓ 1 callers
Function
handleCardAction
(data: unknown, cfg: ClawdbotConfig, accountId: string)
src/tools/auto-auth.ts:746
↓ 1 callers
Function
handleCardActionEvent
(ctx: MonitorContext, data: unknown)
src/channel/event-handlers.ts:407
↓ 1 callers
Function
handleCommentEvent
(ctx: MonitorContext, data: unknown)
src/channel/event-handlers.ts:352
↓ 1 callers
Function
handleDelete
(cfg: OpenClawConfig, params: Record<string, unknown>, accountId?: string)
src/messaging/outbound/actions.ts:402
↓ 1 callers
Function
handleDownload
( p: DownloadParams, client: ReturnType<ReturnType<typeof createToolContext>['toolClient']>, log: Return
src/tools/oapi/drive/doc-media.ts:333
↓ 1 callers
Function
handleFeishuCommentEvent
(params: { cfg: ClawdbotConfig; event: FeishuDriveCommentEvent; botOpenId?: string; runtime?: RuntimeE
src/messaging/inbound/comment-handler.ts:44
↓ 1 callers
Function
handleFeishuReaction
(params: { cfg: ClawdbotConfig; event: FeishuReactionCreatedEvent; botOpenId?: string; runtime?: Runti
src/messaging/inbound/reaction-handler.ts:187
↓ 1 callers
Function
handleInsert
( p: InsertParams, client: ReturnType<ReturnType<typeof createToolContext>['toolClient']>, log: ReturnTy
src/tools/oapi/drive/doc-media.ts:174
↓ 1 callers
Function
handleReact
(cfg: OpenClawConfig, params: Record<string, unknown>, accountId?: string)
src/messaging/outbound/actions.ts:338
↓ 1 callers
Function
handleReactionEvent
(ctx: MonitorContext, data: unknown)
src/channel/event-handlers.ts:173
↓ 1 callers
Function
handleReactions
(cfg: OpenClawConfig, params: Record<string, unknown>, accountId?: string)
src/messaging/outbound/actions.ts:376
↓ 1 callers
Function
hasActiveTask
(key: string)
src/channel/chat-queue.ts:50
↓ 1 callers
Function
humanizeToolName
(name: string)
src/card/tool-use-display.ts:565
↓ 1 callers
Function
indentLines
Add a prefix indent to every line of text.
src/messaging/converters/merge-forward.ts:274
← previous
next →
601–700 of 1,118, ranked by callers