> 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対応ドキュメント

公開したドキュメントを、AI ツールが見つけ、読み、使いやすくしましょう

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` をdocsサイトのルートURLの末尾に追加してください。

公開されたすべてのページとMarkdown版を一覧表示します。AIツールはこのインデックスを使ってドキュメントを見つけられます。

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

## llms-full.txt

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

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

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

## 公開ドキュメント向けMCPサーバー

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

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

追加 `/~gitbook/mcp` をdocsサイトのルートURLの末尾に追加してください。たとえば、GitBookのMCPサーバーは `https://gitbook.com/docs/~gitbook/mcp`.

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

詳細は次を参照してください [公開ドキュメント向けMCPサーバー](/docs/documentation/ja-gitbook-documentation/kenoai/mcp-servers-for-published-docs.md).

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

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

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

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

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

### 翻訳を整合させる

複数言語で公開する場合は、各翻訳を元のソースと整合させてください。

[翻訳](/docs/documentation/ja-gitbook-documentation/gitbook-jento/translations.md) は、GitBook Agentを使ってコンテンツをローカライズできます。ソースコンテンツが変更されると、GitBookは翻訳版の整合性を保てます。

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

使用 [サイトアナリティクス](/docs/documentation/ja-gitbook-documentation/fen-xi/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.
