> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/ja-gitbook-documentation/getting-started/llm-ready-docs.md).

# LLM 対応ドキュメント

GitBook は、docs サイト向けに AI に適した形式を自動的に公開します。

これらは、大規模言語モデル（LLM）、コーディングエージェント、AI 検索システムに役立ちます。これらのツールは、HTML を解析しなくても正確なドキュメントを見つけて取得できます。

## Markdown ページ

追加 `.md` を公開済みページの URL に追加すると、その Markdown を表示できます。Markdown は、周囲の HTML なしで AI ツールに構造化されたコンテンツを提供します。

<a href="https://gitbook.com/docs/publishing-documentation/llm-ready-docs.md" class="button primary">このページの .md ファイルを見る</a>

## llms.txt

[llms.txt](https://llmstxt.org/) は、LLM に適した Web コンテンツのための提案標準です。末尾に追加 `/llms.txt` をドキュメントサイトのルート URL に追加します。

Markdown 版がある公開済みページをすべて一覧表示します。AI ツールはこのインデックスを使ってドキュメントを見つけることができます。

<a href="https://gitbook.com/docs/llms.txt" class="button primary">GitBook ドキュメントの /llms.txt を確認する</a>

## llms-full.txt

追加 `/llms-full.txt` をドキュメントサイトのルート URL に追加します。このファイルには、ドキュメント全体の内容が 1 か所にまとめられています。

非表示ページは次に含まれます `llms-full.txt`。ページを非表示にしても、公開済みの目次から削除されるだけです。

<a href="https://gitbook.com/docs/llms-full.txt" class="button primary">GitBook ドキュメントの /llms-full.txt ファイルを確認する</a>

## 公開済みドキュメント用の MCP サーバー

GitBook は、公開済みのすべてのドキュメントサイトに Model Context Protocol（MCP）サーバーを公開しています。対応ツールは、構造化されたリソースとしてドキュメントを見つけて取得できます。

非表示ページは、サイトの MCP サーバー経由でも引き続き利用できます。ページを非表示にしても、公開済みの目次から削除されるだけです。

追加 `/~gitbook/mcp` をドキュメントサイトのルート URL に追加します。たとえば、GitBook の MCP サーバーは次のとおりです。 `https://gitbook.com/docs/~gitbook/mcp`.

{% hint style="info" %}
この URL をブラウザーで開くとエラーが返ります。HTTP リクエストを送信できるツールを使用してください。
{% endhint %}

詳細は次をご覧ください [公開済みドキュメント向けの MCP サーバー](/docs/documentation/ja-gitbook-documentation/notameno-ai/mcp-servers-for-published-docs.md).

## AI 向けにドキュメントを最適化する

GitBook は配信レイヤーを処理します。あなたの文章が、AI の回答品質を左右します。

AI ツールが確実に解釈できるコンテンツを書きましょう:

* 各ページに明確な目的を持たせる。
* 説明的な見出しと短いセクションを使う。
* 制約、デフォルト、要件を明示的に記述する。
* 具体例と正確な値を含める。
* 製品が変更されたらコンテンツを更新する。

これらの実践は検索精度を高め、曖昧さを減らし、人々が答えを見つけやすくします。

### 翻訳を同期して保つ

複数言語で公開する場合は、各翻訳を原文と対応させて保ってください。

[翻訳](/docs/documentation/ja-gitbook-documentation/gitbook-agent/translations.md) を使うと、GitBook Agent でコンテンツをローカライズできます。元のコンテンツが変更されると、GitBook は翻訳版の対応を維持できます。

### AI トラフィックを測定する

使用する [サイト分析](/docs/documentation/ja-gitbook-documentation/anaritikusu/insights.md) を使って、LLM と MCP クライアントからのトラフィックを追跡します。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/getting-started/llm-ready-docs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
