> For the complete documentation index, see [llms.txt](https://gitbook-v2-enkx7acxr-gitbook.vercel.app/url/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-v2-enkx7acxr-gitbook.vercel.app/url/gitbook.com/docs/gitbook-documentation.md).

# GitBook documentation

## Documentation your users actually read

Write in the editor, drive it from your agent, or sync it from Git. Publish a docs site your team maintains without fighting it.

<button type="button" class="button primary" data-action="ask" data-icon="gitbook-assistant">What are you trying to do?</button>

<a href="/pages/LeZB5bRRRrTrkSl678Cp" class="button primary">Quickstart</a><a href="/pages/NiMm2ls8TMSz6Si8wY61" class="button secondary" data-icon="sparkles">GitBook MCP</a>

<h3 align="center">How do you want to work?</h3>

<p align="center">The same docs, three ways in. Most teams use more than one.</p>

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td><h4><i class="fa-hand-pointer">:hand-pointer:</i></h4></td><td><h4>In the editor</h4></td><td>Write and publish visually. Blocks, change requests, and review without touching a terminal.</td><td><a data-mention href="/pages/LeZB5bRRRrTrkSl678Cp">/pages/LeZB5bRRRrTrkSl678Cp</a></td><td><a data-mention href="/pages/7IXbXmTfJBcU6ulTlEDg">/pages/7IXbXmTfJBcU6ulTlEDg</a></td><td><a data-mention href="/pages/LhRX6q09LqLQChgHEgh8">/pages/LhRX6q09LqLQChgHEgh8</a></td></tr><tr><td><h4><i class="fa-claude">:claude:</i> <i class="fa-chatgpt">:chatgpt:</i> <i class="fa-cursor">:cursor:</i></h4></td><td><h4>From your agent</h4></td><td>Drive GitBook from Claude, Cursor, or any MCP client. Draft, restructure, and open change requests.</td><td><a data-mention href="/pages/HzpkoWwYu6eCKccs3i93">/pages/HzpkoWwYu6eCKccs3i93</a></td><td><a data-mention href="/pages/NiMm2ls8TMSz6Si8wY61">/pages/NiMm2ls8TMSz6Si8wY61</a></td><td><a data-mention href="/pages/7kwhl5QIBiI80sIQe3Ap">/pages/7kwhl5QIBiI80sIQe3Ap</a></td></tr><tr><td><h4><i class="fa-code">:code:</i></h4></td><td><h4>With code</h4></td><td>Sync from Git, script with the CLI, or build on the API and ship your own components.</td><td><a data-mention href="/pages/ZeINibdfQnasG3bUHsjg">/pages/ZeINibdfQnasG3bUHsjg</a></td><td><a data-mention href="/spaces/2SyQSbIa1iYS7z6Dx5di/pages/RUvdmIKeuCU1QCU5Uett">/spaces/2SyQSbIa1iYS7z6Dx5di/pages/RUvdmIKeuCU1QCU5Uett</a></td><td><a data-mention href="/spaces/2SyQSbIa1iYS7z6Dx5di/pages/jhdTmASIb9DOuSM8syCP">/spaces/2SyQSbIa1iYS7z6Dx5di/pages/jhdTmASIb9DOuSM8syCP</a></td></tr></tbody></table>

***

<h3 align="center">From first draft to published site</h3>

<p align="center">Follow it end to end, or pick up where you left off.</p>

<table data-card-wrap="false" data-view="cards"><thead><tr><th><select><option value="tYrMrLMXUpio" label="CREATE" color="blue"></option><option value="d22AQrHOOWqZ" label="COLLABORATE" color="blue"></option><option value="gRpitypvSxnY" label="PUBLISH" color="blue"></option><option value="jRHQeaWBEkNl" label="IMPROVE" color="blue"></option></select></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td><span data-option="tYrMrLMXUpio">CREATE</span></td><td><h4>Get content in</h4></td><td>Start fresh or bring what you have.</td><td><a data-mention href="/pages/LeZB5bRRRrTrkSl678Cp">/pages/LeZB5bRRRrTrkSl678Cp</a></td><td><a data-mention href="/pages/qt1ABAgInf3SoswVGWOD">/pages/qt1ABAgInf3SoswVGWOD</a></td><td><a data-mention href="/pages/Cxth7vTEkFBerVk2ifJf">/pages/Cxth7vTEkFBerVk2ifJf</a></td><td><a data-mention href="/pages/xm6T8EpV4FqtdPLzZ8qN">/pages/xm6T8EpV4FqtdPLzZ8qN</a></td><td><a data-mention href="/pages/P1KDKqvNpca90nC9Ht3k">/pages/P1KDKqvNpca90nC9Ht3k</a></td></tr><tr><td><span data-option="d22AQrHOOWqZ">COLLABORATE</span></td><td><h4>Work as a team</h4></td><td>Review before anything goes live.</td><td><a data-mention href="/pages/63708FEvI5p290523NgW">/pages/63708FEvI5p290523NgW</a></td><td><a data-mention href="/pages/fwU0p5Biy0Fnr0NPxOjK">/pages/fwU0p5Biy0Fnr0NPxOjK</a></td><td><a data-mention href="/pages/BDFmtYDAeHiD3NRPJ8sy">/pages/BDFmtYDAeHiD3NRPJ8sy</a></td><td><a data-mention href="/pages/XuFPQb7VilrPre0sbNEu">/pages/XuFPQb7VilrPre0sbNEu</a></td><td><a data-mention href="/pages/HzpkoWwYu6eCKccs3i93">/pages/HzpkoWwYu6eCKccs3i93</a></td></tr><tr><td><span data-option="gRpitypvSxnY">PUBLISH</span></td><td><h4>Ship your site</h4></td><td>Structure, brand, and control access.</td><td><a data-mention href="/pages/LhRX6q09LqLQChgHEgh8">/pages/LhRX6q09LqLQChgHEgh8</a></td><td><a data-mention href="/pages/1XRw1GP3RDSWHxEE1tQb">/pages/1XRw1GP3RDSWHxEE1tQb</a></td><td><a data-mention href="/pages/d9NivHBiVedTIKopEvBl">/pages/d9NivHBiVedTIKopEvBl</a></td><td><a data-mention href="/pages/Uw6wR2SFhrBGaAVOYbTG">/pages/Uw6wR2SFhrBGaAVOYbTG</a></td><td><a data-mention href="/pages/1jXhhA4CEgYWHkM7L2H0">/pages/1jXhhA4CEgYWHkM7L2H0</a></td></tr><tr><td><span data-option="jRHQeaWBEkNl">IMPROVE</span></td><td><h4>Learn what works</h4></td><td>See what readers need next.</td><td><a data-mention href="/pages/26Gxb8Al3EJRM41yVVxc">/pages/26Gxb8Al3EJRM41yVVxc</a></td><td><a data-mention href="/pages/XzaPTAotGlG6FXnRb9Nq">/pages/XzaPTAotGlG6FXnRb9Nq</a></td><td><a data-mention href="/pages/MtdOsicsFNRM0sxuZP4I">/pages/MtdOsicsFNRM0sxuZP4I</a></td><td><a data-mention href="/pages/rcmnyzKOgcYE9OgyZD2Y">/pages/rcmnyzKOgcYE9OgyZD2Y</a></td><td><a data-mention href="/pages/pQI5kA4D8MsUdAtYCL3v">/pages/pQI5kA4D8MsUdAtYCL3v</a></td></tr></tbody></table>

***

<h3 align="center">AI out of the box</h3>

<p align="center">Two work for you while you write. Two work for your readers after you publish.</p>

<table data-card-wrap="false" data-view="cards"><thead><tr><th><select><option value="2Uw7O5pXC3Za" label="WRITES WITH YOU" color="blue"></option><option value="sNOKy9iL9Mtv" label="FINDS THINGS" color="blue"></option><option value="nGF5DOSuoMEQ" label="ANSWERS READERS" color="blue"></option><option value="tPcprkNCfFXJ" label="SERVES AGENTS" color="blue"></option></select></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><span data-option="2Uw7O5pXC3Za">WRITES WITH YOU</span></td><td><h4>GitBook Agent</h4></td><td>Drafts, edits, reviews change requests, and flags gaps against your style guide.</td><td><a href="/pages/e1tqTUdzJ9z1vCuzrcC8">/pages/e1tqTUdzJ9z1vCuzrcC8</a></td></tr><tr><td><span data-option="sNOKy9iL9Mtv">FINDS THINGS</span></td><td><h4>AI Search</h4></td><td>Natural-language search across your content, in the app and on your published site.</td><td><a href="/pages/MCMfIAhwG9Os2PywCGB1">/pages/MCMfIAhwG9Os2PywCGB1</a></td></tr><tr><td><span data-option="nGF5DOSuoMEQ">ANSWERS READERS</span></td><td><h4>GitBook Assistant</h4></td><td>Answers questions on your site from your docs and connected support sources.</td><td><a href="/pages/m6LOhkgWYpmL4u1LYydz">/pages/m6LOhkgWYpmL4u1LYydz</a></td></tr><tr><td><span data-option="tPcprkNCfFXJ">SERVES AGENTS</span></td><td><h4>MCP for your docs</h4></td><td>Your published docs as a tool, so your customers' agents can read them properly.</td><td><a href="/pages/biYvWYyOTbkQs94S5MI1">/pages/biYvWYyOTbkQs94S5MI1</a></td></tr></tbody></table>

***

<h3 align="center">Keep going</h3>

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4><i class="fa-book">:book:</i></h4></td><td><h4>Concepts</h4></td><td>Learn about GitBook concepts.</td><td><a href="/pages/C3gjS9FbT1OkHdD01UJd">/pages/C3gjS9FbT1OkHdD01UJd</a></td></tr><tr><td><h4><i class="fa-clock-rotate-left">:clock-rotate-left:</i></h4></td><td><h4>Changelog</h4></td><td>See our latest releases.</td><td><a href="/spaces/PGZZo1PCN4rYgFLPD8Cl">/spaces/PGZZo1PCN4rYgFLPD8Cl</a></td></tr><tr><td><h4><i class="fa-life-ring">:life-ring:</i></h4></td><td><h4>Support</h4></td><td>Contact us or report a bug.</td><td><a href="/pages/aklSzDuTwEiH2cX7emk8">/pages/aklSzDuTwEiH2cX7emk8</a></td></tr></tbody></table>


---

# 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-v2-enkx7acxr-gitbook.vercel.app/url/gitbook.com/docs/gitbook-documentation.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.
