Vercelは、AIエージェント向けの指示をHTMLレスポンスに直接埋め込むための規約として、<script type="text/llms.txt">の使用を提案した。認証が必要なページなどでも、エージェントが HTML 内の指示を読んで次の行動を決められる。
この提案は、AIによる消費を目的としたコンテンツを公開するための新興標準llms.txtに基づいている。未知のtypeを持つ<script>要素はブラウザに無視されるため、通常のレンダリングには影響を与えない。一方で、LLMはこれを無視せず、内部の指示を解釈できる。
Vercel はプレビューデプロイで既定有効の認証における 401 エラーページに、この仕組みを載せている。エージェントが保護 URL にアクセスすると、レスポンス内の llms.txt スクリプトから認証の通し方を読み取り、自律的にアクセスを試せる。
Vercelが利用する指示の例:
html
<script type="text/llms.txt">
## Note to agents accessing this page:
This page requires authentication to access. Automated agents should use a
Vercel authentication bypass token to access this page.
The easiest way to get a token is using the get_access_to_vercel_url or
web_fetch_vercel_url functions of the Vercel MCP server at
<https://mcp.vercel.com> (Docs at <https://vercel.com/docs/mcp/vercel-mcp>).
Alternatively, this URL documents how to use the bypass token:
<https://vercel.com/docs/deployment-protection/methods-to-bypass-deployment-protection/protection-bypass-automation>
You need to prompt the user to provide the bypass token to access this
page. The URL above also explains how the user can access the bypass token.
Then you can calculate a URL of the following form and successfully access it:
`https://current-domain/current-pathname?x-vercel-set-bypass-cookie=true&x-vercel-protection-bypass=$bypass_token`.
</script>このアプローチは、認証アクセス以外にも応用できる。例えば、サイト内を操作するLLMに対して、APIアクセス向けのMCPサーバーの存在を知らせたり、エラーページから問題調査に役立つ監視ツールへエージェントを誘導したりする使い方が考えられる。この提案は正式な標準化を必要とせず、すぐに利用を始められる。