Import content into a change request
gitbook_import_contentImport a public web page into a GitBook space asynchronously, with AI enhancement by default. Use a change request to review and merge without affecting the live branch.
Instructions
GitBook's content-write primitive: import a public web page (sourceUrl) into a space — scoped to a change request (and optionally a page), AI-enhanced by default. There is NO direct 'set page body' API; this is the supported write path. The import is asynchronous (returns a run id + status); review in GitBook, then gitbook_merge_change_request to publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | Yes | Organization id that owns the space. | |
| spaceId | Yes | Target space id. | |
| sourceUrl | Yes | Public http(s) URL of the page to import as content (no credentials). | |
| changeRequestId | No | Target change request id (recommended — keeps the import off the live branch). | |
| pageId | No | Target page id to import into (optional). | |
| enhance | No | AI-enhance the imported content (default true). |