Files
gitbook/.changeset/integration-tool-context.md
2026-07-21 11:45:51 +02:00

604 B

@gitbook/browser-types, @gitbook/embed, gitbook
@gitbook/browser-types @gitbook/embed gitbook
patch patch patch

Add an optional context property (string, up to 512 characters) to the confirmation of custom AI tools, shown above the confirmation dialog to help the user understand what they are approving or rejecting. The confirmation can now also be a function that receives the AI-provided input and returns the confirmation, so the context can be derived dynamically from the arguments the tool is about to run with. Available both to integrations (GitBookIntegrationTool) and to embed consumers (GitBookToolDefinition).