diff --git a/server/tools/documents.ts b/server/tools/documents.ts index b448f54c15..00f807f407 100644 --- a/server/tools/documents.ts +++ b/server/tools/documents.ts @@ -300,6 +300,12 @@ export function documentTools(server: McpServer, scopes: string[]) { .describe( "Whether to publish the document. Defaults to true. Set to false to create as a draft." ), + fullWidth: z + .boolean() + .optional() + .describe( + "Whether the document should occupy full width of the screen. Defaults to false." + ), }, }, withTracing("create_document", async (input, context) => { @@ -340,6 +346,7 @@ export function documentTools(server: McpServer, scopes: string[]) { parentDocumentId: parentDocumentId, publish: input.publish !== false, collectionId: collection?.id, + fullWidth: input.fullWidth, }); const [{ text, ...attributes }, breadcrumb] = await Promise.all([ @@ -556,6 +563,12 @@ export function documentTools(server: McpServer, scopes: string[]) { .describe( "Set to true to publish a draft document, or false to convert a published document back to a draft." ), + fullWidth: z + .boolean() + .optional() + .describe( + "Whether the document should occupy full width of the screen." + ), }, }, withTracing("update_document", async (input, context) => {