> ## Documentation Index
> Fetch the complete documentation index at: https://docs.localpayment.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 纯文本文档和 LLMs.txt

为任意 LLM 提供简洁、节省 token 的 Localpayment 文档版本。使用 llms.txt 索引获取结构化概览，或在任意文档 URL 后添加 .md 以获取文章级别的 Markdown 内容。无需任何设置或配置。

Localpayment 的文档提供专为 LLM 使用而设计的纯文本格式。当您想将文档内容直接粘贴到聊天界面、以编程方式向语言模型提供上下文，或构建读取 API 文档的工具时，这些格式非常有用。

无需任何配置——这两项功能始终可用。

***

## LLMs.txt

`https://docs.localpayment.com/llms.txt`

`llms.txt` 文件是 Localpayment 整套文档的结构化索引，格式遵循 [llmstxt.org](https://llmstxt.org) 开放标准。它提供了可用指南和参考页面的精选分层概览，并针对 LLM 上下文窗口进行了优化。

### 包含内容

* 对 Localpayment 及文档涵盖内容的简要说明
* 所有文档章节及其重点文章的结构化列表
* 指向每篇文章纯文本（`.md`）格式的直接链接

### 何时使用

* 在提出集成问题之前，为语言模型提供文档的**完整地图**
* 构建以编程方式发现所有可用文档页面的工具
* 作为获取特定文章以了解更深入上下文之前的起点

### 如何使用

在会话开始时，将 `llms.txt` 的 URL 或内容粘贴到您的 AI 助手中：

```
Read the following documentation index and use it as context for the 
questions I will ask about the Localpayment API:

https://docs.localpayment.com/llms.txt
```

或以编程方式获取：

```bash theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
curl https://docs.localpayment.com/llms.txt
```

***

## 纯文本文章 (.md)

Localpayment 开发者门户中的任何文章，只需在 URL 后附加 `.md`，即可获取为简洁的 Markdown。

| 门户 URL | 纯文本 URL |
| :- | :- |
| `https://docs.localpayment.com/docs/virtual-accounts-overview` | `https://docs.localpayment.com/docs/virtual-accounts-overview.md` |
| `https://docs.localpayment.com/docs/receive-payment-notifications` | `https://docs.localpayment.com/docs/receive-payment-notifications.md` |
| `https://docs.localpayment.com/docs/create-a-virtual-account` | `https://docs.localpayment.com/docs/create-a-virtual-account.md` |

`.md` 版本会去除导航、侧边栏和界面元素，仅返回结构化 Markdown 形式的文章内容——token 数量显著减少，信号更清晰。

### 何时使用

* 在提出针对性问题时，将**特定文章**粘贴到聊天中
* 向语言模型提供精确的上下文，而不包含无关的文档
* 当您确切知道哪个指南或参考页面与您的问题相关时

### 如何使用

```
Read the following Localpayment documentation article and help me implement 
the virtual account webhook handler described in it:

https://docs.localpayment.com/docs/receive-payment-notifications.md
```

或以编程方式获取并通过管道传入您的 LLM 工作流：

```bash theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
curl https://docs.localpayment.com/docs/virtual-accounts-overview.md
```

***

## LLMs.txt 与纯文本文章与 MCP 对比

| 功能 | LLMs.txt | 纯文本文章 | MCP 服务器 |
| :- | :- | :- | :- |
| **提供内容** | 完整文档索引 | 单篇文章内容 | 实时规范 + 所有文档 |
| **需要设置** | 否 | 否 | 是的（JSON 配置） |
| **最适合** | 提供宏观地图 | 深入了解单个主题的上下文 | 集成开发环境（IDE） |
| **自动更新** | 是的 | 是的 | 是的 |
| **适用于任意聊天** | 是的 | 是的 | 需要兼容 MCP 的客户端 |
| **token 成本** | 低（仅索引） | 中（一篇文章） | 极低（按需查询） |

> [!NOTE]
>
> **推荐工作流程**：先使用 `llms.txt` 为 LLM 提供整体方向，然后使用纯文本文章 URL 获取您所需的特定指南；如果您希望 AI 在编辑器中以交互方式查询规范，请配置 [MCP 服务器](https://docs.localpayment.com/zh/docs/mcp-server.md)。

***

## 后续步骤

> [card] [MCP 服务器](https://docs.localpayment.com/zh/docs/mcp-server.md)
>
> 将您的 AI 编辑器连接到 Localpayment 的实时 API 规范，以实现实时 endpoint 发现和代码生成。

> [card] [提示库](https://docs.localpayment.com/zh/docs/prompt-library.md)
>
> 可直接使用的集成、调试和测试提示——无论是否使用 MCP 均可优化使用。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.