MCPInstall

generating-flow

Generate Salesforce Flows using the MCP tool executemetadataaction. Use when the user asks to create, build, or generate a flow — including Screen, Autolaunched, Record-Triggered (before/after-save), Scheduled. Also trigger for flow-like requests such as "when a record is created", "trigger daily at", "send an email when", "update the field when", "automate", "workflow", or "flow XML/metadata". This is the only skill for Salesforce Flow generation.

Installs
4.1K
Last 24h
—
Trending rank
—
Security
Pass

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/forcedotcom/sf-skills --skill generating-flow
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads generating-flow automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

Security audits

Independent scans of the skill's instructions and bundled files.

Gen Agent Trust Hub PassSAFE ·The skill provides a structured process for generating Salesforce Flow metadata using a specific three-step MCP tool pipeline. It contains detailed instructions for managing complex generation loops and processing local project metadata without security concerns.
Socket PassNo alerts
Snyk PassLOW ·Risk: LOW · No issues

SKILL.md

The instructions your agent reads when the skill is triggered.

Goal

Generate Salesforce Flow metadata by running the required 3-step MCP pipeline (fetchGroundedObjectMetadata → flowElementSelection → flowElementGeneration) and return the flow XML.

When to Use This Skill

Use this skill when you need to:

  • Create any type of Flow (Screen, Autolaunched, Record-Triggered, Scheduled)
  • Generate Flow metadata XML
  • Automate business processes without code
  • Build user-guided workflows or background automation
  • Troubleshoot deployment errors related to Flows

Specification

Flow Metadata Specification

Overview

Salesforce Flows are powerful automation tools that enable complex business process automation without code. Flows can collect and process data through interactive screens, execute logic and calculations, manipulate records, call external services, and trigger based on various events. Flow types include Screen Flows (user-guided), Autolaunched Flows (background processing), Record-Triggered Flows (database events) and Scheduled Flows (time-based).

Purpose

  • Automate complex business processes with declarative logic and branching
  • Guide users through multi-step data collection and decision workflows via Screen Flows
  • Perform CRUD operations on Salesforce records automatically
  • Execute background processing and integrations via Autolaunched Flows
  • React to record changes in real-time with Record-Triggered Flows
  • Schedule recurring tasks and batch operations with Scheduled Flows
  • Create reusable, maintainable automation that admins can modify without code

Flow Generation Pipeline

MANDATORY: You MUST follow this exact 3-step pipeline. No exceptions. No shortcuts. No skipping steps. Do NOT manually create flow metadata XML or attempt to generate flow metadata outside of this pipeline. Do NOT attempt to use any other tool, API, or method to generate flow metadata. This pipeline is the ONLY supported way to generate flows. Any deviation will produce invalid or broken metadata.

MCP Connection Details

All 3 pipeline steps MUST be called using this MCP tool:

  • MCP Tool Name: execute_metadata_action
  • The action parameter selects which pipeline step to run: "fetchGroundedObjectMetadata", "flowElementSelection", or "flowElementGeneration"

Flow generation is a strict 3-step pipeline. ALL steps must be called in order. Every step is required. There is no alternative approach — this is the only way to generate flow metadata:

Step 1 (REQUIRED): Fetch Grounded Object Metadata (fetchGroundedObjectMetadata)

Fetches org schema metadata relevant to the flow generation request. This step is mandatory and must always be called first.

Inputs (all required):

  • userPrompt (STRING, REQUIRED): The user's natural language request
  • inflightMetadata (ARRAY, REQUIRED): Custom objects/fields from local sfdx project. Use empty array [] if none needed.

Outputs:

  • groundingMetadata (STRING): Grounded object metadata for org schema relevant to the request, returned as a JSON string. You must pass this directly to Step 2 — it is already a string and does not need to be serialized again.

Step 2 (REQUIRED): Flow Element Selection (flowElementSelection)

Selects flow elements (assignments, decisions, record ops, etc.) and their connections based on the user prompt and grounded metadata. This step is mandatory and must be called after Step 1.

Inputs (all required):

  • userPrompt (STRING, REQUIRED): The user's natural language request (must be the same value as Step 1)
  • groundingMetadata (STRING, REQUIRED): Org schema metadata (must be the exact string returned from Step 1 output — pass it directly, do NOT serialize it again)
  • operationId (STRING, REQUIRED): Operation ID (use empty string "" for first call)

Outputs:

  • operationId (STRING): Operation ID. You must pass this to Step 3.
  • userOutput (STRING): Reasoning for next steps. You can show this to the user.

Step 3 (REQUIRED): Flow Element Generation (flowElementGeneration)

Generates flow metadata element by element. This step is mandatory and must be called after Step 2. Must be called repeatedly in a loop until isComplete is true.

Inputs (all required):

  • operationId (STRING, REQUIRED): Operation ID from Step 2 output
  • requestSource (STRING, REQUIRED): The source of the request. Use "A4V" to get flow metadata in XML format.

Outputs:

  • isComplete (BOOLEAN): Indicates if the flow generation is complete. You must check this value.
  • result (STRING): Result of the flow element generation. Contains the final flow metadata only when isComplete is true.

MANDATORY: Loop until complete. NEVER pause or ask the user to confirm continuation.

  • A flow can have any number of elements (10, 15, or more). Each call generates one element at a time, so you may need many iterations. This is expected and normal.
  • Call flowElementGeneration with the operationId from Step 2 and requestSource (use "A4V" for XML output, empty string or other value for JSON).
  • Check the isComplete output and the result field after each call.
  • If isComplete is false and no errors are returned, you MUST call flowElementGeneration again with the same operationId from Step 2. Do NOT ask the user if they want to continue. Do NOT pause. Do NOT summarize progress mid-loop. Just keep calling.
  • Do NOT stop until isComplete is true or the invocable action returns errors. There is no maximum number of iterations — keep going regardless of how many calls it takes.
  • When isComplete is true, extract the flow metadata from the result field.
  • If errors are returned, stop the loop and surface the error to the user.

STRICT CONSTRAINTS (CRITICAL) — These rules apply to the XML returned by the generation pipeline:

  • DO NOT modify the content, values, or child nodes inside any block.
  • DO NOT add new nodes, tags, attributes, or text (do not add missing labels, X/Y coordinates, etc.).
  • DO NOT remove any existing nodes.

inflightMetadata Format

DATA TYPE: ARRAY (not string)

STRICT NAMING CONVENTION - MUST FOLLOW EXACTLY:

PropertyCorrect NameDo NOT Use
Object API nameapiNameobjectApiName, name, objectName
Field API nameapiNamefieldApiName, name, fieldName
Field typetypefieldType, dataType
Lookup targetreferenceTorelatedTo, lookupTo, reference

When custom objects are needed (sample format showing multiple field data types):

[
  {
    "type": "CustomObject",
    "apiName": "CustomerRequest__c",
    "label": "Customer Request",
    "fields": [
      {
        "apiName": "Status__c",
        "type": "Picklist",
        "label": "Status",
        "values": ["New", "In Progress", "Completed"]
      },
      {
        "apiName": "Priority__c",
        "type": "Number",
        "label": "Priority"
      },
      {
        "apiName": "AssignedTo__c",
        "type": "Lookup",
        "label": "Assigned To",
        "referenceTo": "User"
      },
      {
        "apiName": "Description__c",
        "type": "Textarea",
        "label": "Description"
      },
      {
        "apiName": "Email__c",
        "type": "Email",
        "label": "Contact Email"
      },
      {
        "apiName": "DueDate__c",
        "type": "Date",
        "label": "Due Date"
      },
      {
        "apiName": "IsUrgent__c",
        "type": "Boolean",
        "label": "Is Urgent"
      },
      {
        "apiName": "Amount__c",
        "type": "Currency",
        "label": "Amount"
      }
    ],
    "relationships": []
  }
]

Supported field types: Text, Textarea, Number, Picklist, Lookup, Email, Phone, URL, Date, Datetime, Boolean, Checkbox, Currency, Percent

When no custom objects needed:

[]

MANDATORY Decision Logic for inflightMetadata (DATA TYPE: ARRAY)

  1. REQUIRED - First: Scan the local sfdx project for custom objects and fields that are relevant to the user's flow request.
  2. If relevant custom objects ARE found: You MUST extract and pass them as an array of structured objects (see format above)
  3. If NO relevant custom objects found: You MUST pass an empty array [] (NOT the string "[]")
  4. NEVER: Pass text descriptions, instructions, or string representations in inflightMetadata
  5. MANDATORY: The data type MUST be ARRAY, not STRING

Instructions for Vibes when custom objects ARE relevant:

  • Extract the object metadata and map to JSON properties:
    • apiName: The object's API name (with __c suffix for custom objects)
    • label: The object's display label
    • type: Set to "CustomObject"
    • fields: Array of field objects, each containing:
      • apiName: The field's API name (with __c suffix for custom fields)
      • type: The field type (Text, Number, Picklist, Lookup, etc.)
      • label: The field's display label
      • values: (Picklist only) Array of picklist values
      • referenceTo: (Lookup only) The target object API name
  • Include only objects and fields that are relevant to the flow being generated

🎯 Mandatory Enhancement Rules

  • userPrompt: REQUIRED.
    • If the user requests a single flow: use the user's prompt as-is.
    • If the user requests multiple flows: you MUST split the request and write a separate, focused userPrompt for each individual flow. Each userPrompt must describe only ONE flow. Do NOT pass the entire multi-flow request as a single userPrompt. See the multiple flows section below for examples.
  • inflightMetadata: REQUIRED. Always use ARRAY data type.
    • MUST use [] (empty array) when no custom objects needed
    • MUST use structured array of objects when custom objects are relevant
    • NEVER use string "[]" - this is incorrect
    • NEVER use text descriptions - only structured object metadata

MANDATORY: Multiple Flows = Multiple Separate Pipelines

FIRST: Before calling any pipeline step, check if the user's request contains multiple flows. If it does, you MUST split it into separate single-flow prompts. Each flow gets its own 3-step pipeline with its own userPrompt that describes ONLY that one flow.

NEVER pass a multi-flow request as a single userPrompt field. NEVER club multiple flow descriptions into one userPrompt.

When the user requests multiple flows (e.g., "Create flows for my app: 1) ... 2) ... 3) ..."), you MUST:

  1. Split the request into separate individual flow descriptions.
  2. Run a separate 3-step pipeline for each flow, using a userPrompt that describes ONLY that one flow.
  3. Execute ALL pipelines SEQUENTIALLY — one after another, NEVER in parallel. Do NOT stop after the first flow. Do NOT wait for the user to ask you to continue. Do NOT summarize and stop. Keep going until every requested flow has been fully generated.

WRONG - Multiple flows clubbed into one userPrompt:

{
  "userPrompt": "Create flows for the app: 1) Record-Triggered Flow on ResourceAllocation__c to update Resource__c. 2) Screen Flow to allocate resources. 3) Record-Triggered Flow on Supply__c to auto-flag Low_Stock__c.",
  ...
}

CORRECT - Separate call for EACH flow:

Flow 1 - Step 1 (fetchGroundedObjectMetadata):

{
  "userPrompt": "Create a Screen Flow named Tenant_Onboarding that captures tenant details, selects a Unit__c with Status__c = 'Vacant', creates Lease__c...",
  "inflightMetadata": [...]
}

Then call Step 2 (flowElementSelection) with the groundingMetadata from Step 1, then Step 3 (flowElementGeneration) with the operationId from Step 2.

Flow 2 - Step 1 (fetchGroundedObjectMetadata):

{
  "userPrompt": "Create an Autolaunched Flow named Generate_Onboarding_Checklist that given a Lease__c Id input, queries OnboardingTask__c...",
  "inflightMetadata": [...]
}

Then call Step 2 and Step 3 for this flow.

Flow 3 - Step 1 (fetchGroundedObjectMetadata):

{
  "userPrompt": "Create a Record-Triggered Flow named Sync_Unit_On_Lease_Changes that on insert and update of Lease__c...",
  "inflightMetadata": [...]
}

Then call Step 2 and Step 3 for this flow.

Mandatory Rules:

  • If there are N flows to generate, there MUST be N separate 3-step pipelines and ALL N pipelines MUST be executed. No exceptions. Do NOT stop after generating only one flow.
  • You MUST fully complete the current flow's 3-step pipeline (including looping Step 3 until isComplete is true or errors are returned) BEFORE starting the next flow's pipeline. Do NOT interleave or parallelize pipelines across flows. Everything is SEQUENTIAL — NEVER parallel.
  • After completing a flow's pipeline, immediately start the next flow's pipeline. Do NOT pause, summarize, or wait for user confirmation between flows.
  • For each flow, you MUST scan the local sfdx project to populate inflightMetadata with custom objects/fields specific to that flow prompt.
  • Each flow pipeline MUST have its own inflightMetadata containing only the objects/fields relevant to that particular flow.

Example Tool Calls

Example 1: Standard objects only (no custom objects)

Step 1 - fetchGroundedObjectMetadata:

{
  "userPrompt": "Create a scheduled-triggered Flow named Daily_Good_Morning that runs daily at 6:00 AM and sends an email to the running user saying good morning.",
  "inflightMetadata": []
}

Step 2 - flowElementSelection:

{
  "userPrompt": "Create a scheduled-triggered Flow named Daily_Good_Morning that runs daily at 6:00 AM and sends an email to the running user saying good morning.",
  "groundingMetadata": "<groundingMetadata string from Step 1 — pass directly, do not serialize again>",
  "operationId": ""
}

Step 3 - flowElementGeneration (call in a loop):

{
  "operationId": "<operationId from Step 2>",
  "requestSource": "A4V"
}

Call repeatedly with the same operationId until isComplete is true or errors are returned. A flow can have any number of elements, so expect multiple iterations. When isComplete is true, extract the flow metadata from the result field. Use "requestSource": "A4V" to get flow metadata in XML format.

Example 2: With custom objects from local sfdx project

Step 1 - fetchGroundedObjectMetadata:

{
  "userPrompt": "Create a flow that updates the status of a Customer Request when it's assigned",
  "inflightMetadata": [
    {
      "type": "CustomObject",
      "apiName": "CustomerRequest__c",
      "label": "Customer Request",
      "fields": [
        {
          "apiName": "Status__c",
          "type": "Picklist",
          "label": "Status",
          "values": ["New", "In Progress", "Completed"]
        },
        {
          "apiName": "AssignedTo__c",
          "type": "Lookup",
          "label": "Assigned To",
          "referenceTo": "User"
        }
      ],
      "relationships": []
    }
  ]
}

Step 2 - flowElementSelection:

{
  "userPrompt": "Create a flow that updates the status of a Customer Request when it's assigned",
  "groundingMetadata": "<groundingMetadata string from Step 1 — pass directly, do not serialize again>",
  "operationId": ""
}

Step 3 - flowElementGeneration (call in a loop):

{
  "operationId": "<operationId from Step 2>",
  "requestSource": "A4V"
}

Call repeatedly with the same operationId until isComplete is true or errors are returned. A flow can have any number of elements, so expect multiple iterations. When isComplete is true, extract the flow metadata from the result field. Use "requestSource": "A4V" to get flow metadata in XML format.

Mandatory Best Practices

  • ALWAYS follow the 3-step pipeline: fetchGroundedObjectMetadata → flowElementSelection → flowElementGeneration. This is the ONLY way to generate flow metadata. There are no alternatives.
  • Do NOT manually create flow metadata XML, JSON, or any other format outside of this pipeline.
  • When the user explicitly requests fixes to validation or deployment errors in an already-generated flow XML, you ARE permitted to make targeted manual edits to the XML to resolve those errors. This is the only exception to the "no manual metadata" rule.
  • Do NOT attempt to "optimize" by skipping steps or combining steps. Each step is atomic and required.
  • NEVER skip any step in the pipeline. All 3 steps are required.
  • NEVER try to generate flow metadata without calling all 3 steps.
  • NEVER deviate from this pipeline under any circumstance — even if you think you know the flow structure.
  • For single flow requests: you MUST use the user prompt as userPrompt.
  • For multiple flow requests: you MUST run a separate 3-step pipeline for each flow SEQUENTIALLY (one after another, NEVER in parallel), and you MUST execute ALL of them — do NOT stop after the first flow.
  • You MUST put flow requirements in userPrompt, NOT in inflightMetadata.
  • inflightMetadata is ONLY for custom object/field metadata from local project (see above). No exceptions.
  • Step 3 MUST be called in a loop with the same operationId from Step 2 until isComplete is true or errors are returned. A flow can have any number of elements — do NOT stop early, do NOT pause to ask the user if they want to continue, regardless of how many iterations it takes.
  • You MUST only extract the flow metadata from the result field when isComplete is true.

CRITICAL Verification Checklist (MUST VERIFY BEFORE AND AFTER EVERY FLOW GENERATION)

Failure to follow this checklist exactly will result in broken or missing flow metadata.

  • Pipeline: ALL 3 steps are called in strict order (fetchGroundedObjectMetadata → flowElementSelection → flowElementGeneration). No step is skipped.
  • No manual metadata: Flow metadata is NOT manually created, modified, or generated outside of this pipeline by any means
  • No deviation: No alternative tools, APIs, or methods were used instead of or alongside this pipeline
  • userPrompt contains a single flow prompt. If user requested multiple flows, the request was split and each pipeline received a separate userPrompt describing only one flow
  • userPrompt is passed consistently to both Step 1 and Step 2 (same value)
  • inflightMetadata is ARRAY data type (NOT string)
  • inflightMetadata is [] when no custom objects needed
  • inflightMetadata contains structured objects extracted by scanning the local sfdx project for relevant custom objects/fields
  • inflightMetadata does NOT contain "[]" (string) - must be [] (array)
  • inflightMetadata does NOT contain text descriptions or instructions
  • groundingMetadata from Step 1 output is passed directly to Step 2 input (it is already a string — do NOT serialize it again)
  • operationId from Step 2 output is passed to Step 3 input
  • requestSource should be set to "A4V" always
  • Step 3 is called in a loop with the same operationId from Step 2 until isComplete is true or errors are returned — no pausing, no asking the user to continue, no matter how many iterations
  • Multi-flow: Each flow's full pipeline is completed before starting the next flow's pipeline (no interleaving)
  • result field is used to extract the XML flow metadata only when isComplete is true
  • No additions to XML: NO elements, attributes, or properties were added that were not present in the original pipeline output. Nothing was inserted (no <label>, <description>, or any other node). The final XML must be identical to what the pipeline returned.
  • Error fix exception: If the user explicitly requested fixes to validation/deployment errors, targeted manual edits to the XML are permitted and the "No additions to XML" / "No manual metadata" constraints do not apply to those edits.

FAQ

What does the generating-flow skill do?

Generate Salesforce Flows using the MCP tool executemetadataaction. Use when the user asks to create, build, or generate a flow — including Screen, Autolaunched, Record-Triggered (before/after-save), Scheduled. Also trigger for flow-like requests such as "when a record is created", "trigger daily at", "send an email when", "update the field when", "automate", "workflow", or "flow XML/metadata". This is the only skill for Salesforce Flow generation.

How do I install generating-flow?

Run npx skills add https://github.com/forcedotcom/sf-skills --skill generating-flow in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/generating-flow/ (personal) or .claude/skills/generating-flow/ (project).

Which AI agents can use generating-flow?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is generating-flow safe to install?

Security partners have reviewed it: Gen Agent Trust Hub passed; Socket passed; Snyk passed. As with any skill, read the SKILL.md and bundled scripts before installing.

Who maintains generating-flow?

It is published by forcedotcom in forcedotcom/sf-skills. It has 4,064 recorded installs.

More from forcedotcom/sf-skills

View all →

platform-apex-generate

forcedotcom/sf-skills

Primary Apex authoring skill for class generation, refactoring, and review. ALWAYS ACTIVATE when the user mentions Apex, .cls, triggers, or asks to create/refactor a class (service, selector, domain, batch, queueable, schedulable, invocable, DTO, utility, interface, abstract, exception, REST resource). Use this skill for requests involving SObject CRUD, mapping collections, fetching related records, scheduled jobs, batch jobs, trigger design, @AuraEnabled controllers, @RestResource endpoints, custom REST APIs, or code review of existing Apex.

platform-apex-test-generate

forcedotcom/sf-skills

Use to generate and validate Apex test classes with TestDataFactory patterns, bulk testing (251+ records), mocking, assertions, and disciplined test-fix loops. Use when creating Apex test classes (for triggers, services, controllers, batch jobs, queueables, and callouts), improving coverage, debugging or fixing failing Apex tests, or running test/coverage analysis. Triggers on Test.cls files, sf apex run test, coverage reports. Do NOT trigger for production Apex (use platform-apex-generate) or Jest/LWC tests.

Testing & QA7.1K installs

platform-apex-test-run

forcedotcom/sf-skills

Apex test execution, coverage analysis, and test-fix loops with 120-point scoring. Use when the user runs Apex tests, checks code coverage, fixes failing tests, or touches Test.cls / Test.cls files. DO NOT TRIGGER when writing Apex production code (use platform-apex-generate), Agentforce agent testing (use agentforce-test), or Jest/LWC tests (use experience-lwc-generate).

Testing & QA7K installs

platform-apex-logs-debug

forcedotcom/sf-skills

Salesforce debug log analysis and troubleshooting with 100-point scoring. TRIGGER when: user analyzes debug logs, hits governor limits, reads stack traces, or touches .log files from Salesforce orgs. DO NOT TRIGGER when: running Apex tests (use platform-apex-test-run), generating or fixing Apex code (use platform-apex-generate), or Agentforce session tracing (use agentforce-observe).

platform-soql-query

forcedotcom/sf-skills

Use when the user needs SOQL/SOSL authoring or optimization: natural-language-to-query generation, relationship queries, aggregates, query-plan/selectivity analysis, and performance or safety improvements. TRIGGER when the user writes, optimizes, or debugs SOQL/SOSL, touches .soql files, or asks about relationship queries, aggregates, or query performance. DO NOT TRIGGER for bulk data operations (use platform-data-manage), Apex DML logic (use platform-apex-generate), or report/dashboard queries.

platform-metadata-deploy

forcedotcom/sf-skills

Salesforce DevOps automation using sf CLI v2. TRIGGER when: user deploys metadata, validates a deploy or does a dry-run, deploys to a Production org, quick-deploys a validated job ID, ships/promotes to prod, creates/manages scratch orgs or sandboxes, sets up CI/CD pipelines, or troubleshoots deployment errors with sf project deploy. DO NOT TRIGGER when: writing Apex code, building LWC components (use experience-lwc-generate), creating metadata definitions (use platform-custom-object-generate), deleting metadata from an org (use platform-destructive-deploy), or querying org data (use platform-data-manage).

DevOps & Cloud6.8K installs

Popular productivity & automation skills

View category →

agent-browser

vercel-labs/agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

OfficialProductivity & Automation1.3M installs

lark-doc

open.feishu.cn

飞书云文档(Docx / Wiki)内容操作:读取、创建、编辑文档,插入或下载图片附件,以及操作思维笔记。用户提供文档 URL/token(包括 doubao.com 的 /docx/、/wiki/)时使用;按 URL 路径/token 而非域名路由;/page/ 是妙搭应用,非飞书云文档。文档内嵌资源按读取参考中的统一规则分流。独立评论操作走 lark-drive;随正文读取评论使用 docs +fetch。表格或 Base 内部数据操作不在本 skill。

lark-base

open.feishu.cn

飞书多维表格(Base)操作:建表、字段、记录、视图、统计、公式/lookup、表单、仪表盘、应用模式(BaseApp/AppMode 页面与组件)、Workspace 目录、workflow、角色权限、模板中心(多维表格模板分类/列表/搜索);遇到 Base/多维表格/bitable、BaseApp/AppMode、/base/ 或 /app/ 链接时使用。BaseApp 不走 lark-apps;文件导入/导出转 lark-drive,认证/授权转 lark-shared。

lark-drive

open.feishu.cn

飞书云空间(云盘/云存储):管理 Drive 文件和文件夹,包含上传/下载、创建文件夹、复制/移动/删除、查看元数据、查询权限设置、评论/权限/订阅、标题、版本、飞书文档密级标签(secure labels)和本地文件导入。用户需要整理云盘目录、处理云空间资源 URL/token、判断链接类型/真实 token/标题,或导入 Word/Markdown/Excel/CSV/PPTX/.base 为 docx/sheet/bitable/slides 时使用;doubao.com 云空间 URL/token 也按资源路径和 token 路由,不回退 WebFetch。不负责:文档内容编辑(走 lark-doc)、表格/Base 表内数据操作(走 lark-sheets/lark-base)、知识空间节点/成员管理(走 lark-wiki)、原生 Markdown 文件读写/patch/diff(走 lark-markdown)。

lark-shared

open.feishu.cn

Use for lark-cli setup/auth tasks: auth login/status/logout, user vs bot identity, business-domain permissions (--domain, including all/docs/drive), missing scopes, revoking authorization, or handling notice JSON.

lark-im

open.feishu.cn

飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件、管理表情回复、发送应用内/短信/电话加急、发送和处理交互卡片(Interactive Card)、监听卡片按钮回调(card.action.trigger)。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员、搜索群、创建群聊或话题群、管理标记数据、管理 Feed 置顶(添加/移除/查询置顶会话)、管理标签数据、处理卡片回调时使用。