GitBook
Modern documentation platform for teams to create, organize, and publish knowledge bases
Tools
| Name | Description |
|---|---|
list_spacesList all spaces in an organization | List all spaces in an organization |
get_spaceGet details of a specific space by its ID | Get details of a specific space by its ID |
get_pageGet a page by its ID from a space | Get a page by its ID from a space |
search_contentSearch content across spaces in an organization | Search content across spaces in an organization |
list_collectionsList all collections in an organization | List all collections in an organization |
custom_api_callMake a custom API call to the GitBook API | Make a custom API call to the GitBook API |
Quick Start
import { WeavzClient } from '@weavz-io/sdk'
const weavz = new WeavzClient({ apiKey: 'wvz_...' })
const result = await weavz.actions.execute('gitbook', 'list_spaces', {
workspaceId: '550e8400-e29b-41d4-a716-446655440000',
integrationAlias: 'gitbook',
input: { /* ... */ },
})Related Integrations
Works well with
Frequently Asked Questions
How do I connect GitBook to my app?
Use Weavz Hosted Connect for API Key authentication. Install the SDK, create a connection through the connect portal or API, then execute tools programmatically.
What tools does GitBook support?
GitBook supports 6 tools including List Spaces, Get Space, Get Page, Search Content, List Collections, and more.
Can I use GitBook with AI agents?
Yes. Add GitBook to an MCP server in Tool Mode or Code Mode. Code Mode provides 3 meta-tools with on-demand API discovery so agents can compose stateful workflows without loading every action schema up front.
How do I connect GitBook to ChatGPT or Claude?
Open the Weavz connector setup, sign in, choose a workspace, and add GitBook as an approved app. ChatGPT, Claude, and other remote MCP clients can then call the scoped GitBook tools exposed by that workspace.
Does GitBook work with Claude Code, Cursor, Codex, and local agents?
Yes. Remote and local MCP clients can connect to a Weavz MCP endpoint for the workspace. Local coding agents can also use the Weavz CLI to inspect apps, discover actions, run approved GitBook work, and execute Code Mode workflows from a terminal.
What can I ask an AI agent to do with GitBook?
GitBook exposes 6 tools, including List Spaces, Get Space, Get Page, Search Content, List Collections, and more. Use Weavz to keep credentials scoped, require approval for sensitive work, and audit what the agent did.
Can GitBook be used in stateful agent workflows?
Yes. Agents can combine GitBook tools with Filesystem, State KV, Human Gates, input partials, and other workspace integrations while keeping execution scoped to the selected workspace or end user.
What authentication does GitBook use?
GitBook uses API Key. Weavz stores credentials securely and uses them for authorized action execution.
How much does the GitBook integration cost?
The GitBook integration is included on all Weavz plans including the free tier with 20,000 actions per month. No credit card required.
Connect GitBook in minutes
Get 20,000 free action executions every month. No credit card required.