For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
预约演示登录免费开始
  • 入门
    • 概览
    • 工作原理
    • 快速开始
    • 项目结构
    • Customer showcase
    • 变更日志
  • 配置
    • 概览
    • 站点级设置
    • 页面级设置
  • 编写内容
    • Markdown 基础
    • Markdown 中的富媒体
    • Fern 编辑器
    • 可复用代码片段
  • AI 功能
    • 概览
    • Fern Writer
    • AI 生成的示例
    • Markdown 访问
      • 概览
      • Agent 指令
      • 智能体指令
      • 分析与集成
    • MCP 服务器
    • API 目录发现
  • Public API
    • GETJWT from Fern API key
    • GETAlgolia search credentials
    • GETCurrent user information
  • Fern Writer API
    • GETGet Fern Writer Install Link
Checking status...
SOC2Soc 2 Type II
© 2026 Fern • Birch Solutions, Inc., a Postman company

Documentation

SDKsDocsAsk FernCLI Reference

API Definitions

OpenAPIAsyncAPIOpenRPCgRPC

Resources

BlogSupportPricing

Company

Brand KitPrivacy PolicyTerms of Service
LogoLogo
预约演示登录免费开始
在本页
  • 自定义 agent 指令
AI 功能llms-txt

Agent 指令

||以 Markdown 格式查看|
此页面是否有帮助?
在仪表板中编辑
上一个

自定义 LLM 输出

下一个

分析和集成

提供给 AI agents 的每个页面都会自动预置一个默认指令,告诉 agents 如何以编程方式导航您的文档:

默认页面指令
For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://docs.example.com/llms.txt. For full documentation content, see https://docs.example.com/llms-full.txt.

指令中的 URL 是根据您网站的域名和基础路径生成的。指令在前言元数据部分之后但页面正文之前注入,因此即使 agents 截断页面的其余部分,它们也会首先看到指令。它适用于单个页面 Markdown(.md/.mdx URLs)和 llms-full.txt 中的每个页面部分,面向人类的文档不受影响。

自定义 agent 指令

要覆盖默认指令,请使用 docs.yml 中的 agents 键设置自定义指令:

docs.yml
1agents:
2 page-directive: "For a complete page index, fetch https://docs.example.com/llms.txt"

要完全禁用指令,请将 page-directive 设置为空字符串:

docs.yml
1agents:
2 page-directive: ""