platform-assistant
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAnypoint Platform Operations
Anypoint Platform 操作指南
Overview
概述
Navigate the Anypoint Platform developer portal to discover available APIs, agent skills, and extension schemas. The portal is the single source of truth for all public Anypoint Platform API specifications and agent-executable workflows. The portal URL is provided in the agent context preamble injected at the top of this file.
The portal exposes three machine-readable discovery files designed for AI agent consumption. Start with for a quick inventory, read for the full operating manual, and query for programmatic access to every document.
llms.txtAGENTS.mdregistry.jsonImportant: All portal files are plain-text source documents (YAML, JSON, Markdown). Always retrieve them with raw HTTP tools (curl, direct GET requests) — never pass portal URLs through summarizer or browser-rendering tools, which will truncate structured content.
在 Anypoint Platform 开发者门户中浏览,以发现可用的 API、Agent Skill 和扩展 schema。该门户是所有公开 Anypoint Platform API 规范和可由 Agent 执行的工作流的唯一真实来源。门户 URL 会在注入到此文件顶部的 Agent 上下文前言中提供。
该门户提供三个专为 AI Agent 使用而设计的机器可读发现文件。先使用 快速盘点,阅读 了解完整操作手册,再查询 以编程方式访问所有文档。
llms.txtAGENTS.mdregistry.json重要: 所有门户文件均为纯文本源文档(YAML、JSON、Markdown)。务必使用原始 HTTP 工具(curl、直接 GET 请求)获取它们——切勿将门户 URL 传给摘要工具或浏览器渲染工具,否则会截断结构化内容。
llms.txt -- Quick Inventory
llms.txt -- 快速盘点
Fetch for a lightweight, one-page summary following the llmstxt.org convention. It lists:
{portal-url}/llms.txt- A link to (the full agent entry point)
AGENTS.md - A link to (the machine-readable catalog)
registry.json - Schema references for and JTBD extensions
x-origin - Every public API with a one-line description
- Every agent skill with a one-line description
Use when you need a quick overview of what the portal offers before diving deeper.
llms.txt获取 ,以获得遵循 llmstxt.org 规范的轻量级单页摘要。它列出:
{portal-url}/llms.txt- 的链接(完整的 Agent 入口点)
AGENTS.md - 的链接(机器可读目录)
registry.json - 和 JTBD 扩展的 Schema 引用
x-origin - 每个公开 API 及其单行描述
- 每个 Agent Skill 及其单行描述
在深入探索之前需要快速概览门户提供的内容时,使用 。
llms.txtAGENTS.md -- The Agent Operating Manual
AGENTS.md -- Agent 操作手册
Fetch for the complete reference designed specifically for AI agents. This is the most important file to read thoroughly. It covers:
{portal-url}/AGENTS.md- Site structure -- where every file type lives (specs, skills, schemas)
- Registry format -- field definitions for entries
registry.json - URN scheme and resolution -- how to convert identifiers to fetchable URLs:
- resolves to
urn:api:{slug}{portal-url}/apis/{slug}/api.yaml - resolves to
urn:skill:{slug}{portal-url}/skills/{slug}/SKILL.md - resolves to
urn:schema:x-origin{portal-url}/schemas/x-origin.schema.json
- API spec conventions -- format, authentication, server variables
operationId - x-origin extension -- how dynamic parameters reference other APIs
- Skill format (JTBD) -- step structure, input types, output chaining
- Common agent workflows -- step-by-step patterns for discovery, execution, and resolution
获取 ,以获得专为 AI Agent 设计的完整参考文档。这是最重要的文件,应完整阅读。它涵盖:
{portal-url}/AGENTS.md- 站点结构——每种文件类型所在的位置(规范、Skill、Schema)
- Registry 格式——条目的字段定义
registry.json - URN 方案与解析——如何将标识符转换为可获取的 URL:
- 解析为
urn:api:{slug}{portal-url}/apis/{slug}/api.yaml - 解析为
urn:skill:{slug}{portal-url}/skills/{slug}/SKILL.md - 解析为
urn:schema:x-origin{portal-url}/schemas/x-origin.schema.json
- API 规范约定——格式、身份验证、服务器变量
operationId - x-origin 扩展——动态参数如何引用其他 API
- Skill 格式(JTBD)——步骤结构、输入类型、输出链式传递
- 常见 Agent 工作流——用于发现、执行和解析的分步模式
registry.json -- Programmatic Catalog
registry.json -- 程序化目录
Fetch for the complete document index as a flat JSON array. Each entry contains:
{portal-url}/registry.json- -- URN identifier (e.g.,
$id)urn:api:api-manager - -- document type:
kind(API spec),oas,agent-skill, orjson-schemaschema-doc - -- URL-safe short name
slug - and
name-- human-readable metadatadescription - -- relative path to the raw source file
href - -- relative path to the rendered HTML page
docs - -- (skills only) array of API slugs this skill references
apis
Filter by to segment the catalog:
kind- Find all APIs:
kind == "oas" - Find all skills:
kind == "agent-skill" - Find skills for a specific API: AND
kind == "agent-skill"contains the target slugapis - Find extension schemas: or
kind == "json-schema"kind == "schema-doc"
获取 ,以获得完整的文档索引,它是一个扁平的 JSON 数组。每个条目包含:
{portal-url}/registry.json- ——URN 标识符(例如
$id)urn:api:api-manager - ——文档类型:
kind(API 规范)、oas、agent-skill或json-schemaschema-doc - ——适合 URL 的短名称
slug - 和
name——便于阅读的元数据description - ——原始源文件的相对路径
href - ——渲染后 HTML 页面的相对路径
docs - ——(仅适用于 Skill)此 Skill 引用的 API slug 数组
apis
按 筛选目录:
kind- 查找所有 API:
kind == "oas" - 查找所有 Skill:
kind == "agent-skill" - 查找特定 API 的 Skill:且
kind == "agent-skill"包含目标 slugapis - 查找扩展 Schema:或
kind == "json-schema"kind == "schema-doc"
Understanding x-origin (Dynamic Parameters)
理解 x-origin(动态参数)
Many API parameters have valid values that come from another API's response. These parameters carry an annotation in the OpenAPI spec:
x-originyaml
parameters:
- name: environmentId
in: path
schema:
type: string
x-origin:
- api: urn:api:access-management
operation: listEnvironments
values: "$.data[*].id"
labels: "$.data[*].name"To resolve an parameter:
x-origin- Read the array on the parameter
x-origin - For each source, resolve the API URN to fetch the referenced spec
- Find and call the referenced (by
operation)operationId - Apply the JSONPath expression to extract valid identifiers
values - Optionally apply the JSONPath to get human-readable display names
labels
The field is always required. The field is optional -- when absent, display the value directly. Both can be single JSONPath strings or arrays of paths.
valueslabelsFull schema:
Documentation:
{portal-url}/schemas/x-origin.schema.json{portal-url}/schemas/x-origin-schema.md许多 API 参数的有效值来自另一个 API 的响应。这些参数在 OpenAPI 规范中带有 注解:
x-originyaml
parameters:
- name: environmentId
in: path
schema:
type: string
x-origin:
- api: urn:api:access-management
operation: listEnvironments
values: "$.data[*].id"
labels: "$.data[*].name"要解析 参数:
x-origin- 读取参数上的 数组
x-origin - 对每个来源,解析 API URN,以获取引用的规范
- 查找并调用被引用的 (通过
operation)operationId - 应用 JSONPath 表达式,提取有效标识符
values - 可选地应用 JSONPath,获取便于阅读的显示名称
labels
valueslabels完整 Schema:
{portal-url}/schemas/x-origin.schema.json文档:
{portal-url}/schemas/x-origin-schema.mdUnderstanding JTBD Skills
理解 JTBD Skill
Skills are multi-step API workflows written in markdown. Each skill's contains:
SKILL.md- YAML frontmatter with (kebab-case) and
name(includes trigger terms for agent matching)description - Numbered steps () each containing a YAML code block with:
## Step N: Title- -- URN of the target API (e.g.,
api)urn:api:api-manager - -- the operation to call
operationId - -- parameter mappings with four possible types
inputs - -- values to capture for subsequent steps
outputs
The four input types are:
| Type | Syntax | Use when |
|---|---|---|
| From another API | | Value must be fetched from an API call |
| From previous step | | Using an output captured earlier in the workflow |
| Literal | | Static constant known in advance |
| User-provided | | Agent must prompt the user or use context |
Outputs chain between steps -- a value captured as in Step 1 can be referenced as in Step 2.
name: environmentApiIdfrom.variable: environmentApiIdSome skills define Execution Paths -- alternative routes through the steps depending on what the agent already has (e.g., skip authentication if already logged in).
Full schema:
Template:
{portal-url}/schemas/jtbd-schema.md{portal-url}/schemas/jtbd-template.mdSkill 是以 Markdown 编写的多步骤 API 工作流。每个 Skill 的 包含:
SKILL.md- YAML frontmatter,其中包含 (kebab-case)和
name(包含用于 Agent 匹配的触发词)description - 编号步骤(),每一步都包含一个 YAML 代码块,其中包含:
## Step N: Title- ——目标 API 的 URN(例如
api)urn:api:api-manager - ——要调用的操作
operationId - ——具有四种可能类型的参数映射
inputs - ——为后续步骤捕获的值
outputs
四种输入类型如下:
| 类型 | 语法 | 使用场景 |
|---|---|---|
| 来自另一个 API | | 值必须从 API 调用中获取 |
| 来自上一步 | | 使用工作流前面步骤捕获的输出 |
| 字面值 | | 预先已知的静态常量 |
| 用户提供 | | Agent 必须提示用户提供或使用上下文 |
输出会在步骤之间链式传递——在 Step 1 中作为 捕获的值,可以在 Step 2 中通过 引用。
name: environmentApiIdfrom.variable: environmentApiId某些 Skill 定义了 Execution Paths——根据 Agent 已经具备的内容,在步骤中采用不同的替代路径(例如,如果已经登录,则跳过身份验证)。
完整 Schema:
{portal-url}/schemas/jtbd-schema.md模板:
{portal-url}/schemas/jtbd-template.mdFetching Strategy
获取策略
Portal files (, , ) are plain-text source documents, NOT rendered web pages. When retrieving them:
*.md*.yaml*.json- Use raw HTTP tools (curl, direct GET, file-read tools) — NOT browser-rendering or summarizer tools (e.g., WebFetch). Summarizers truncate structured content like JSON arrays, YAML code blocks, and tables.
- Parse responses verbatim — must be parsed as JSON, API specs as YAML, and skills as Markdown. Do not summarize or abbreviate.
registry.json - Fetch files individually when you need their content:
- Registry:
GET {portal-url}/registry.json - API spec:
GET {portal-url}/apis/{slug}/api.yaml - Skill definition:
GET {portal-url}/skills/{slug}/SKILL.md - Agent guide:
GET {portal-url}/AGENTS.md
- Registry:
门户文件(、、)是纯文本源文档,不是渲染后的网页。获取时:
*.md*.yaml*.json- 使用原始 HTTP 工具(curl、直接 GET、文件读取工具),而不是浏览器渲染或摘要工具(例如 WebFetch)。摘要工具会截断 JSON 数组、YAML 代码块和表格等结构化内容。
- 逐字解析响应——必须将 解析为 JSON,将 API 规范解析为 YAML,将 Skill 解析为 Markdown。不要总结或缩写。
registry.json - 需要内容时单独获取文件:
- Registry:
GET {portal-url}/registry.json - API 规范:
GET {portal-url}/apis/{slug}/api.yaml - Skill 定义:
GET {portal-url}/skills/{slug}/SKILL.md - Agent 指南:
GET {portal-url}/AGENTS.md
- Registry:
Prerequisites
前置条件
- Network access -- ability to make HTTP requests to the portal URL (see agent context preamble for the base URL)
- Anypoint Platform credentials (for executing skills) -- Bearer token or OAuth2 client credentials for API calls
- HTTP fetch capability -- ability to fetch and parse YAML, JSON, and Markdown responses directly (raw HTTP, not via summarizer)
- 网络访问——能够向门户 URL 发起 HTTP 请求(有关基 URL,请参阅 Agent 上下文前言)
- Anypoint Platform 凭据(用于执行 Skill)——用于 API 调用的 Bearer token 或 OAuth2 client credentials
- HTTP 获取能力——能够直接获取并解析 YAML、JSON 和 Markdown 响应(使用原始 HTTP,而不是摘要工具)
Tips and Best Practices
提示与最佳实践
Discovery Strategy
发现策略
- Start with for programmatic discovery -- it is structured, filterable, and machine-parseable
registry.json - Read when you need to understand conventions, resolve ambiguity, or learn how the portal works
AGENTS.md - Use for a quick, lightweight overview before committing to a deeper exploration
llms.txt - Always use raw HTTP tools (curl, direct GET) for portal files -- never use summarizer tools that pass content through an intermediate model
- 从 开始进行程序化发现——它结构化、可筛选且可由机器解析
registry.json - 阅读 ,以了解约定、消除歧义或学习门户的工作方式
AGENTS.md - **使用 **快速、轻量地概览门户,然后再进行深入探索
llms.txt - 始终使用原始 HTTP 工具(curl、直接 GET)获取门户文件——切勿使用会让内容经过中间模型的摘要工具
Working with x-origin
使用 x-origin
- Always check x-origin on parameters before hardcoding values -- dynamic enums change per organization and environment
- Chain x-origin calls: one API's x-origin often references Access Management, which itself provides foundational IDs for other APIs
- Cache and
organizationId-- they are reused across nearly every API call and rarely change within a sessionenvironmentId - Read the full x-origin array -- some parameters offer multiple sources (e.g., different API endpoints for different contexts)
- 在硬编码值之前,始终检查参数上的 x-origin——动态枚举值会随组织和环境而变化
- 链式调用 x-origin:一个 API 的 x-origin 通常会引用 Access Management,而后者又为其他 API 提供基础 ID
- 缓存 和
organizationId——它们几乎会在每次 API 调用中重复使用,并且在一个会话内很少发生变化environmentId - 读取完整的 x-origin 数组——某些参数会提供多个来源(例如,针对不同上下文使用不同的 API 端点)
Skill Execution
Skill 执行
- Read the full skill before starting -- execution paths may let you skip steps if prerequisites are already met
- Chain variables between steps -- outputs from one step become inputs to the next via
from.variable - Check the troubleshooting section of each skill when errors occur -- skills document known failure modes and solutions
- Resolve user-provided inputs early -- gather all inputs before starting execution to avoid mid-workflow interruptions
userProvided: true
- 开始前阅读完整的 Skill——执行路径可能允许在前置条件已满足时跳过某些步骤
- 在步骤之间链式传递变量——一个步骤的输出会通过 成为下一步的输入
from.variable - 发生错误时,检查每个 Skill 的故障排除部分——Skill 会记录已知故障模式及其解决方案
- 尽早解析用户提供的输入——在开始执行前收集所有 输入,避免工作流执行中断
userProvided: true
Portal Navigation
门户导航
- Raw files via -- use this for machine consumption (OpenAPI YAML, SKILL.md, JSON Schema)
href - Rendered pages via -- use this when you need HTML documentation (useful for extracting formatted content)
docs - URN resolution -- always resolve URNs through the portal URL, never hardcode file paths
- 通过 获取原始文件——供机器消费(OpenAPI YAML、SKILL.md、JSON Schema)
href - 通过 获取渲染页面——需要 HTML 文档时使用(适合提取格式化内容)
docs - URN 解析——始终通过门户 URL 解析 URN,切勿硬编码文件路径
Troubleshooting
故障排除
Portal Files Not Accessible
无法访问门户文件
Symptoms: HTTP errors when fetching llms.txt, AGENTS.md, or registry.json
Possible causes:
- Incorrect portal URL
- Network connectivity issues
- Portal is being redeployed
Solutions:
- Verify the base URL matches the one in the agent context preamble at the top of this file
- Check that the full URL path is correct (no trailing slash issues)
- Retry after a brief wait if the portal is temporarily unavailable
症状: 获取 llms.txt、AGENTS.md 或 registry.json 时出现 HTTP 错误
可能原因:
- 门户 URL 不正确
- 网络连接问题
- 门户正在重新部署
解决方案:
- 验证基 URL 与此文件顶部 Agent 上下文前言中的 URL 一致
- 检查完整 URL 路径是否正确(不存在尾部斜杠问题)
- 如果门户暂时不可用,请短暂等待后重试
Registry Returns Empty or Unexpected Results
Registry 返回空结果或意外结果
Symptoms: registry.json parses but filtering returns no results
Possible causes:
- Using wrong value for filtering
kind - API slug does not match any entry
Solutions:
- Valid kind values are exactly: ,
oas,agent-skill,json-schemaschema-doc - List all slugs first to find exact matches (slugs are kebab-case, e.g., not
api-manager)API Manager - Skills have an array field -- APIs do not have a
apisfieldskills
症状: registry.json 可以解析,但筛选后没有结果
可能原因:
- 筛选时使用了错误的 值
kind - API slug 与任何条目都不匹配
解决方案:
- 有效的 kind 值严格为:、
oas、agent-skill、json-schemaschema-doc - 首先列出所有 slug,以查找精确匹配项(slug 使用 kebab-case,例如 ,而不是
api-manager)API Manager - Skill 包含 数组字段,而 API 不包含
apis字段skills
URN Resolution Fails
URN 解析失败
Symptoms: Fetching a URL constructed from a URN returns 404
Possible causes:
- Incorrect URN-to-URL mapping
- API or skill has been renamed or removed
Solutions:
- Follow the exact resolution rules: maps to
urn:api:{slug}, not/apis/{slug}/api.yaml/apis/{slug}.yaml - Check for the
registry.jsonfield which gives the canonical relative pathhref - For schemas, resolution is not slug-based: maps to
urn:schema:x-origin/schemas/x-origin.schema.json
症状: 获取根据 URN 构建的 URL 时返回 404
可能原因:
- URN 到 URL 的映射不正确
- API 或 Skill 已被重命名或删除
解决方案:
- 遵循精确的解析规则:映射到
urn:api:{slug},而不是/apis/{slug}/api.yaml/apis/{slug}.yaml - 检查 中的
registry.json字段,其中提供了规范的相对路径href - 对于 Schema,解析方式不基于 slug:映射到
urn:schema:x-origin/schemas/x-origin.schema.json
x-origin Operation Not Found
找不到 x-origin 操作
Symptoms: The operationId referenced in x-origin does not exist in the target API spec
Possible causes:
- API spec version has changed
- Incorrect operationId spelling (operationIds are camelCase)
Solutions:
- Fetch the latest API spec via its URN and search for the operationId
- Check the API spec's for all available operations
paths
症状: x-origin 中引用的 operationId 在目标 API 规范中不存在
可能原因:
- API 规范版本已更改
- operationId 拼写错误(operationId 使用 camelCase)
解决方案:
- 通过 URN 获取最新的 API 规范,并搜索该 operationId
- 检查 API 规范的 ,查看所有可用操作
paths
Related Jobs
相关 Job
- secure-api: Apply security and traffic management policies to an API instance
- apply-policy-to-api-instance: Apply a specific policy to an existing API instance
- setup-service-scanner: Configure scanners to discover services from cloud platforms
- run-service-scan-and-view-results: Execute a scanner and view discovered services
- secure-api:对 API 实例应用安全策略和流量管理策略
- apply-policy-to-api-instance:对现有 API 实例应用特定策略
- setup-service-scanner:配置扫描器以发现云平台中的服务
- run-service-scan-and-view-results:执行扫描器并查看发现的服务