[{"data":1,"prerenderedAt":1294},["ShallowReactive",2],{"navigation_docs_en":3,"-en-getting-started-ai-tools":300,"-en-getting-started-ai-tools-surround":1289},[4,31,65,95,171,248],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":30},"Getting Started","i-lucide-rocket","\u002Fen\u002Fgetting-started","en\u002F01.getting-started",[10,14,18,22,26],{"title":11,"path":12,"stem":13},"Introduction","\u002Fen\u002Fgetting-started\u002Fintroduction","en\u002F01.getting-started\u002F01.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fen\u002Fgetting-started\u002Finstallation","en\u002F01.getting-started\u002F02.installation",{"title":19,"path":20,"stem":21},"Command Line Interface (CLI)","\u002Fen\u002Fgetting-started\u002Fcommand-line-interface","en\u002F01.getting-started\u002F03.command-line-interface",{"title":23,"path":24,"stem":25},"AI Tools","\u002Fen\u002Fgetting-started\u002Fai-tools","en\u002F01.getting-started\u002F04.ai-tools",{"title":27,"path":28,"stem":29},"AI Integration","\u002Fen\u002Fgetting-started\u002Fai-integration","en\u002F01.getting-started\u002F05.ai-integration",false,{"title":32,"icon":33,"path":34,"stem":35,"children":36,"page":30},"CORE","i-lucide-box","\u002Fen\u002Fcore","en\u002F02.core",[37,41,45,49,53,57,61],{"title":38,"path":39,"stem":40},"@office-open\u002Fcore","\u002Fen\u002Fcore\u002Foverview","en\u002F02.core\u002F01.overview",{"title":42,"path":43,"stem":44},"XML Components","\u002Fen\u002Fcore\u002Fxml-components","en\u002F02.core\u002F02.xml-components",{"title":46,"path":47,"stem":48},"Values and Validation","\u002Fen\u002Fcore\u002Fvalues","en\u002F02.core\u002F03.values",{"title":50,"path":51,"stem":52},"Unit Converters","\u002Fen\u002Fcore\u002Fconverters","en\u002F02.core\u002F04.converters",{"title":54,"path":55,"stem":56},"Formatter","\u002Fen\u002Fcore\u002Fformatter","en\u002F02.core\u002F05.formatter",{"title":58,"path":59,"stem":60},"Charts","\u002Fen\u002Fcore\u002Fcharts","en\u002F02.core\u002F06.charts",{"title":62,"path":63,"stem":64},"Parser","\u002Fen\u002Fcore\u002Fparser","en\u002F02.core\u002F07.parser",{"title":66,"icon":67,"path":68,"stem":69,"children":70,"page":30},"XML","i-lucide-code-xml","\u002Fen\u002Fxml","en\u002F03.xml",[71,75,79,83,87,91],{"title":72,"path":73,"stem":74},"@office-open\u002Fxml","\u002Fen\u002Fxml\u002Foverview","en\u002F03.xml\u002F01.overview",{"title":76,"path":77,"stem":78},"Parsing","\u002Fen\u002Fxml\u002Fparsing","en\u002F03.xml\u002F02.parsing",{"title":80,"path":81,"stem":82},"Serialization","\u002Fen\u002Fxml\u002Fserialization","en\u002F03.xml\u002F03.serialization",{"title":84,"path":85,"stem":86},"Query Utilities","\u002Fen\u002Fxml\u002Fquery-utilities","en\u002F03.xml\u002F04.query-utilities",{"title":88,"path":89,"stem":90},"XML Escape","\u002Fen\u002Fxml\u002Fescape","en\u002F03.xml\u002F05.escape",{"title":92,"path":93,"stem":94},"Type Reference","\u002Fen\u002Fxml\u002Ftypes","en\u002F03.xml\u002F06.types",{"title":96,"icon":97,"path":98,"stem":99,"children":100,"page":30},"DOCX","i-lucide-file-text","\u002Fen\u002Fdocx","en\u002F04.docx",[101,105,109,113,117,121,124,128,132,136,140,144,148,152,156,160,164,167],{"title":102,"path":103,"stem":104},"@office-open\u002Fdocx","\u002Fen\u002Fdocx\u002Foverview","en\u002F04.docx\u002F01.overview",{"title":106,"path":107,"stem":108},"Quick Start","\u002Fen\u002Fdocx\u002Fquickstart","en\u002F04.docx\u002F02.quickstart",{"title":110,"path":111,"stem":112},"Text and Paragraphs","\u002Fen\u002Fdocx\u002Ftext-and-paragraphs","en\u002F04.docx\u002F03.text-and-paragraphs",{"title":114,"path":115,"stem":116},"Tables","\u002Fen\u002Fdocx\u002Ftables","en\u002F04.docx\u002F04.tables",{"title":118,"path":119,"stem":120},"Images","\u002Fen\u002Fdocx\u002Fimages","en\u002F04.docx\u002F05.images",{"title":58,"path":122,"stem":123},"\u002Fen\u002Fdocx\u002Fcharts","en\u002F04.docx\u002F06.charts",{"title":125,"path":126,"stem":127},"SmartArt","\u002Fen\u002Fdocx\u002Fsmartart","en\u002F04.docx\u002F07.smartart",{"title":129,"path":130,"stem":131},"Media","\u002Fen\u002Fdocx\u002Fmedia","en\u002F04.docx\u002F08.media",{"title":133,"path":134,"stem":135},"Links","\u002Fen\u002Fdocx\u002Flinks","en\u002F04.docx\u002F09.links",{"title":137,"path":138,"stem":139},"Headers and Footers","\u002Fen\u002Fdocx\u002Fheaders-and-footers","en\u002F04.docx\u002F10.headers-and-footers",{"title":141,"path":142,"stem":143},"Equations and Symbols","\u002Fen\u002Fdocx\u002Fequations-and-symbols","en\u002F04.docx\u002F11.equations-and-symbols",{"title":145,"path":146,"stem":147},"Styles and Themes","\u002Fen\u002Fdocx\u002Fstyles-and-themes","en\u002F04.docx\u002F12.styles-and-themes",{"title":149,"path":150,"stem":151},"Page Layout","\u002Fen\u002Fdocx\u002Fpage-layout","en\u002F04.docx\u002F13.page-layout",{"title":153,"path":154,"stem":155},"References","\u002Fen\u002Fdocx\u002Freferences","en\u002F04.docx\u002F14.references",{"title":157,"path":158,"stem":159},"Comments and Revisions","\u002Fen\u002Fdocx\u002Fcomments-and-revisions","en\u002F04.docx\u002F15.comments-and-revisions",{"title":161,"path":162,"stem":163},"Export","\u002Fen\u002Fdocx\u002Fexport","en\u002F04.docx\u002F16.export",{"title":76,"path":165,"stem":166},"\u002Fen\u002Fdocx\u002Fparsing","en\u002F04.docx\u002F17.parsing",{"title":168,"path":169,"stem":170},"Patching","\u002Fen\u002Fdocx\u002Fpatch","en\u002F04.docx\u002F18.patch",{"title":172,"icon":173,"path":174,"stem":175,"children":176,"page":30},"PPTX","i-lucide-presentation","\u002Fen\u002Fpptx","en\u002F05.pptx",[177,181,184,188,191,194,197,200,203,206,210,213,216,220,223,227,231,235,239,242,245],{"title":178,"path":179,"stem":180},"@office-open\u002Fpptx","\u002Fen\u002Fpptx\u002Foverview","en\u002F05.pptx\u002F01.overview",{"title":106,"path":182,"stem":183},"\u002Fen\u002Fpptx\u002Fquickstart","en\u002F05.pptx\u002F02.quickstart",{"title":185,"path":186,"stem":187},"Shapes and Text","\u002Fen\u002Fpptx\u002Fshapes-and-text","en\u002F05.pptx\u002F03.shapes-and-text",{"title":114,"path":189,"stem":190},"\u002Fen\u002Fpptx\u002Ftables","en\u002F05.pptx\u002F04.tables",{"title":118,"path":192,"stem":193},"\u002Fen\u002Fpptx\u002Fimages","en\u002F05.pptx\u002F05.images",{"title":58,"path":195,"stem":196},"\u002Fen\u002Fpptx\u002Fcharts","en\u002F05.pptx\u002F06.charts",{"title":125,"path":198,"stem":199},"\u002Fen\u002Fpptx\u002Fsmartart","en\u002F05.pptx\u002F07.smartart",{"title":129,"path":201,"stem":202},"\u002Fen\u002Fpptx\u002Fmedia","en\u002F05.pptx\u002F08.media",{"title":133,"path":204,"stem":205},"\u002Fen\u002Fpptx\u002Flinks","en\u002F05.pptx\u002F09.links",{"title":207,"path":208,"stem":209},"Lines and Connectors","\u002Fen\u002Fpptx\u002Flines-and-connectors","en\u002F05.pptx\u002F10.lines-and-connectors",{"title":137,"path":211,"stem":212},"\u002Fen\u002Fpptx\u002Fheaders-and-footers","en\u002F05.pptx\u002F11.headers-and-footers",{"title":141,"path":214,"stem":215},"\u002Fen\u002Fpptx\u002Fequations-and-symbols","en\u002F05.pptx\u002F12.equations-and-symbols",{"title":217,"path":218,"stem":219},"Slide Layout","\u002Fen\u002Fpptx\u002Fslide-layout","en\u002F05.pptx\u002F13.slide-layout",{"title":145,"path":221,"stem":222},"\u002Fen\u002Fpptx\u002Fstyles-and-themes","en\u002F05.pptx\u002F14.styles-and-themes",{"title":224,"path":225,"stem":226},"Effects and Fills","\u002Fen\u002Fpptx\u002Feffects-and-fills","en\u002F05.pptx\u002F15.effects-and-fills",{"title":228,"path":229,"stem":230},"Transitions","\u002Fen\u002Fpptx\u002Ftransitions","en\u002F05.pptx\u002F16.transitions",{"title":232,"path":233,"stem":234},"Animations","\u002Fen\u002Fpptx\u002Fanimations","en\u002F05.pptx\u002F17.animations",{"title":236,"path":237,"stem":238},"Comments","\u002Fen\u002Fpptx\u002Fcomments","en\u002F05.pptx\u002F18.comments",{"title":161,"path":240,"stem":241},"\u002Fen\u002Fpptx\u002Fexport","en\u002F05.pptx\u002F19.export",{"title":76,"path":243,"stem":244},"\u002Fen\u002Fpptx\u002Fparsing","en\u002F05.pptx\u002F20.parsing",{"title":168,"path":246,"stem":247},"\u002Fen\u002Fpptx\u002Fpatch","en\u002F05.pptx\u002F21.patch",{"title":249,"icon":250,"path":251,"stem":252,"children":253,"page":30},"XLSX","i-lucide-table-2","\u002Fen\u002Fxlsx","en\u002F06.xlsx",[254,258,261,265,269,273,277,281,284,287,291,294,297],{"title":255,"path":256,"stem":257},"@office-open\u002Fxlsx","\u002Fen\u002Fxlsx\u002Foverview","en\u002F06.xlsx\u002F01.overview",{"title":106,"path":259,"stem":260},"\u002Fen\u002Fxlsx\u002Fquickstart","en\u002F06.xlsx\u002F02.quickstart",{"title":262,"path":263,"stem":264},"Cells & Data","\u002Fen\u002Fxlsx\u002Fcells","en\u002F06.xlsx\u002F03.cells",{"title":266,"path":267,"stem":268},"Formulas","\u002Fen\u002Fxlsx\u002Fformulas","en\u002F06.xlsx\u002F04.formulas",{"title":270,"path":271,"stem":272},"Styles","\u002Fen\u002Fxlsx\u002Fstyles","en\u002F06.xlsx\u002F05.styles",{"title":274,"path":275,"stem":276},"Merge, Columns & Rows","\u002Fen\u002Fxlsx\u002Fmerge-col-row","en\u002F06.xlsx\u002F06.merge-col-row",{"title":278,"path":279,"stem":280},"Freeze Panes & Auto Filter","\u002Fen\u002Fxlsx\u002Ffreeze-filter","en\u002F06.xlsx\u002F07.freeze-filter",{"title":118,"path":282,"stem":283},"\u002Fen\u002Fxlsx\u002Fimages","en\u002F06.xlsx\u002F08.images",{"title":58,"path":285,"stem":286},"\u002Fen\u002Fxlsx\u002Fcharts","en\u002F06.xlsx\u002F09.charts",{"title":288,"path":289,"stem":290},"Data Validation","\u002Fen\u002Fxlsx\u002Fvalidation","en\u002F06.xlsx\u002F10.validation",{"title":161,"path":292,"stem":293},"\u002Fen\u002Fxlsx\u002Fexport","en\u002F06.xlsx\u002F11.export",{"title":76,"path":295,"stem":296},"\u002Fen\u002Fxlsx\u002Fparsing","en\u002F06.xlsx\u002F12.parsing",{"title":168,"path":298,"stem":299},"\u002Fen\u002Fxlsx\u002Fpatch","en\u002F06.xlsx\u002F13.patch",{"id":301,"title":23,"body":302,"description":1283,"extension":1284,"links":1285,"meta":1286,"navigation":510,"path":24,"seo":1287,"stem":25,"__hash__":1288},"docs_en\u002Fen\u002F01.getting-started\u002F04.ai-tools.md",{"type":303,"value":304,"toc":1271},"minimark",[305,326,330,358,373,377,380,437,440,444,588,592,595,598,733,735,962,964,1149,1153,1156,1208,1212,1215,1257,1267],[306,307,308,309,313,314,317,318,321,322,325],"p",{},"The ",[310,311,312],"code",{},"office-open"," package provides AI SDK tools that allow AI agents (Claude, GPT, etc.) to generate ",[310,315,316],{},".docx",", ",[310,319,320],{},".pptx",", and ",[310,323,324],{},".xlsx"," files using the Vercel AI SDK.",[327,328,15],"h2",{"id":329},"installation",[331,332,337],"pre",{"className":333,"code":334,"language":335,"meta":336,"style":336},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add office-open ai\n","bash","",[310,338,339],{"__ignoreMap":336},[340,341,344,348,352,355],"span",{"class":342,"line":343},"line",1,[340,345,347],{"class":346},"sBMFI","pnpm",[340,349,351],{"class":350},"sfazB"," add",[340,353,354],{"class":350}," office-open",[340,356,357],{"class":350}," ai\n",[306,359,360,361,368,369,372],{},"Requires the ",[362,363,367],"a",{"href":364,"rel":365},"https:\u002F\u002Fsdk.vercel.ai\u002F",[366],"nofollow","Vercel AI SDK"," (",[310,370,371],{},"ai"," package) v6+.",[327,374,376],{"id":375},"tools","Tools",[306,378,379],{},"Three tools are provided, one for each document type:",[381,382,383,396],"table",{},[384,385,386],"thead",{},[387,388,389,393],"tr",{},[390,391,392],"th",{},"Tool",[390,394,395],{},"Description",[397,398,399,413,425],"tbody",{},[387,400,401,407],{},[402,403,404],"td",{},[310,405,406],{},"generate-docx",[402,408,409,410,412],{},"Generate a ",[310,411,316],{}," Word document",[387,414,415,420],{},[402,416,417],{},[310,418,419],{},"generate-pptx",[402,421,409,422,424],{},[310,423,320],{}," presentation",[387,426,427,432],{},[402,428,429],{},[310,430,431],{},"generate-xlsx",[402,433,409,434,436],{},[310,435,324],{}," spreadsheet",[306,438,439],{},"Each tool validates the input with Zod schemas before generating, providing clear error messages when the AI produces invalid structures.",[327,441,443],{"id":442},"usage","Usage",[331,445,449],{"className":446,"code":447,"language":448,"meta":336,"style":336},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { generateText } from \"ai\";\nimport { officeOpenTools } from \"office-open\u002Fai\";\n\nconst result = await generateText({\n  model,\n  prompt: \"Create a quarterly report document\",\n  tools: officeOpenTools,\n});\n","ts",[310,450,451,482,505,512,537,546,565,577],{"__ignoreMap":336},[340,452,453,457,461,465,468,471,474,476,479],{"class":342,"line":343},[340,454,456],{"class":455},"s7zQu","import",[340,458,460],{"class":459},"sMK4o"," {",[340,462,464],{"class":463},"sTEyZ"," generateText",[340,466,467],{"class":459}," }",[340,469,470],{"class":455}," from",[340,472,473],{"class":459}," \"",[340,475,371],{"class":350},[340,477,478],{"class":459},"\"",[340,480,481],{"class":459},";\n",[340,483,485,487,489,492,494,496,498,501,503],{"class":342,"line":484},2,[340,486,456],{"class":455},[340,488,460],{"class":459},[340,490,491],{"class":463}," officeOpenTools",[340,493,467],{"class":459},[340,495,470],{"class":455},[340,497,473],{"class":459},[340,499,500],{"class":350},"office-open\u002Fai",[340,502,478],{"class":459},[340,504,481],{"class":459},[340,506,508],{"class":342,"line":507},3,[340,509,511],{"emptyLinePlaceholder":510},true,"\n",[340,513,515,519,522,525,528,531,534],{"class":342,"line":514},4,[340,516,518],{"class":517},"spNyl","const",[340,520,521],{"class":463}," result ",[340,523,524],{"class":459},"=",[340,526,527],{"class":455}," await",[340,529,464],{"class":530},"s2Zo4",[340,532,533],{"class":463},"(",[340,535,536],{"class":459},"{\n",[340,538,540,543],{"class":342,"line":539},5,[340,541,542],{"class":463},"  model",[340,544,545],{"class":459},",\n",[340,547,549,553,556,558,561,563],{"class":342,"line":548},6,[340,550,552],{"class":551},"swJcz","  prompt",[340,554,555],{"class":459},":",[340,557,473],{"class":459},[340,559,560],{"class":350},"Create a quarterly report document",[340,562,478],{"class":459},[340,564,545],{"class":459},[340,566,568,571,573,575],{"class":342,"line":567},7,[340,569,570],{"class":551},"  tools",[340,572,555],{"class":459},[340,574,491],{"class":463},[340,576,545],{"class":459},[340,578,580,583,586],{"class":342,"line":579},8,[340,581,582],{"class":459},"}",[340,584,585],{"class":463},")",[340,587,481],{"class":459},[327,589,591],{"id":590},"tool-input","Tool Input",[306,593,594],{},"Each tool accepts the document options directly (no wrapping — pass the document structure as-is):",[596,597,406],"h3",{"id":406},[331,599,601],{"className":446,"code":600,"language":448,"meta":336,"style":336},"{\n  \"sections\": [\n    {\n      \"children\": [\n        { \"paragraph\": { \"children\": [{ \"text\": \"Hello, World!\", \"bold\": true }] } }\n      ]\n    }\n  ]\n}\n",[310,602,603,607,620,625,640,712,717,722,727],{"__ignoreMap":336},[340,604,605],{"class":342,"line":343},[340,606,536],{"class":459},[340,608,609,612,615,617],{"class":342,"line":484},[340,610,611],{"class":459},"  \"",[340,613,614],{"class":350},"sections",[340,616,478],{"class":459},[340,618,619],{"class":551},": [\n",[340,621,622],{"class":342,"line":507},[340,623,624],{"class":459},"    {\n",[340,626,627,630,633,635,637],{"class":342,"line":514},[340,628,629],{"class":459},"      \"",[340,631,632],{"class":551},"children",[340,634,478],{"class":459},[340,636,555],{"class":459},[340,638,639],{"class":551}," [\n",[340,641,642,645,647,650,652,654,656,658,660,662,664,667,670,672,675,677,679,681,684,686,689,691,694,696,698,702,704,707,709],{"class":342,"line":539},[340,643,644],{"class":459},"        {",[340,646,473],{"class":459},[340,648,649],{"class":551},"paragraph",[340,651,478],{"class":459},[340,653,555],{"class":459},[340,655,460],{"class":459},[340,657,473],{"class":459},[340,659,632],{"class":551},[340,661,478],{"class":459},[340,663,555],{"class":459},[340,665,666],{"class":551}," [",[340,668,669],{"class":459},"{",[340,671,473],{"class":459},[340,673,674],{"class":551},"text",[340,676,478],{"class":459},[340,678,555],{"class":459},[340,680,473],{"class":459},[340,682,683],{"class":350},"Hello, World!",[340,685,478],{"class":459},[340,687,688],{"class":459},",",[340,690,473],{"class":459},[340,692,693],{"class":551},"bold",[340,695,478],{"class":459},[340,697,555],{"class":459},[340,699,701],{"class":700},"sfNiH"," true",[340,703,467],{"class":459},[340,705,706],{"class":551},"] ",[340,708,582],{"class":459},[340,710,711],{"class":459}," }\n",[340,713,714],{"class":342,"line":548},[340,715,716],{"class":551},"      ]\n",[340,718,719],{"class":342,"line":567},[340,720,721],{"class":459},"    }\n",[340,723,724],{"class":342,"line":579},[340,725,726],{"class":551},"  ]\n",[340,728,730],{"class":342,"line":729},9,[340,731,732],{"class":459},"}\n",[596,734,419],{"id":419},[331,736,738],{"className":446,"code":737,"language":448,"meta":336,"style":336},"{\n  \"title\": \"My Presentation\",\n  \"slides\": [\n    {\n      \"children\": [\n        {\n          \"shape\": {\n            \"x\": 100, \"y\": 100, \"width\": 760, \"height\": 340,\n            \"textBody\": { \"children\": [{ \"text\": \"Hello, World!\", \"fontSize\": 32 }] }\n          }\n        }\n      ]\n    }\n  ]\n}\n",[310,739,740,744,765,776,780,792,797,812,871,930,936,942,947,952,957],{"__ignoreMap":336},[340,741,742],{"class":342,"line":343},[340,743,536],{"class":459},[340,745,746,748,751,753,756,758,761,763],{"class":342,"line":484},[340,747,611],{"class":459},[340,749,750],{"class":350},"title",[340,752,478],{"class":459},[340,754,755],{"class":551},": ",[340,757,478],{"class":459},[340,759,760],{"class":350},"My Presentation",[340,762,478],{"class":459},[340,764,545],{"class":459},[340,766,767,769,772,774],{"class":342,"line":507},[340,768,611],{"class":459},[340,770,771],{"class":350},"slides",[340,773,478],{"class":459},[340,775,619],{"class":551},[340,777,778],{"class":342,"line":514},[340,779,624],{"class":459},[340,781,782,784,786,788,790],{"class":342,"line":539},[340,783,629],{"class":459},[340,785,632],{"class":551},[340,787,478],{"class":459},[340,789,555],{"class":459},[340,791,639],{"class":551},[340,793,794],{"class":342,"line":548},[340,795,796],{"class":459},"        {\n",[340,798,799,802,805,807,809],{"class":342,"line":567},[340,800,801],{"class":459},"          \"",[340,803,804],{"class":551},"shape",[340,806,478],{"class":459},[340,808,555],{"class":459},[340,810,811],{"class":459}," {\n",[340,813,814,817,820,822,824,828,830,832,835,837,839,841,843,845,848,850,852,855,857,859,862,864,866,869],{"class":342,"line":579},[340,815,816],{"class":459},"            \"",[340,818,819],{"class":551},"x",[340,821,478],{"class":459},[340,823,555],{"class":459},[340,825,827],{"class":826},"sbssI"," 100",[340,829,688],{"class":459},[340,831,473],{"class":459},[340,833,834],{"class":551},"y",[340,836,478],{"class":459},[340,838,555],{"class":459},[340,840,827],{"class":826},[340,842,688],{"class":459},[340,844,473],{"class":459},[340,846,847],{"class":551},"width",[340,849,478],{"class":459},[340,851,555],{"class":459},[340,853,854],{"class":826}," 760",[340,856,688],{"class":459},[340,858,473],{"class":459},[340,860,861],{"class":551},"height",[340,863,478],{"class":459},[340,865,555],{"class":459},[340,867,868],{"class":826}," 340",[340,870,545],{"class":459},[340,872,873,875,878,880,882,884,886,888,890,892,894,896,898,900,902,904,906,908,910,912,914,917,919,921,924,926,928],{"class":342,"line":729},[340,874,816],{"class":459},[340,876,877],{"class":551},"textBody",[340,879,478],{"class":459},[340,881,555],{"class":459},[340,883,460],{"class":459},[340,885,473],{"class":459},[340,887,632],{"class":551},[340,889,478],{"class":459},[340,891,555],{"class":459},[340,893,666],{"class":551},[340,895,669],{"class":459},[340,897,473],{"class":459},[340,899,674],{"class":551},[340,901,478],{"class":459},[340,903,555],{"class":459},[340,905,473],{"class":459},[340,907,683],{"class":350},[340,909,478],{"class":459},[340,911,688],{"class":459},[340,913,473],{"class":459},[340,915,916],{"class":551},"fontSize",[340,918,478],{"class":459},[340,920,555],{"class":459},[340,922,923],{"class":826}," 32",[340,925,467],{"class":459},[340,927,706],{"class":551},[340,929,732],{"class":459},[340,931,933],{"class":342,"line":932},10,[340,934,935],{"class":459},"          }\n",[340,937,939],{"class":342,"line":938},11,[340,940,941],{"class":459},"        }\n",[340,943,945],{"class":342,"line":944},12,[340,946,716],{"class":551},[340,948,950],{"class":342,"line":949},13,[340,951,721],{"class":459},[340,953,955],{"class":342,"line":954},14,[340,956,726],{"class":551},[340,958,960],{"class":342,"line":959},15,[340,961,732],{"class":459},[596,963,431],{"id":431},[331,965,967],{"className":446,"code":966,"language":448,"meta":336,"style":336},"{\n  \"worksheets\": [\n    {\n      \"name\": \"Sheet1\",\n      \"rows\": [\n        { \"cells\": [{ \"value\": \"Name\" }, { \"value\": \"Score\" }] },\n        { \"cells\": [{ \"value\": \"Alice\" }, { \"value\": 95 }] }\n      ]\n    }\n  ]\n}\n",[310,968,969,973,984,988,1008,1021,1081,1133,1137,1141,1145],{"__ignoreMap":336},[340,970,971],{"class":342,"line":343},[340,972,536],{"class":459},[340,974,975,977,980,982],{"class":342,"line":484},[340,976,611],{"class":459},[340,978,979],{"class":350},"worksheets",[340,981,478],{"class":459},[340,983,619],{"class":551},[340,985,986],{"class":342,"line":507},[340,987,624],{"class":459},[340,989,990,992,995,997,999,1001,1004,1006],{"class":342,"line":514},[340,991,629],{"class":459},[340,993,994],{"class":551},"name",[340,996,478],{"class":459},[340,998,555],{"class":459},[340,1000,473],{"class":459},[340,1002,1003],{"class":350},"Sheet1",[340,1005,478],{"class":459},[340,1007,545],{"class":459},[340,1009,1010,1012,1015,1017,1019],{"class":342,"line":539},[340,1011,629],{"class":459},[340,1013,1014],{"class":551},"rows",[340,1016,478],{"class":459},[340,1018,555],{"class":459},[340,1020,639],{"class":551},[340,1022,1023,1025,1027,1030,1032,1034,1036,1038,1040,1043,1045,1047,1049,1052,1054,1057,1059,1061,1063,1065,1067,1069,1072,1074,1076,1078],{"class":342,"line":548},[340,1024,644],{"class":459},[340,1026,473],{"class":459},[340,1028,1029],{"class":551},"cells",[340,1031,478],{"class":459},[340,1033,555],{"class":459},[340,1035,666],{"class":551},[340,1037,669],{"class":459},[340,1039,473],{"class":459},[340,1041,1042],{"class":551},"value",[340,1044,478],{"class":459},[340,1046,555],{"class":459},[340,1048,473],{"class":459},[340,1050,1051],{"class":350},"Name",[340,1053,478],{"class":459},[340,1055,1056],{"class":459}," },",[340,1058,460],{"class":459},[340,1060,473],{"class":459},[340,1062,1042],{"class":551},[340,1064,478],{"class":459},[340,1066,555],{"class":459},[340,1068,473],{"class":459},[340,1070,1071],{"class":350},"Score",[340,1073,478],{"class":459},[340,1075,467],{"class":459},[340,1077,706],{"class":551},[340,1079,1080],{"class":459},"},\n",[340,1082,1083,1085,1087,1089,1091,1093,1095,1097,1099,1101,1103,1105,1107,1110,1112,1114,1116,1118,1120,1122,1124,1127,1129,1131],{"class":342,"line":567},[340,1084,644],{"class":459},[340,1086,473],{"class":459},[340,1088,1029],{"class":551},[340,1090,478],{"class":459},[340,1092,555],{"class":459},[340,1094,666],{"class":551},[340,1096,669],{"class":459},[340,1098,473],{"class":459},[340,1100,1042],{"class":551},[340,1102,478],{"class":459},[340,1104,555],{"class":459},[340,1106,473],{"class":459},[340,1108,1109],{"class":350},"Alice",[340,1111,478],{"class":459},[340,1113,1056],{"class":459},[340,1115,460],{"class":459},[340,1117,473],{"class":459},[340,1119,1042],{"class":551},[340,1121,478],{"class":459},[340,1123,555],{"class":459},[340,1125,1126],{"class":826}," 95",[340,1128,467],{"class":459},[340,1130,706],{"class":551},[340,1132,732],{"class":459},[340,1134,1135],{"class":342,"line":579},[340,1136,716],{"class":551},[340,1138,1139],{"class":342,"line":729},[340,1140,721],{"class":459},[340,1142,1143],{"class":342,"line":932},[340,1144,726],{"class":551},[340,1146,1147],{"class":342,"line":938},[340,1148,732],{"class":459},[327,1150,1152],{"id":1151},"tool-output","Tool Output",[306,1154,1155],{},"Each tool returns a base64-encoded file:",[331,1157,1159],{"className":446,"code":1158,"language":448,"meta":336,"style":336},"{\n  \"base64\": \"...\",\n  \"mimeType\": \"application\u002Fvnd.openxmlformats-officedocument.wordprocessingml.document\"\n}\n",[310,1160,1161,1165,1185,1204],{"__ignoreMap":336},[340,1162,1163],{"class":342,"line":343},[340,1164,536],{"class":459},[340,1166,1167,1169,1172,1174,1176,1178,1181,1183],{"class":342,"line":484},[340,1168,611],{"class":459},[340,1170,1171],{"class":350},"base64",[340,1173,478],{"class":459},[340,1175,755],{"class":551},[340,1177,478],{"class":459},[340,1179,1180],{"class":350},"...",[340,1182,478],{"class":459},[340,1184,545],{"class":459},[340,1186,1187,1189,1192,1194,1196,1198,1201],{"class":342,"line":507},[340,1188,611],{"class":459},[340,1190,1191],{"class":350},"mimeType",[340,1193,478],{"class":459},[340,1195,755],{"class":551},[340,1197,478],{"class":459},[340,1199,1200],{"class":350},"application\u002Fvnd.openxmlformats-officedocument.wordprocessingml.document",[340,1202,1203],{"class":459},"\"\n",[340,1205,1206],{"class":342,"line":514},[340,1207,732],{"class":459},[327,1209,1211],{"id":1210},"zod-schemas","Zod Schemas",[306,1213,1214],{},"The schemas used for validation are also exported for custom use:",[331,1216,1218],{"className":446,"code":1217,"language":448,"meta":336,"style":336},"import { docxSchema, pptxSchema, xlsxSchema, validateDocumentInput } from \"office-open\u002Fschemas\";\n",[310,1219,1220],{"__ignoreMap":336},[340,1221,1222,1224,1226,1229,1231,1234,1236,1239,1241,1244,1246,1248,1250,1253,1255],{"class":342,"line":343},[340,1223,456],{"class":455},[340,1225,460],{"class":459},[340,1227,1228],{"class":463}," docxSchema",[340,1230,688],{"class":459},[340,1232,1233],{"class":463}," pptxSchema",[340,1235,688],{"class":459},[340,1237,1238],{"class":463}," xlsxSchema",[340,1240,688],{"class":459},[340,1242,1243],{"class":463}," validateDocumentInput",[340,1245,467],{"class":459},[340,1247,470],{"class":455},[340,1249,473],{"class":459},[340,1251,1252],{"class":350},"office-open\u002Fschemas",[340,1254,478],{"class":459},[340,1256,481],{"class":459},[306,1258,1259,1260,317,1262,321,1264,1266],{},"For full schema details, refer to the ",[362,1261,96],{"href":98},[362,1263,172],{"href":174},[362,1265,249],{"href":251}," documentation.",[1268,1269,1270],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":336,"searchDepth":484,"depth":484,"links":1272},[1273,1274,1275,1276,1281,1282],{"id":329,"depth":484,"text":15},{"id":375,"depth":484,"text":376},{"id":442,"depth":484,"text":443},{"id":590,"depth":484,"text":591,"children":1277},[1278,1279,1280],{"id":406,"depth":507,"text":406},{"id":419,"depth":507,"text":419},{"id":431,"depth":507,"text":431},{"id":1151,"depth":484,"text":1152},{"id":1210,"depth":484,"text":1211},"Use AI SDK tools to generate Office documents from AI agents","md",null,{},{"title":23,"description":1283},"D95BVqbpMoEAqkVH8l5GDV9hhudzv494k4k5tXKCXKM",[1290,1292],{"title":19,"path":20,"stem":21,"description":1291,"children":-1},"Generate Office files from the command line using JSON",{"title":27,"path":28,"stem":29,"description":1293,"children":-1},"Use Office Open with AI agents via MCP, Skills, and LLMs.txt",1780242163215]