> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Manage GitBook docs sites and spaces from Guild agents

> Connect Guild agents to GitBook to create spaces, run style guide checks, manage teams, configure redirects, and handle change requests.

Integrations · GitBook

A Guild agent can draft, review, and publish GitBook documentation without manual intervention. Guild stores the GitBook API key server-side and injects it into every request, so agent code never handles credentials directly. Credential policies let you restrict which operations each agent may call, and every request is recorded for audit.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use GitBook.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect GitBook to your first agent.

## What the GitBook integration exposes

The integration provides tools under the gitbook\_ prefix drawn from the GitBook REST API. They cover documentation sites, spaces, pages, change requests, style guide runs, site analytics, redirects, navigation sections, organization members and teams, and site integrations including MCP servers and channel connections. Tools are imported from the `guildai~gitbook` package as GitbookTools.

## How it works

**1. Get a GitBook API key**

Generate an API key in your GitBook account settings. Keep it ready to paste into Guild.

**2. Connect the credential in Guild**

Go to Access & setup > Credentials, click Connect, select gitbook, and paste the key into API Key. See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped options.

**3. Add GitbookTools to your agent**

Import GitbookTools from `@guildai-services/guildai~gitbook` and spread it into your agent's tools object. Use pick() to include only the tools your agent needs.

## Why GitBook access needs governing

GitBook tools can create and delete sites, permanently remove spaces after 7 days, bulk-upsert up to 500 redirects, and manage SAML providers and SCIM connections. Without controls, any agent using the credential could act on any resource it can reach. Guild's credential proxy checks credential policies before every request leaves the platform, so a DENY rule blocks an operation before it reaches GitBook.

You can scope a credential to one workspace, one member, or one agent using the options on the Credentials page, then write ALLOW and DENY rules that restrict operations by name or wildcard pattern. See [Credential policies](https://docs.guild.ai/platform/credential-policies.md) for rule syntax and [Credentials](https://docs.guild.ai/platform/credentials.md) for scoping options. An agent that only needs to run style guide checks gets rules that permit only those tools; an agent that manages redirects gets no access to member or team operations.

## About the GitBook integration

Agents can create and update GitBook documentation sites, spaces, and pages, manage organization members and teams, and configure site navigation, redirects, and integrations. They can also query site analytics, run style guide checks, and handle change requests for content review workflows. The integration is `guildai~gitbook`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as a bearer token in the `Authorization` header

### Setup

**1. Connect GitBook**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **gitbook**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { GitbookTools } from "@guildai-services/guildai~gitbook"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with GitBook.",
  tools: { ...GitbookTools },
})
```

### Selecting specific tools

Tools are named with the `gitbook_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~gitbook`:

> [accordion] All 410 tools
>
> | Tool | What it does |
> | - | - |
> | `gitbook_add_external_link_to_site` | Creates an external navigation link at the site root or in a section group. |
> | `gitbook_add_member_to_organization_team_by_id` | Add or updates member in the specified organization team. |
> | `gitbook_add_organization_domain` | Adds an email domain. |
> | `gitbook_add_section_group_to_site` | Creates a new section group to organize multiple sections under a shared navigation label. |
> | `gitbook_add_section_to_site` | Creates a new top-level navigation section in the site. |
> | `gitbook_add_space_to_site` | Pass an existing space ID to link it, or pass 'null' to create and link a new space. |
> | `gitbook_ads_list_sites` | List all the sites with ads configured |
> | `gitbook_ads_update_site` | Update the Ads configuration for a site |
> | `gitbook_aggregate_site_events` | Runs an aggregation query over a published site's Insights events, grouped and filtered over a time range. |
> | `gitbook_apply_site_finding_action` | Applies one of the 'actions' a finding lists, with the site permission it gives: resolve, dismiss or reopen it, act on a broken link's redirect, or reject the change request GitBook drafted for an… |
> | `gitbook_apply_template_to_site` | Populates an empty site with GitBook's default documentation structure, content, and customization. |
> | `gitbook_apply_template_to_space` | Populates a space with pages and structure from a specified template, bootstrapping it with a standard documentation layout. |
> | `gitbook_ask_in_organization` | Ask a question to an AI across spaces that is accessible by the currently authenticated target. |
> | `gitbook_bulk_upsert_site_redirects` | Processes up to 500 redirect operations in a single request. |
> | `gitbook_cancel_import_run` | Cancel an import run |
> | `gitbook_confirm_integration_o_auth_transaction` | Confirms, as the user who created the transaction, the provider callback GitBook intercepted for it. |
> | `gitbook_consume_integration_o_auth_transaction` | Consumes the OAuth transaction whose ID was received as the 'state' of an OAuth callback. |
> | `gitbook_create_change_request` | Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. |
> | `gitbook_create_collection` | Create a collection |
> | `gitbook_create_custom_font` | Create a custom font |
> | `gitbook_create_integration_installation_token` | Creates a temporary API token of an integration's installation that has access to the installation and it's scopes. |
> | `gitbook_create_integration_o_auth_transaction` | Creates a short-lived, single-use transaction binding an OAuth authorization flow to the authenticated user, the installation and an optional space or site installation. |
> | `gitbook_create_open_api_spec` | Adds an OpenAPI spec to the organization, from a URL or from its text. |
> | `gitbook_create_organization` | Create an organization |
> | `gitbook_create_organization_id_p_connection` | Creates a connection with its SAML service provider URLs and a SCIM token. |
> | `gitbook_create_organization_invite` | Create an organization invite |
> | `gitbook_create_organization_saml_provider` | Create a new SAML provider |
> | `gitbook_create_organization_scim_connection` | Creates a SCIM connection and its token. |
> | `gitbook_create_organization_team` | Create a team |
> | `gitbook_create_or_update_open_api_spec_by_slug` | Creates the organization's OpenAPI spec with this slug, or replaces its source with a new version. |
> | `gitbook_create_site` | Creates a new documentation site within the organization. |
> | `gitbook_create_site_change_request` | Creates a change request reviewing the site, as a draft working copy of the content of the spaces it changes. |
> | `gitbook_create_site_channel` | Configures a new channel integration that allows GitBook Agent to operate within an external tool connected to this site. |
> | `gitbook_create_site_context_connection` | Create a context connection |
> | `gitbook_create_site_mcp_server` | Registers a new Model Context Protocol (MCP) server with the site, providing its URL, transport type, request headers, and an optional conditional expression to control visibility per visitor. |
> | `gitbook_create_site_redirect` | Creates a new redirect rule mapping a source path to a destination URL or content reference. |
> | `gitbook_create_site_share_link` | Creates a new named share link that grants access to the private site without requiring full user authentication. |
> | `gitbook_create_site_styleguide_by_id` | Ensures the site has a dedicated style guide space and returns it. |
> | `gitbook_create_site_styleguide_run` | Starts a style guide check: GitBook Agent reviews the given spaces against the site's style guide and proposes fixes. |
> | `gitbook_create_space` | Creates a new space within the organization. |
> | `gitbook_create_translation` | Create a translation |
> | `gitbook_create_user_notifications_token` | Generates a JWT for the authenticated user. |
> | `gitbook_delete_collection_by_id` | Delete a collection |
> | `gitbook_delete_comment_in_change_request` | Delete a change request comment |
> | `gitbook_delete_comment_in_space` | Delete a space comment |
> | `gitbook_delete_comment_reply_in_change_request` | Delete a change request comment reply |
> | `gitbook_delete_comment_reply_in_space` | Delete a space comment reply |
> | `gitbook_delete_custom_font` | Delete a custom font |
> | `gitbook_delete_member_from_organization_team_by_id` | Deletes member from the specified organization team. |
> | `gitbook_delete_open_api_spec_by_slug` | Delete an OpenAPI spec |
> | `gitbook_delete_organization_domain` | Removes an email domain. |
> | `gitbook_delete_organization_id_p_connection` | Deletes a connection. |
> | `gitbook_delete_organization_invite_by_id` | Deletes an organization invite. |
> | `gitbook_delete_organization_saml_provider` | Delete a SAML provider |
> | `gitbook_delete_organization_scim_connection` | Deletes a SCIM connection. |
> | `gitbook_delete_site_by_id` | Delete a site |
> | `gitbook_delete_site_change_request_by_id` | Permanently deletes a change request and its members. |
> | `gitbook_delete_site_channel_by_id` | Removes the channel configuration from the site, so GitBook Agent stops answering and collaborating through the connected platform. |
> | `gitbook_delete_site_context_connection_by_id` | Delete a context connection |
> | `gitbook_delete_site_external_link_by_id` | Deletes an external link. |
> | `gitbook_delete_site_mcp_server_by_id` | Delete a site MCP server |
> | `gitbook_delete_site_redirect_by_id` | Delete a site redirect |
> | `gitbook_delete_site_section_by_id` | Delete a site section |
> | `gitbook_delete_site_section_group_by_id` | Delete a site section group |
> | `gitbook_delete_site_share_link_by_id` | Deletes a share link |
> | `gitbook_delete_site_space_by_id` | Delete a site space |
> | `gitbook_delete_site_space_customization_by_id` | Delete a site space customization settings |
> | `gitbook_delete_site_topic_findings` | Permanently deletes every finding associated with a site topic, regardless of status. |
> | `gitbook_delete_space_by_id` | Deleted spaces will be permanently removed after 7 days. |
> | `gitbook_delete_translation` | Delete a translation |
> | `gitbook_dns_revalidate_custom_hostname` | Revalidate DNS records and status. |
> | `gitbook_duplicate_site_space` | Creates a full copy of the space linked by the specified site space. |
> | `gitbook_duplicate_space` | Creates a new space that is a complete copy of the specified space, including all pages and their content. |
> | `gitbook_export_to_git_repository` | Triggers an export of the space's current content to the provided Git repository. |
> | `gitbook_generate_site_search_pass` | Exchanges the content token of a published site's visitor for a short-lived search pass, which lets the visitor's browser call the site search operation directly. |
> | `gitbook_generate_storage_upload_url` | Generate a pre-signed URL that can be used to upload a file to storage |
> | `gitbook_get_api_information` | Access the release version and build date of the GitBook codebase. |
> | `gitbook_get_authenticated_user` | Returns details about the user associated with the authentication provided in the request's authorization header. |
> | `gitbook_get_change_request_by_id` | Retrieves the full details of a single change request, including its status, subject, description, and metadata. |
> | `gitbook_get_change_request_changes` | Returns the semantic diff between the change request's current content and the base revision it branched from. |
> | `gitbook_get_change_request_pdf` | Generates a temporary URL (valid for 1 hour) to download the change request's draft content as a PDF. |
> | `gitbook_get_change_request_review_by_id` | Retrieves the full details of a single review submission on a change request, including the decision status (approved/changes-requested), reviewer, and any attached comment. |
> | `gitbook_get_collection_by_id` | Get a collection by its ID |
> | `gitbook_get_comment_in_change_request` | Retrieves a specific comment from a change request, including its content, author, and anchor location. |
> | `gitbook_get_comment_in_space` | Returns a specific comment posted on a space. |
> | `gitbook_get_comment_reply_in_change_request` | Retrieves a specific reply within a change request comment thread. |
> | `gitbook_get_comment_reply_in_space` | Returns a specific reply to a comment in a space. |
> | `gitbook_get_computed_document` | Server-renders a document from a provided content source definition, evaluating template expressions and resolving variables to produce a fully computed document. |
> | `gitbook_get_computed_revision` | Server-renders an entire revision — pages, files, and reusable contents — from a provided content source definition, resolving all template expressions and variables. |
> | `gitbook_get_content_by_url` | Resolve a URL to a content (space, collection, page) |
> | `gitbook_get_contributors_by_change_request_id` | Returns a list of users who have contributed content edits to the change request. |
> | `gitbook_get_current_revision` | Retrieves the live published revision of a space, which includes the full page tree structure and associated files. |
> | `gitbook_get_custom_font` | Get a custom font by its ID |
> | `gitbook_get_custom_hostname` | Get a custom hostname |
> | `gitbook_get_document_by_id` | Returns the structured JSON document for a specific document ID within a space. |
> | `gitbook_get_embed_by_url` | Resolve a URL to an embed |
> | `gitbook_get_embed_by_url_in_space` | Resolves an external URL to an oEmbed representation (title, thumbnail, HTML snippet) within the context of a space. |
> | `gitbook_get_file_by_id` | Retrieves metadata and download URL for a single file (image, attachment, or other asset) in a space's current revision by its file ID. |
> | `gitbook_get_file_in_change_request_by_id` | Retrieves metadata for a single file (image or attachment) stored in the change request's current revision. |
> | `gitbook_get_file_in_revision_by_id` | Returns the metadata for a single file (image or binary asset) within a specific revision of a space. |
> | `gitbook_get_git_hub_repo_file_for_git_sync_installation` | Get a file from a GitHub repository for a Git Sync installation |
> | `gitbook_get_git_lab_project_file_for_git_sync_installation` | Get a file from a GitLab project for a Git Sync installation |
> | `gitbook_get_git_sync_installation_by_id` | Get a Git Sync installation |
> | `gitbook_get_glossary_entry` | Get a glossary entry by its ID |
> | `gitbook_get_import_run` | Returns the import run. |
> | `gitbook_get_integration_by_name` | Returns a single integration by its unique name, including the configuration it expects, the targets it can be installed on, and the permissions it requests. |
> | `gitbook_get_integration_event` | Get an integration event by its ID |
> | `gitbook_get_integration_installation_by_id` | Returns the organization-level installation of an integration, including its account configuration and how many spaces it manages. |
> | `gitbook_get_integration_site_installation` | Returns the installation of an integration on one site, including the configuration of the integration for that site. |
> | `gitbook_get_integration_space_installation` | Returns the installation of an integration on one space, including the configuration of the integration for that space. |
> | `gitbook_get_latest_open_api_spec_version` | Get the latest OpenAPI spec version |
> | `gitbook_get_latest_open_api_spec_version_content` | Get the latest OpenAPI spec version content |
> | `gitbook_get_latest_open_api_spec_version_content_raw` | Get the raw content of the latest OpenAPI spec version |
> | `gitbook_get_member_in_organization_by_id` | Returns a member of the organization. |
> | `gitbook_get_open_api_spec_by_slug` | Get an OpenAPI spec by its slug |
> | `gitbook_get_open_api_spec_content_in_site_revision` | Retrieves the content of the OpenAPI spec version the site revision pins. |
> | `gitbook_get_open_api_spec_version_by_id` | Get an OpenAPI spec version by its ID |
> | `gitbook_get_open_api_spec_version_content_by_id` | Get an OpenAPI spec version content by its ID |
> | `gitbook_get_organization_agent_instructions` | Get Docs agent instructions for an organization |
> | `gitbook_get_organization_ai_usage` | Returns recorded AI usage for an organization. |
> | `gitbook_get_organization_audit_event` | Returns the full allowlisted payload for one recorded organization change. |
> | `gitbook_get_organization_by_id` | Get an organization by its ID |
> | `gitbook_get_organization_domain` | Get an email domain of an organization |
> | `gitbook_get_organization_id_p_connection` | Get an identity provider connection by its ID |
> | `gitbook_get_organization_integration_status` | Returns whether an integration is installed for the organization and the status of that installation. |
> | `gitbook_get_organization_invite_link` | Get an organization by its ID |
> | `gitbook_get_organization_saml_provider_by_id` | Get a SAML provider by its ID |
> | `gitbook_get_organization_scim_connection` | Get a SCIM connection by its ID |
> | `gitbook_get_organizations_for_email_domain` | Get all organizations by email domain |
> | `gitbook_get_organization_subscription` | Returns whether the organization is on a trial, the free plan or a paid plan, when its trial ends, and where to upgrade. |
> | `gitbook_get_page_by_id` | Retrieves a page's metadata, content, and document structure from a space's current revision by its page ID. |
> | `gitbook_get_page_by_path` | Retrieves a page by its URL path (e.g. /guides/getting-started) from the space's current revision. |
> | `gitbook_get_page_by_path_in_site_revision` | Returns the page at a path in the revision a space was at when the site revision was recorded. |
> | `gitbook_get_page_document_in_revision_by_id` | Returns the structured JSON document (block tree) for a specific page within a historical revision of a space. |
> | `gitbook_get_page_document_in_site_revision` | Returns the structured JSON document of a page in the revision a space was at when the site revision was recorded. |
> | `gitbook_get_page_in_change_request_by_id` | Retrieves a specific page from a change request's draft content, including its title, metadata, and body document. |
> | `gitbook_get_page_in_change_request_by_path` | Retrieves a specific page from a change request's draft content using its URL path (e.g., "getting-started/installation") rather than its ID. |
> | `gitbook_get_page_in_revision_by_id` | Returns the full page object (metadata and optionally document content) for a specific page within a historical revision. |
> | `gitbook_get_page_in_revision_by_path` | Returns a page from a historical revision looked up by its URL path (e.g. "getting-started/installation") rather than its ID. |
> | `gitbook_get_page_in_site_revision` | Returns a page in the revision a space was at when the site revision was recorded. |
> | `gitbook_get_published_content_by_url` | Resolve a URL of a published content. |
> | `gitbook_get_published_content_site` | Returns the complete profile needed to render the published experience of a site. |
> | `gitbook_get_recommended_questions_in_organization` | List recommended questions to ask in an organization |
> | `gitbook_get_requested_reviewers_by_change_request_id` | Returns a paginated list of users who have been explicitly requested to review the change request. |
> | `gitbook_get_reusable_content_by_id` | Retrieves a reusable content block (a shared snippet that can be embedded across multiple pages) from a space's current revision by its ID. |
> | `gitbook_get_reusable_content_document_in_revision_by_id` | Returns the structured JSON document (block tree) for a reusable content block within a specific historical revision of a space. |
> | `gitbook_get_reusable_content_document_in_site_revision` | Returns the document of a reusable content in the revision a space was at when the site revision was recorded. |
> | `gitbook_get_reusable_content_in_change_request_by_id` | Retrieves a specific reusable content block (a shared snippet that can be embedded across multiple pages) from the change request's draft revision. |
> | `gitbook_get_reusable_content_in_revision_by_id` | Returns metadata for a specific reusable content block within a historical revision of a space. |
> | `gitbook_get_reviews_by_change_request_id` | Returns a paginated list of reviews submitted for the change request. |
> | `gitbook_get_review_stats_by_change_request_id` | Returns how many reviews were approved and how many requested changes, for the same reviews the list endpoint returns under the same filters. |
> | `gitbook_get_revision_by_id` | Returns a specific revision snapshot of a space by its revision ID, including the page tree structure and revision metadata. |
> | `gitbook_get_revision_in_site_revision` | Retrieves the revision a space of the site was at when the site revision was recorded, including the full page tree structure and associated files. |
> | `gitbook_get_revision_of_change_request_by_id` | Returns the current revision snapshot of the change request, including the full page tree structure and metadata. |
> | `gitbook_get_revision_semantic_changes` | Returns a structured diff of the semantic changes introduced by a revision compared to its parent revision, such as added, removed, or updated pages and blocks. |
> | `gitbook_get_site_adaptive_schema` | Returns the JSON schema that defines the visitor attributes expected by an adaptive content site. |
> | `gitbook_get_site_agent_settings_by_id` | Retrieves the configuration for the AI built into the GitBook editor that assists authors with drafting and refining content changes. |
> | `gitbook_get_site_by_id` | Retrieves full details for a single documentation site. |
> | `gitbook_get_site_change_request_by_id` | Retrieves a single site change request, including its status, subject, description, aggregate version and active members. |
> | `gitbook_get_site_channel_by_id` | Retrieves the configuration of a specific GitBook Agent channel integration, including its connected platform type and role. |
> | `gitbook_get_site_context_connection_by_id` | Get a context connection |
> | `gitbook_get_site_context_record_by_id` | Get a context record |
> | `gitbook_get_site_customization_by_id` | Retrieves the full customization configuration for a site. |
> | `gitbook_get_site_finding_by_id` | Retrieves the full detail of one documentation issue found by GitBook's AI. |
> | `gitbook_get_site_finding_stats` | Returns aggregate statistics about the documentation issues GitBook identified on a site. |
> | `gitbook_get_site_mcp_server_by_id` | Retrieves the configuration of a specific MCP server registered with the site. |
> | `gitbook_get_site_publishing_auth_by_id` | Retrieves the authentication settings that protect a site's published content. |
> | `gitbook_get_site_publishing_preview_by_id` | Generates a time-limited URL (valid for 1 hour) to preview how a site will look when published. |
> | `gitbook_get_site_question_answer_by_id` | Retrieves one Ask AI answer, including the question that prompted it, the response, and its feedback. |
> | `gitbook_get_site_question_answer_thread_by_id` | Returns the full conversation thread for a given Ask AI answer: the sequence of follow-up questions and responses in that exchange. |
> | `gitbook_get_site_question_by_id` | Retrieves one question asked to a site's Ask AI assistant, including its canonical text and aggregate stats. |
> | `gitbook_get_site_question_stats` | Returns aggregate statistics about the questions visitors asked a site's Ask AI assistant over a time range, optionally filtered by topic, relevance, or channel. |
> | `gitbook_get_site_question_timeline` | Returns how many answers the site's Ask AI assistant gave, and to how many visitors, in each UTC bucket of the interval between 'from' and 'to', optionally filtered by topic, relevance, channel… |
> | `gitbook_get_site_redirect_by_source` | Looks up a redirect rule by its source URL path and returns both the redirect configuration and the resolved destination URL. |
> | `gitbook_get_site_scan_by_id` | Get a site scan by ID |
> | `gitbook_get_site_setup` | Lists the steps to set up a site, from a first edit to publishing, and whether each one is completed. |
> | `gitbook_get_site_space_customization_by_id` | Retrieves the customization settings that override the site-level branding for a specific site space, such as a language variant or content version. |
> | `gitbook_get_site_structure` | Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. |
> | `gitbook_get_site_topic_by_id` | Retrieves a single topic of a site by its ID, including its label, its parent topic when it is a subtopic, its summary and usage settings, and its page, record, finding and Ask AI question counts. |
> | `gitbook_get_space_by_id` | Returns the full metadata for a space. |
> | `gitbook_get_space_git_info` | Returns metadata about the Git Sync provider connected to the space. |
> | `gitbook_get_space_pdf` | Returns a short-lived URL (valid for 1 hour) to download the space's content as a PDF file. |
> | `gitbook_get_subdomain` | Get a subdomain |
> | `gitbook_get_team_in_organization_by_id` | Get a team |
> | `gitbook_get_translation` | Get a translation by its ID |
> | `gitbook_get_user_by_id` | Provides publicly available information about someone with a GitBook account. |
> | `gitbook_import_git_repository` | Triggers an import from provided Git repository into the space, updating the space's content to match the repository (if not standalone). |
> | `gitbook_install_git_sync_provider_on_target` | Install a Git Sync provider on a target |
> | `gitbook_install_integration` | Installs an integration on an organization, creating the account-level installation that space and site installations hang off. |
> | `gitbook_install_integration_on_site` | Enables an existing organization-level installation on one site. |
> | `gitbook_install_integration_on_space` | Enables an existing organization-level installation on one space. |
> | `gitbook_invite_to_collection` | Invite to a collection |
> | `gitbook_invite_to_site` | Invite a user or a team to a site |
> | `gitbook_invite_to_space` | Invite a user or a team to a space |
> | `gitbook_invite_users_to_organization` | Optionally adds invitees to teams using teamIds. |
> | `gitbook_join_organization` | Join an organization if the user's verified email domain matches one of the organization's allowed email domains. |
> | `gitbook_join_organization_with_invite` | Join an organization with an invite |
> | `gitbook_list_change_request_conversations` | Returns a paginated list of AI agent conversations that were created in the context of this change request. |
> | `gitbook_list_change_request_page_meta_links` | Returns the structural navigation links for a specific page within a change request, such as its parent page, previous sibling, and next sibling in the page tree. |
> | `gitbook_list_change_requests_for_organization` | Returns a paginated list of change requests across all spaces in the organization. |
> | `gitbook_list_change_requests_for_site` | Returns a paginated list of change requests reviewing the site. |
> | `gitbook_list_change_requests_for_site_finding` | Lists the change requests created to fix a documentation issue. |
> | `gitbook_list_change_requests_for_space` | Returns a paginated list of change requests for the given space. |
> | `gitbook_list_collections_in_organization_by_id` | List all collections |
> | `gitbook_list_commenters_in_change_request` | Returns a paginated list of organization members who have posted at least one comment in the change request. |
> | `gitbook_list_commenters_in_space` | Returns a paginated list of organization members who have posted at least one comment in the space. |
> | `gitbook_list_comment_replies_in_change_request` | Returns a paginated list of replies to a specific top-level comment in a change request. |
> | `gitbook_list_comment_replies_in_space` | Returns a paginated list of replies posted under a specific comment in a space. |
> | `gitbook_list_comments_in_change_request` | Returns a paginated list of comments posted on the change request, optionally filtered by status, target page, or author. |
> | `gitbook_list_comments_in_space` | Returns a paginated list of comments posted directly on the space (not inside a change request). |
> | `gitbook_list_custom_fonts` | List all custom fonts |
> | `gitbook_list_files` | Returns a paginated list of all files (images, attachments, and other assets) uploaded to a space's current revision. |
> | `gitbook_list_files_in_change_request_by_id` | Returns a paginated list of files (images and other attachments) stored in the change request's current revision. |
> | `gitbook_list_files_in_revision_by_id` | Returns a paginated list of files (images and other binary assets) attached to a specific revision of a space. |
> | `gitbook_list_git_hub_repo_branches_for_git_sync_installation` | List GitHub repository branches available for a Git Sync installation |
> | `gitbook_list_git_hub_repositories_for_git_sync_installation` | List GitHub repositories available for a Git Sync installation |
> | `gitbook_list_git_lab_project_branches_for_git_sync_installation` | List GitLab project branches available for a Git Sync installation |
> | `gitbook_list_git_lab_projects_for_git_sync_installation` | List GitLab projects available for a Git Sync installation |
> | `gitbook_list_glossary_entries` | List glossary entries |
> | `gitbook_list_import_runs` | Returns the import runs of the organization, most recent first. |
> | `gitbook_list_integration_events` | List all integration events |
> | `gitbook_list_integration_installations` | List all integration installations |
> | `gitbook_list_integration_installation_sites` | Returns a paginated list of the sites an installation is enabled on, with the configuration of the integration for each of them. |
> | `gitbook_list_integration_installation_spaces` | Returns a paginated list of the spaces an installation is enabled on, with the configuration of the integration for each of them. |
> | `gitbook_list_integrations` | Returns a paginated list of the integrations published in the GitBook marketplace. |
> | `gitbook_list_integration_site_installations` | List all integration site installations |
> | `gitbook_list_integration_space_installations` | List all integration space installations |
> | `gitbook_list_members_in_organization_by_id` | Lists the members of the organization. |
> | `gitbook_list_open_api_specs` | List all OpenAPI spec |
> | `gitbook_list_open_api_spec_versions` | List all OpenAPI spec versions |
> | `gitbook_list_organization_agent_conversations` | Returns a paginated list of the calling user's AI agent conversations with the organization agent. |
> | `gitbook_list_organization_audit_event_actions` | Lists the supported audit event action identifiers and their display labels. |
> | `gitbook_list_organization_audit_events` | Lists recorded changes for an activated organization. |
> | `gitbook_list_organization_domains` | List the email domains of an organization |
> | `gitbook_list_organization_id_p_connections` | List identity provider connections |
> | `gitbook_list_organization_installations` | List all integration installations |
> | `gitbook_list_organization_integrations` | Returns a paginated list of the integrations available to the organization: every publicly published integration plus the private ones the organization owns or is trusted with. |
> | `gitbook_list_organization_integrations_status` | Returns integration installations in the organization. |
> | `gitbook_list_organization_invite_links` | List organization invites |
> | `gitbook_list_organization_scim_connections` | List SCIM connections |
> | `gitbook_list_organizations_for_authenticated_user` | Get the list of organizations for the currently authenticated user |
> | `gitbook_list_organization_styleguides` | Lists every style guide (a space holding a team's writing style guide) in the organization, along with every site that references each one. |
> | `gitbook_list_page_meta_links_in_site_revision` | Returns the meta links of a page in the revision a space was at when the site revision was recorded. |
> | `gitbook_list_pages` | Returns the complete list of all pages in a space's current revision, including their titles, URL paths, and parent-child relationships. |
> | `gitbook_list_pages_for_site_finding` | Lists the site pages a documentation issue relates to. |
> | `gitbook_list_pages_in_change_request` | Returns the full hierarchy of all pages in the change request's current draft revision, including page groups. |
> | `gitbook_list_pages_in_revision_by_id` | Returns the full hierarchy of all pages (document pages and group pages) in a specific historical revision of a space. |
> | `gitbook_list_permissions_aggregate_in_collection` | List all collections users permissions |
> | `gitbook_list_permissions_aggregate_in_site` | List all sites users permissions |
> | `gitbook_list_permissions_aggregate_in_space` | List all space users permissions |
> | `gitbook_list_questions_for_site_finding` | Lists the questions end users asked GitBook's Ask-AI assistant that were used as evidence for a documentation issue. |
> | `gitbook_list_records_for_site_finding` | Lists the context records that GitBook's AI used as evidence for a documentation issue. |
> | `gitbook_list_revision_page_meta_links` | Returns the meta navigation links for a specific page within a historical revision, including the previous and next page in the space's reading order. |
> | `gitbook_list_saml_providers_in_organization_by_id` | Lists SAML providers configured for the specified organization. |
> | `gitbook_list_site_adaptive_template_conditions` | Returns pre-generated condition templates derived from the site's visitor attributes schema. |
> | `gitbook_list_site_channels` | Returns a paginated list of channels configured for the site. |
> | `gitbook_list_site_channel_scopes` | Lists accessible Linear teams, GitHub repositories, Slack channels or Jira projects. |
> | `gitbook_list_site_context_connections` | List all context connections |
> | `gitbook_list_site_context_records` | List all context records |
> | `gitbook_list_site_findings` | Lists the quality issues GitBook's AI has identified on a site by comparing its content against real usage and external sources — content gaps, outdated or incorrect content, and broken or outbound… |
> | `gitbook_list_site_git_sync_installations` | List the Git Sync installations for a site and its spaces |
> | `gitbook_list_site_integrations` | Returns a paginated list of integrations currently enabled on the site. |
> | `gitbook_list_site_integration_scripts` | Returns all integration scripts configured to be injected into the published pages of a site, such as analytics trackers, chat widgets, or custom JavaScript. |
> | `gitbook_list_site_mcp_servers` | Returns a paginated list of Model Context Protocol (MCP) server configurations attached to the site. |
> | `gitbook_list_site_question_answers` | Returns a paginated list of individual Ask AI answers generated for a site. |
> | `gitbook_list_site_question_answer_sources` | Returns the documentation pages the Ask AI assistant cited to produce a given answer. |
> | `gitbook_list_site_questions` | Returns a paginated list of the questions visitors asked a site's Ask AI assistant, each with usage stats. |
> | `gitbook_list_site_question_sources` | Returns the documentation pages the Ask AI assistant used to answer a given question. |
> | `gitbook_list_site_redirects` | Returns a paginated list of redirect rules for the site. |
> | `gitbook_list_sites` | Returns a paginated list of all documentation sites belonging to the organization. |
> | `gitbook_list_site_scans` | List all site scans |
> | `gitbook_list_site_section_groups` | Returns a paginated list of section groups for the site. |
> | `gitbook_list_site_sections` | Returns a paginated list of sections in the site. |
> | `gitbook_list_site_share_links` | Returns a paginated list of share links configured for the site. |
> | `gitbook_list_site_spaces` | Returns a paginated list of site spaces — the links between a site and its content source spaces. |
> | `gitbook_list_site_styleguide_runs` | Returns the site's style guide check runs, most recent first. |
> | `gitbook_list_site_topics` | List all topics |
> | `gitbook_list_site_visitor_segments` | List a site visitor segments |
> | `gitbook_list_space_integrations` | Returns a paginated list of integrations that are currently installed and enabled on the space. |
> | `gitbook_list_space_integrations_blocks` | Returns all custom block types contributed by integrations installed on the space. |
> | `gitbook_list_space_page_meta_links` | Returns structural navigation metadata for a page, including references to the previous page, next page, and parent page within the space's hierarchy. |
> | `gitbook_list_spaces_for_organization_member` | List an organization member space permissions |
> | `gitbook_list_spaces_in_collection_by_id` | List all collection spaces |
> | `gitbook_list_spaces_in_organization_by_id` | Returns a paginated list of all spaces belonging to the organization. |
> | `gitbook_list_sso_provider_logins_in_organization` | List all SSO provider login infos |
> | `gitbook_list_styleguide_templates` | Lists the built-in style guide starter templates that can seed a new styleguide, including the markdown content used to render each template's preview. |
> | `gitbook_list_suggested_reviewers_for_change_request` | Returns up to a few users suggested to review the change request, most relevant first: people who edited the pages it changes and review in the space, then other editors of those pages, then the… |
> | `gitbook_list_tags` | Returns every tag and category in the space's published revision, in hierarchy order, with its parent and the number of distinct visible document pages tagged with it or any descendant tag. |
> | `gitbook_list_team_members_in_organization_by_id` | Lists members, and their roles, for the specified organization team. |
> | `gitbook_list_team_permissions_in_collection` | List an org team's permission in collection |
> | `gitbook_list_team_permissions_in_site` | List an org team's permission in a site |
> | `gitbook_list_team_permissions_in_space` | List an org team's permission in a space |
> | `gitbook_list_teams_for_organization_member` | List all organization member teams |
> | `gitbook_list_teams_in_organization_by_id` | List all teams |
> | `gitbook_list_translations` | List all the translations |
> | `gitbook_list_user_permissions_in_collection` | List collection user permissions |
> | `gitbook_list_user_permissions_in_site` | List site user permissions |
> | `gitbook_list_user_permissions_in_space` | List space user permissions |
> | `gitbook_merge_change_request` | Merges the change request's draft content into the space's primary (published) content, making all changes live. |
> | `gitbook_merge_site_change_request` | Merges every space edited in the change request into its published content, as one publication: either all of them are published or none of them are. |
> | `gitbook_move_collection` | Move a collection to a new position. |
> | `gitbook_move_site_section` | Move a site section to a new position. (Deprecated) use sortSiteStructure instead. |
> | `gitbook_move_site_section_group` | Move a site section group to a new position. (Deprecated) use sortSiteStructure instead. |
> | `gitbook_move_site_space` | Move a site space to a new position. (Deprecated) use sortSiteStructure instead. |
> | `gitbook_move_space` | Moves a space to a new parent collection and/or a new position within the hierarchy. |
> | `gitbook_override_site_space_customization_by_id` | Applies customization overrides to a specific site space, such as a language variant or content version, that take precedence over the site-level settings. |
> | `gitbook_post_comment_in_change_request` | Posts a new top-level comment on the change request. |
> | `gitbook_post_comment_in_space` | Creates a new top-level comment on the space, optionally anchored to a specific page or a text selection within a page. |
> | `gitbook_post_comment_reply_in_change_request` | Adds a reply to an existing comment thread on a change request. |
> | `gitbook_post_comment_reply_in_space` | Creates a reply to an existing comment on a space. |
> | `gitbook_prewarm_site_search` | Hints the search backend that latency-sensitive site search requests are likely to arrive soon. |
> | `gitbook_provision_organization_agent_conversation` | Prepares a conversation so the client can connect to it, giving the agent the credentials it acts with. |
> | `gitbook_publish_integration` | Publishes integration code and configuration. |
> | `gitbook_publish_site` | Makes the site publicly accessible at its configured URL by publishing it. |
> | `gitbook_queue_integration_task` | Queue an integration task |
> | `gitbook_regenerate_site_publishing_auth_by_id` | Re-generates the private key used for the site's publishing authentication (e.g., JWT signing key for SSO). |
> | `gitbook_remove_custom_hostname` | The custom hostname will continue to point to the content or organization unless it is used for another one. |
> | `gitbook_remove_member_from_organization_by_id` | Users cannot remove their own membership. |
> | `gitbook_remove_requested_reviewer_from_change_request` | Remove a reviewer from a change request |
> | `gitbook_remove_team_from_collection` | Remove an org team from a collection |
> | `gitbook_remove_team_from_organization_by_id` | Delete a team |
> | `gitbook_remove_team_from_site` | Remove an org team from a site |
> | `gitbook_remove_team_from_space` | Remove an org team from a space |
> | `gitbook_remove_user_from_collection` | Remove a user from a collection |
> | `gitbook_remove_user_from_site` | Remove a site user |
> | `gitbook_remove_user_from_space` | Remove a space user |
> | `gitbook_render_integration_ui_with_get` | Declared integration input errors return 422. |
> | `gitbook_render_integration_ui_with_post` | Declared integration input errors return 422. |
> | `gitbook_request_reviewers_for_change_request` | Sends review request notifications to one or more users, asking them to review the change request. |
> | `gitbook_resolve_published_content_by_url` | Resolve a URL of a published content. |
> | `gitbook_restore_space` | Restores a previously deleted space, making it active again. |
> | `gitbook_rotate_organization_id_p_connection_token` | Creates a new SCIM token for a connection. |
> | `gitbook_rotate_organization_scim_connection_token` | Replaces the token of a SCIM connection. |
> | `gitbook_run_translation` | Run a translation again |
> | `gitbook_search_organization_content` | Search content in an organization |
> | `gitbook_search_site_content` | Performs a full-text search across all published spaces in the site and returns matching pages with relevant excerpts. |
> | `gitbook_search_space_content` | Searches the full text of all published pages in a space and returns matching pages with ranked excerpts. |
> | `gitbook_set_integration_development_mode` | Enables a development tunnel. |
> | `gitbook_set_user_as_sso_member_for_organization` | Set a user as an SSO member of an organization |
> | `gitbook_sort_site_structure` | Reorders a site space, section, section group, or external link relative to any sibling at the same structure level. |
> | `gitbook_start_import_run` | Import content into a space from a website |
> | `gitbook_submit_agent_feedback_to_site` | Submit structured feedback from an AI agent about an MCP tool or operation, a CLI command, an API endpoint, a site page/mcp, or the product overall. |
> | `gitbook_submit_change_request_review` | Submits a formal review decision (approved or changes-requested) on the change request, optionally with a rich-text comment. |
> | `gitbook_submit_site_agent_feedback` | Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user. |
> | `gitbook_sync_site_context_connection` | Trigger a sync for a context connection |
> | `gitbook_test_site_context_connection` | Verifies the stored credentials of a context connection against the external service, without changing anything. |
> | `gitbook_track_events_in_site_by_id` | Track site events |
> | `gitbook_transfer_collection` | Transfer a collection |
> | `gitbook_trigger_change_requests_for_site_finding` | Starts GitBook's AI on fixing a documentation issue directly: it drafts the content change and opens it as a change request for review, rather than editing content in place. |
> | `gitbook_uninstall_integration` | Uninstall an integration |
> | `gitbook_uninstall_integration_from_site` | Uninstall an integration from a site |
> | `gitbook_uninstall_integration_from_space` | Uninstall an integration from a space |
> | `gitbook_unpublish_integration` | Removes an integration. |
> | `gitbook_unpublish_site` | Removes the site from public access by unpublishing it. |
> | `gitbook_update_change_request` | Rebases the change request onto the latest primary revision of the space, pulling in any changes that were merged to the live space since this change request was created. |
> | `gitbook_update_change_request_by_id` | Updates the metadata of a change request. |
> | `gitbook_update_change_request_content` | Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. |
> | `gitbook_update_change_request_conversation` | Updates a specific AI agent conversation associated with a change request. |
> | `gitbook_update_collection_by_id` | Update a collection |
> | `gitbook_update_comment_in_change_request` | Replaces the body or status of an existing change request comment. |
> | `gitbook_update_comment_in_space` | Updates the content or resolution status of an existing comment on a space. |
> | `gitbook_update_comment_reply_in_change_request` | Replaces the body of an existing reply in a change request comment thread. |
> | `gitbook_update_comment_reply_in_space` | Updates the content of an existing reply to a comment in a space. |
> | `gitbook_update_custom_font` | Update a custom font |
> | `gitbook_update_git_sync_installation_by_id` | Updates the installation configuration, then queues a sync operation using the new settings. |
> | `gitbook_update_glossary_entries` | Update glossary entries |
> | `gitbook_update_integration_installation` | Updates the account-level configuration of an installation, and which spaces or sites it applies to. |
> | `gitbook_update_integration_site_installation` | Updates the configuration of an integration for one site. |
> | `gitbook_update_integration_space_installation` | Updates the configuration of an integration for one space. |
> | `gitbook_update_member_in_organization_by_id` | Update an organization member |
> | `gitbook_update_members_in_organization_team` | Updates members of an organization team, either adding or removing them. |
> | `gitbook_update_open_api_spec_by_slug` | Update OpenAPI spec visibility |
> | `gitbook_update_organization_agent_conversation` | Updates one of the calling user's conversations with the organization agent. |
> | `gitbook_update_organization_agent_instructions` | Update Docs agent instructions for an organization |
> | `gitbook_update_organization_by_id` | Update an organization |
> | `gitbook_update_organization_domain` | Update an email domain of an organization |
> | `gitbook_update_organization_id_p_connection` | Update an identity provider connection |
> | `gitbook_update_organization_invite_by_id` | Update an organization invite |
> | `gitbook_update_organization_member_last_seen_at` | Update an organization member last seen at |
> | `gitbook_update_organization_saml_provider` | Update a SAML provider |
> | `gitbook_update_organization_scim_connection` | Update a SCIM connection |
> | `gitbook_update_site_adaptive_schema` | Replaces the JSON schema that defines expected visitor attributes for adaptive content. |
> | `gitbook_update_site_ads_by_id` | Updates the advertising configuration for a site, including the review status and topic category used to select relevant ads. |
> | `gitbook_update_site_agent_settings_by_id` | Replaces the configuration for the AI built into the GitBook editor that helps authors draft, review, and refine content changes. |
> | `gitbook_update_site_by_id` | Updates a documentation site's configuration. |
> | `gitbook_update_site_change_request_by_id` | Updates the metadata of a site change request. |
> | `gitbook_update_site_channel_by_id` | Modifies the configuration of a specific GitBook Agent channel integration, including its role. |
> | `gitbook_update_site_context_connection_by_id` | Update a context connection |
> | `gitbook_update_site_customization_by_id` | Replaces the full customization configuration for a site. |
> | `gitbook_update_site_external_link_by_id` | Updates an external navigation link. |
> | `gitbook_update_site_mcp_server_by_id` | Modifies an existing MCP server's configuration. |
> | `gitbook_update_site_publishing_auth_by_id` | Modifies the authentication method used to protect a site's published content. |
> | `gitbook_update_site_redirect_by_id` | Updates an existing redirect rule for a site. |
> | `gitbook_update_site_section_by_id` | Updates a navigation section's configuration in the site structure. |
> | `gitbook_update_site_section_group_by_id` | Updates a section group's properties in the site's navigation structure. |
> | `gitbook_update_site_share_link_by_id` | Updates a share link's properties. |
> | `gitbook_update_site_space_by_id` | Updates the configuration of a site space. |
> | `gitbook_update_site_topic_by_id` | Update a topic |
> | `gitbook_update_space_by_id` | Updates a space's metadata and settings. |
> | `gitbook_update_team_in_organization_by_id` | Update a team |
> | `gitbook_update_team_permission_in_collection` | Update an org team's permission in a collection |
> | `gitbook_update_team_permission_in_site` | Update an org team's permission in a site |
> | `gitbook_update_team_permission_in_space` | Update an org team's permission in a space |
> | `gitbook_update_translation` | Update a translation |
> | `gitbook_update_user_by_id` | Update a GitBook account's details. |
> | `gitbook_update_user_permission_in_collection` | Update a collection user permission |
> | `gitbook_update_user_permission_in_site` | Update site user permissions |
> | `gitbook_update_user_permission_in_space` | Update space user permissions |
> | `gitbook_upsert_site_context_records` | Create or update context records |
> | `gitbook_verify_organization_domain` | Checks the domain's DNS TXT record. |

## Frequently asked questions

> [accordion] Can I limit an agent to read-only GitBook operations?
>
> Yes. Write a credential policy that DENY rules cover all mutating operations, or use an ALLOW rule scoped to only the read tools your agent needs. The credential proxy enforces the policy before any request reaches GitBook.

> [accordion] Does the GitBook integration support webhook event triggers?
>
> No. The catalog entry for `guildai~gitbook` lists no webhook\_events, so the integration does not fire Guild event triggers from GitBook activity.

> [accordion] How does Guild authenticate requests to GitBook?
>
> Guild sends the API key as a bearer token in the Authorization header. The key is stored server-side and never exposed to agent code.

> [accordion] Can one GitBook credential serve multiple workspaces?
>
> Yes. An account-scoped credential serves every workspace the account owns by default. You can also scope a credential to a single workspace or a single agent if different workspaces need different GitBook accounts.

## Put a governed agent on GitBook documentation this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use GitBook.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect GitBook to your first agent.

## Related

**Also runs on Guild:** [Calendly](https://docs.guild.ai/integrations/calendly.md) · [Coda](https://docs.guild.ai/integrations/coda-openapi.md) · [Confluence](https://docs.guild.ai/integrations/confluence.md) · [Fathom](https://docs.guild.ai/integrations/fathom.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
