[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-llamaindex-llamaparse":3,"mdc-qb0vos-key":34,"related-org-llamaindex-llamaparse":2685,"related-repo-llamaindex-llamaparse":2725},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":32,"mdContent":33},"llamaparse","parse unstructured documents","Use this skill when the user asks to parse the content of an unstructured file (PDF, PPTX, DOCX...)",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"llamaindex","LlamaIndex","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fllamaindex.png","run-llama",[13,17,20],{"name":14,"slug":15,"type":16},"PDF","pdf","tag",{"name":18,"slug":19,"type":16},"Data Analysis","data-analysis",{"name":21,"slug":22,"type":16},"Documents","documents",71,"https:\u002F\u002Fgithub.com\u002Frun-llama\u002Fllamaparse-agent-skills","2026-07-13T06:18:21.113769","MIT",10,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":31},[],"LlamaParse Agent Skills","https:\u002F\u002Fgithub.com\u002Frun-llama\u002Fllamaparse-agent-skills\u002Ftree\u002FHEAD\u002Fskills\u002Fllamaparse","---\nname: llamaparse\ndescription: Use this skill when the user asks to parse the content of an unstructured file (PDF, PPTX, DOCX...)\ncompatibility: Needs a `LLAMA_CLOUD_API_KEY` defined within the environment and the `@llamaindex\u002Fllama-cloud@latest` typescript library installed.\nlicense: MIT\nmetadata:\n  author: LlamaIndex\n  version: \"1.0.0\"\n---\n\n# LlamaParse Skill\n\nParse unstructured documents (such as PDF, DOCX, PPTX, XLSX) with LlamaParse and extract their contents (text, markdown, images...).\n\n## Initial Setup\n\nWhen this skill is invoked, respond with:\n\n```\nI'm ready to use LlamaParse to parse files. Before we begin, please confirm that:\n\n- `LLAMA_CLOUD_API_KEY` is set as environment variable within the current environment\n- `@llamaindex\u002Fllama-cloud@latest` is installed and available within the current Node environment\n\nIf both of them are set, please provide:\n\n1. One or more files to be parsed\n2. Specific parsing options, such as tier, API version, custom prompt, processing options...\n3. Any requests you might have regarding the parsed content of the file.\n\nI will produce a Typescript script to run the parsing job and, once you approved its execution, I will report the results back to you based on your request.\n```\n\nThen wait for the user's input.\n\n---\n\n## Step 0 — Install `llama-cloud` (optional)\n\nIf the user does not have the `@llamaindex\u002Fllama-cloud` package installed, add it to the current environment by running:\n\n```bash\nnpm install @llamaindex\u002Fllama-cloud@latest\n```\n\n## Step 1 — Produce a Typescript Script\n\nOnce the user confirms the environment variables are set and provides the necessary details for the parsing job, produce a **typescript script**.\n\nAs a source of truth for the TS script, you can:\n\n- Refer to the [example.ts](scripts\u002Fexample.ts) script, which covers most of the necessary configurations for LlamaParse\n- Refer to the complete LlamaParse Documentation, fetching the `https:\u002F\u002Fdevelopers.llamaindex.ai\u002Fpython\u002Fcloud\u002Fllamaparse\u002Fapi-v2-guide\u002F` page.\n\n### Scripting Best Practices\n\nFollow these guidelines when generating scripts:\n\n#### 1. Always Use the Top-Level `LlamaCloud` Client\n\nUse `LlamaCloud` (the API client) for all parsing operations:\n\n```typescript\nimport LlamaCloud from \"@llamaindex\u002Fllama-cloud\";\n\n\u002F\u002F Define a client\nconst client = new LlamaCloud({\n  apiKey: process.env[\"LLAMA_CLOUD_API_KEY\"], \u002F\u002F This is the default and can be omitted\n});\n\n```\n\n#### 2. Two-Step Upload → Parse Pattern\n\nAlways upload first to get a file ID, then parse using the file ID. Never pass raw file bytes directly to `parse()`.\n\n```typescript\nimport { readFile, writeFile } from \"fs\u002Fpromises\";\nimport { basename } from \"path\";\n\n\u002F\u002F 1. Convert the file path into a File object\nconst buffer = await readFile(filePath);\nconst fileName = basename(filePath);\nconst file = new File([buffer], fileName);\n\u002F\u002F 2. Upload the file to the cloud\nconst fileObj = await client.files.create({\n  file: file,\n  purpose: \"parse\",\n});\n\u002F\u002F 3. Get the file ID\nconst fileId = fileObj.id;\n\u002F\u002F 4. Use the file ID to parse the file\nconst result = await client.parsing.parse({\n  tier: \"agentic\",\n  version: \"latest\",\n  file_id: fileId,\n  ...\n});\n```\n\nIf the user already has a file ID (e.g. from a prior upload), skip the upload step and use it directly.\n\n#### 3. Choose the Right Tier\n\n| Tier | When to Use |\n|------|-------------|\n| `fast` | Speed is the priority; simple documents |\n| `cost_effective` | Budget-conscious; straightforward text extraction |\n| `agentic` | Complex layouts, tables, mixed content (default recommendation) |\n| `agentic_plus` | Advanced analysis, highest accuracy |\n\nDefault to `agentic` unless the user specifies otherwise or the document is simple.\n\n#### 4. Always Include the `expand` Parameter\n\nThe `expand` parameter controls what content is returned. Omitting it returns minimal data. Always specify exactly what you need:\n\n| Value | Returns |\n|-------|---------|\n| `text_full` | Plain text via `result.text_full` |\n| `markdown_full` | Markdown via `result.markdown_full` |\n| `items` | Page-level JSON via `result.items.pages` |\n| `text_content_metadata` | Per-page text metadata |\n| `markdown_content_metadata` | Per-page markdown metadata |\n| `items_content_metadata` | Per-page items metadata |\n| `images_content_metadata` | Image list with presigned URLs |\n| `output_pdf_content_metadata` | Output PDF metadata |\n| `xlsx_content_metadata` | Excel-specific metadata |\n\nOnly request metadata `*_content_metadata` variants when you need presigned URLs or per-page detail — they increase payload size.\n\n#### 5. Handle None Results Defensively\n\n`result.text_full`, `result.markdown_full`, and `result.items` may be `undefined` on failure. Always guard against this:\n\n```typescript\nconst text = result.text_full ?? \"\";\nconst markdown = result.markdown_full ?? \"\";\n```\n\n#### 6. Use Structured Options for Advanced Configuration\n\nGroup options using the correct nested keys:\n\n```typescript\nconst result = await client.parsing.parse({\n  tier: \"agentic\",\n  version: \"latest\",\n  file_id: fileId,\n  input_options: {\n    presentation: {\n      skip_embedded_data: false,\n    },\n  },\n  output_options: {\n    images_to_save: [\"screenshot\"],\n    markdown: {\n      tables: { output_tables_as_markdown: true },\n      annotate_links: true,\n    },\n  },\n  processing_options: {\n    specialized_chart_parsing: \"agentic\",\n    ocr_parameters: { languages: [\"de\", \"en\"] },\n  },\n  agentic_options: {\n    custom_prompt:\n      \"Extract text from the provided file and translate it from German to English.\",\n  },\n  expand: [\n    \"markdown_full\",\n    \"images_content_metadata\",\n    \"markdown_content_metadata\",\n  ],\n});\n```\n\nUse `agentic_options.custom_prompt` whenever the user wants to guide extraction (translation, summarization, structured extraction, etc.).\n\n#### 7. Downloading Images Requires `httpx` and Auth\n\nWhen `images_content_metadata` is in `expand`, download images via presigned URLs with Bearer auth:\n\n```typescript\nif (result.images_content_metadata) {\n  for (const image of result.images_content_metadata.images) {\n    if (image.presigned_url) {\n      const response = await fetch(image.presigned_url, {\n        headers: {\n          Authorization: `Bearer ${process.env[\"LLAMA_CLOUD_API_KEY\"]}`,\n        },\n      });\n      if (response.ok) {\n        const content = await response.bytes();\n        await writeFile(image.filename, content);\n      }\n    }\n  }\n}\n```\n\n#### 8. Use the Node shebang\n\nEvery generated script should include the node shebang:\n\n```typescript\n#!\u002Fusr\u002Fbin\u002Fenv node\n```\n\n---\n\n## Step 2 — Execute the Typescript Script\n\nOnce the typescript script has been produced, you should:\n\n1. Present the script to the user and ask for permissions to run it (depending on the current permissions settings)\n2. Once you obtained permission to run, execute the script\n3. Explore the results based on the user's requests\n\n> In order to run typescript scripts, it is highly recommended to use: `npx tsx script.ts`.\n",{"data":35,"body":39},{"name":4,"description":6,"compatibility":36,"license":26,"metadata":37},"Needs a `LLAMA_CLOUD_API_KEY` defined within the environment and the `@llamaindex\u002Fllama-cloud@latest` typescript library installed.",{"author":9,"version":38},"1.0.0",{"type":40,"children":41},"root",[42,51,57,64,69,82,87,91,105,118,150,156,169,174,206,213,218,233,245,430,436,448,1009,1014,1020,1115,1127,1141,1153,1346,1359,1365,1398,1490,1496,1501,2126,2138,2152,2171,2605,2611,2616,2630,2633,2639,2644,2663,2679],{"type":43,"tag":44,"props":45,"children":47},"element","h1",{"id":46},"llamaparse-skill",[48],{"type":49,"value":50},"text","LlamaParse Skill",{"type":43,"tag":52,"props":53,"children":54},"p",{},[55],{"type":49,"value":56},"Parse unstructured documents (such as PDF, DOCX, PPTX, XLSX) with LlamaParse and extract their contents (text, markdown, images...).",{"type":43,"tag":58,"props":59,"children":61},"h2",{"id":60},"initial-setup",[62],{"type":49,"value":63},"Initial Setup",{"type":43,"tag":52,"props":65,"children":66},{},[67],{"type":49,"value":68},"When this skill is invoked, respond with:",{"type":43,"tag":70,"props":71,"children":75},"pre",{"className":72,"code":74,"language":49},[73],"language-text","I'm ready to use LlamaParse to parse files. Before we begin, please confirm that:\n\n- `LLAMA_CLOUD_API_KEY` is set as environment variable within the current environment\n- `@llamaindex\u002Fllama-cloud@latest` is installed and available within the current Node environment\n\nIf both of them are set, please provide:\n\n1. One or more files to be parsed\n2. Specific parsing options, such as tier, API version, custom prompt, processing options...\n3. Any requests you might have regarding the parsed content of the file.\n\nI will produce a Typescript script to run the parsing job and, once you approved its execution, I will report the results back to you based on your request.\n",[76],{"type":43,"tag":77,"props":78,"children":80},"code",{"__ignoreMap":79},"",[81],{"type":49,"value":74},{"type":43,"tag":52,"props":83,"children":84},{},[85],{"type":49,"value":86},"Then wait for the user's input.",{"type":43,"tag":88,"props":89,"children":90},"hr",{},[],{"type":43,"tag":58,"props":92,"children":94},{"id":93},"step-0-install-llama-cloud-optional",[95,97,103],{"type":49,"value":96},"Step 0 — Install ",{"type":43,"tag":77,"props":98,"children":100},{"className":99},[],[101],{"type":49,"value":102},"llama-cloud",{"type":49,"value":104}," (optional)",{"type":43,"tag":52,"props":106,"children":107},{},[108,110,116],{"type":49,"value":109},"If the user does not have the ",{"type":43,"tag":77,"props":111,"children":113},{"className":112},[],[114],{"type":49,"value":115},"@llamaindex\u002Fllama-cloud",{"type":49,"value":117}," package installed, add it to the current environment by running:",{"type":43,"tag":70,"props":119,"children":123},{"className":120,"code":121,"language":122,"meta":79,"style":79},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install @llamaindex\u002Fllama-cloud@latest\n","bash",[124],{"type":43,"tag":77,"props":125,"children":126},{"__ignoreMap":79},[127],{"type":43,"tag":128,"props":129,"children":132},"span",{"class":130,"line":131},"line",1,[133,139,145],{"type":43,"tag":128,"props":134,"children":136},{"style":135},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[137],{"type":49,"value":138},"npm",{"type":43,"tag":128,"props":140,"children":142},{"style":141},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[143],{"type":49,"value":144}," install",{"type":43,"tag":128,"props":146,"children":147},{"style":141},[148],{"type":49,"value":149}," @llamaindex\u002Fllama-cloud@latest\n",{"type":43,"tag":58,"props":151,"children":153},{"id":152},"step-1-produce-a-typescript-script",[154],{"type":49,"value":155},"Step 1 — Produce a Typescript Script",{"type":43,"tag":52,"props":157,"children":158},{},[159,161,167],{"type":49,"value":160},"Once the user confirms the environment variables are set and provides the necessary details for the parsing job, produce a ",{"type":43,"tag":162,"props":163,"children":164},"strong",{},[165],{"type":49,"value":166},"typescript script",{"type":49,"value":168},".",{"type":43,"tag":52,"props":170,"children":171},{},[172],{"type":49,"value":173},"As a source of truth for the TS script, you can:",{"type":43,"tag":175,"props":176,"children":177},"ul",{},[178,193],{"type":43,"tag":179,"props":180,"children":181},"li",{},[182,184,191],{"type":49,"value":183},"Refer to the ",{"type":43,"tag":185,"props":186,"children":188},"a",{"href":187},"scripts\u002Fexample.ts",[189],{"type":49,"value":190},"example.ts",{"type":49,"value":192}," script, which covers most of the necessary configurations for LlamaParse",{"type":43,"tag":179,"props":194,"children":195},{},[196,198,204],{"type":49,"value":197},"Refer to the complete LlamaParse Documentation, fetching the ",{"type":43,"tag":77,"props":199,"children":201},{"className":200},[],[202],{"type":49,"value":203},"https:\u002F\u002Fdevelopers.llamaindex.ai\u002Fpython\u002Fcloud\u002Fllamaparse\u002Fapi-v2-guide\u002F",{"type":49,"value":205}," page.",{"type":43,"tag":207,"props":208,"children":210},"h3",{"id":209},"scripting-best-practices",[211],{"type":49,"value":212},"Scripting Best Practices",{"type":43,"tag":52,"props":214,"children":215},{},[216],{"type":49,"value":217},"Follow these guidelines when generating scripts:",{"type":43,"tag":219,"props":220,"children":222},"h4",{"id":221},"_1-always-use-the-top-level-llamacloud-client",[223,225,231],{"type":49,"value":224},"1. Always Use the Top-Level ",{"type":43,"tag":77,"props":226,"children":228},{"className":227},[],[229],{"type":49,"value":230},"LlamaCloud",{"type":49,"value":232}," Client",{"type":43,"tag":52,"props":234,"children":235},{},[236,238,243],{"type":49,"value":237},"Use ",{"type":43,"tag":77,"props":239,"children":241},{"className":240},[],[242],{"type":49,"value":230},{"type":49,"value":244}," (the API client) for all parsing operations:",{"type":43,"tag":70,"props":246,"children":250},{"className":247,"code":248,"language":249,"meta":79,"style":79},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import LlamaCloud from \"@llamaindex\u002Fllama-cloud\";\n\n\u002F\u002F Define a client\nconst client = new LlamaCloud({\n  apiKey: process.env[\"LLAMA_CLOUD_API_KEY\"], \u002F\u002F This is the default and can be omitted\n});\n\n","typescript",[251],{"type":43,"tag":77,"props":252,"children":253},{"__ignoreMap":79},[254,294,304,314,355,412],{"type":43,"tag":128,"props":255,"children":256},{"class":130,"line":131},[257,263,269,274,280,284,289],{"type":43,"tag":128,"props":258,"children":260},{"style":259},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[261],{"type":49,"value":262},"import",{"type":43,"tag":128,"props":264,"children":266},{"style":265},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[267],{"type":49,"value":268}," LlamaCloud ",{"type":43,"tag":128,"props":270,"children":271},{"style":259},[272],{"type":49,"value":273},"from",{"type":43,"tag":128,"props":275,"children":277},{"style":276},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[278],{"type":49,"value":279}," \"",{"type":43,"tag":128,"props":281,"children":282},{"style":141},[283],{"type":49,"value":115},{"type":43,"tag":128,"props":285,"children":286},{"style":276},[287],{"type":49,"value":288},"\"",{"type":43,"tag":128,"props":290,"children":291},{"style":276},[292],{"type":49,"value":293},";\n",{"type":43,"tag":128,"props":295,"children":297},{"class":130,"line":296},2,[298],{"type":43,"tag":128,"props":299,"children":301},{"emptyLinePlaceholder":300},true,[302],{"type":49,"value":303},"\n",{"type":43,"tag":128,"props":305,"children":307},{"class":130,"line":306},3,[308],{"type":43,"tag":128,"props":309,"children":311},{"style":310},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[312],{"type":49,"value":313},"\u002F\u002F Define a client\n",{"type":43,"tag":128,"props":315,"children":317},{"class":130,"line":316},4,[318,324,329,334,339,345,350],{"type":43,"tag":128,"props":319,"children":321},{"style":320},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[322],{"type":49,"value":323},"const",{"type":43,"tag":128,"props":325,"children":326},{"style":265},[327],{"type":49,"value":328}," client ",{"type":43,"tag":128,"props":330,"children":331},{"style":276},[332],{"type":49,"value":333},"=",{"type":43,"tag":128,"props":335,"children":336},{"style":276},[337],{"type":49,"value":338}," new",{"type":43,"tag":128,"props":340,"children":342},{"style":341},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[343],{"type":49,"value":344}," LlamaCloud",{"type":43,"tag":128,"props":346,"children":347},{"style":265},[348],{"type":49,"value":349},"(",{"type":43,"tag":128,"props":351,"children":352},{"style":276},[353],{"type":49,"value":354},"{\n",{"type":43,"tag":128,"props":356,"children":358},{"class":130,"line":357},5,[359,365,370,375,379,384,388,393,397,402,407],{"type":43,"tag":128,"props":360,"children":362},{"style":361},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[363],{"type":49,"value":364},"  apiKey",{"type":43,"tag":128,"props":366,"children":367},{"style":276},[368],{"type":49,"value":369},":",{"type":43,"tag":128,"props":371,"children":372},{"style":265},[373],{"type":49,"value":374}," process",{"type":43,"tag":128,"props":376,"children":377},{"style":276},[378],{"type":49,"value":168},{"type":43,"tag":128,"props":380,"children":381},{"style":265},[382],{"type":49,"value":383},"env[",{"type":43,"tag":128,"props":385,"children":386},{"style":276},[387],{"type":49,"value":288},{"type":43,"tag":128,"props":389,"children":390},{"style":141},[391],{"type":49,"value":392},"LLAMA_CLOUD_API_KEY",{"type":43,"tag":128,"props":394,"children":395},{"style":276},[396],{"type":49,"value":288},{"type":43,"tag":128,"props":398,"children":399},{"style":265},[400],{"type":49,"value":401},"]",{"type":43,"tag":128,"props":403,"children":404},{"style":276},[405],{"type":49,"value":406},",",{"type":43,"tag":128,"props":408,"children":409},{"style":310},[410],{"type":49,"value":411}," \u002F\u002F This is the default and can be omitted\n",{"type":43,"tag":128,"props":413,"children":415},{"class":130,"line":414},6,[416,421,426],{"type":43,"tag":128,"props":417,"children":418},{"style":276},[419],{"type":49,"value":420},"}",{"type":43,"tag":128,"props":422,"children":423},{"style":265},[424],{"type":49,"value":425},")",{"type":43,"tag":128,"props":427,"children":428},{"style":276},[429],{"type":49,"value":293},{"type":43,"tag":219,"props":431,"children":433},{"id":432},"_2-two-step-upload-parse-pattern",[434],{"type":49,"value":435},"2. Two-Step Upload → Parse Pattern",{"type":43,"tag":52,"props":437,"children":438},{},[439,441,447],{"type":49,"value":440},"Always upload first to get a file ID, then parse using the file ID. Never pass raw file bytes directly to ",{"type":43,"tag":77,"props":442,"children":444},{"className":443},[],[445],{"type":49,"value":446},"parse()",{"type":49,"value":168},{"type":43,"tag":70,"props":449,"children":451},{"className":247,"code":450,"language":249,"meta":79,"style":79},"import { readFile, writeFile } from \"fs\u002Fpromises\";\nimport { basename } from \"path\";\n\n\u002F\u002F 1. Convert the file path into a File object\nconst buffer = await readFile(filePath);\nconst fileName = basename(filePath);\nconst file = new File([buffer], fileName);\n\u002F\u002F 2. Upload the file to the cloud\nconst fileObj = await client.files.create({\n  file: file,\n  purpose: \"parse\",\n});\n\u002F\u002F 3. Get the file ID\nconst fileId = fileObj.id;\n\u002F\u002F 4. Use the file ID to parse the file\nconst result = await client.parsing.parse({\n  tier: \"agentic\",\n  version: \"latest\",\n  file_id: fileId,\n  ...\n});\n",[452],{"type":43,"tag":77,"props":453,"children":454},{"__ignoreMap":79},[455,508,549,556,564,598,626,670,679,731,753,783,799,808,843,852,902,932,962,984,993],{"type":43,"tag":128,"props":456,"children":457},{"class":130,"line":131},[458,462,467,472,476,481,486,491,495,500,504],{"type":43,"tag":128,"props":459,"children":460},{"style":259},[461],{"type":49,"value":262},{"type":43,"tag":128,"props":463,"children":464},{"style":276},[465],{"type":49,"value":466}," {",{"type":43,"tag":128,"props":468,"children":469},{"style":265},[470],{"type":49,"value":471}," readFile",{"type":43,"tag":128,"props":473,"children":474},{"style":276},[475],{"type":49,"value":406},{"type":43,"tag":128,"props":477,"children":478},{"style":265},[479],{"type":49,"value":480}," writeFile",{"type":43,"tag":128,"props":482,"children":483},{"style":276},[484],{"type":49,"value":485}," }",{"type":43,"tag":128,"props":487,"children":488},{"style":259},[489],{"type":49,"value":490}," from",{"type":43,"tag":128,"props":492,"children":493},{"style":276},[494],{"type":49,"value":279},{"type":43,"tag":128,"props":496,"children":497},{"style":141},[498],{"type":49,"value":499},"fs\u002Fpromises",{"type":43,"tag":128,"props":501,"children":502},{"style":276},[503],{"type":49,"value":288},{"type":43,"tag":128,"props":505,"children":506},{"style":276},[507],{"type":49,"value":293},{"type":43,"tag":128,"props":509,"children":510},{"class":130,"line":296},[511,515,519,524,528,532,536,541,545],{"type":43,"tag":128,"props":512,"children":513},{"style":259},[514],{"type":49,"value":262},{"type":43,"tag":128,"props":516,"children":517},{"style":276},[518],{"type":49,"value":466},{"type":43,"tag":128,"props":520,"children":521},{"style":265},[522],{"type":49,"value":523}," basename",{"type":43,"tag":128,"props":525,"children":526},{"style":276},[527],{"type":49,"value":485},{"type":43,"tag":128,"props":529,"children":530},{"style":259},[531],{"type":49,"value":490},{"type":43,"tag":128,"props":533,"children":534},{"style":276},[535],{"type":49,"value":279},{"type":43,"tag":128,"props":537,"children":538},{"style":141},[539],{"type":49,"value":540},"path",{"type":43,"tag":128,"props":542,"children":543},{"style":276},[544],{"type":49,"value":288},{"type":43,"tag":128,"props":546,"children":547},{"style":276},[548],{"type":49,"value":293},{"type":43,"tag":128,"props":550,"children":551},{"class":130,"line":306},[552],{"type":43,"tag":128,"props":553,"children":554},{"emptyLinePlaceholder":300},[555],{"type":49,"value":303},{"type":43,"tag":128,"props":557,"children":558},{"class":130,"line":316},[559],{"type":43,"tag":128,"props":560,"children":561},{"style":310},[562],{"type":49,"value":563},"\u002F\u002F 1. Convert the file path into a File object\n",{"type":43,"tag":128,"props":565,"children":566},{"class":130,"line":357},[567,571,576,580,585,589,594],{"type":43,"tag":128,"props":568,"children":569},{"style":320},[570],{"type":49,"value":323},{"type":43,"tag":128,"props":572,"children":573},{"style":265},[574],{"type":49,"value":575}," buffer ",{"type":43,"tag":128,"props":577,"children":578},{"style":276},[579],{"type":49,"value":333},{"type":43,"tag":128,"props":581,"children":582},{"style":259},[583],{"type":49,"value":584}," await",{"type":43,"tag":128,"props":586,"children":587},{"style":341},[588],{"type":49,"value":471},{"type":43,"tag":128,"props":590,"children":591},{"style":265},[592],{"type":49,"value":593},"(filePath)",{"type":43,"tag":128,"props":595,"children":596},{"style":276},[597],{"type":49,"value":293},{"type":43,"tag":128,"props":599,"children":600},{"class":130,"line":414},[601,605,610,614,618,622],{"type":43,"tag":128,"props":602,"children":603},{"style":320},[604],{"type":49,"value":323},{"type":43,"tag":128,"props":606,"children":607},{"style":265},[608],{"type":49,"value":609}," fileName ",{"type":43,"tag":128,"props":611,"children":612},{"style":276},[613],{"type":49,"value":333},{"type":43,"tag":128,"props":615,"children":616},{"style":341},[617],{"type":49,"value":523},{"type":43,"tag":128,"props":619,"children":620},{"style":265},[621],{"type":49,"value":593},{"type":43,"tag":128,"props":623,"children":624},{"style":276},[625],{"type":49,"value":293},{"type":43,"tag":128,"props":627,"children":629},{"class":130,"line":628},7,[630,634,639,643,647,652,657,661,666],{"type":43,"tag":128,"props":631,"children":632},{"style":320},[633],{"type":49,"value":323},{"type":43,"tag":128,"props":635,"children":636},{"style":265},[637],{"type":49,"value":638}," file ",{"type":43,"tag":128,"props":640,"children":641},{"style":276},[642],{"type":49,"value":333},{"type":43,"tag":128,"props":644,"children":645},{"style":276},[646],{"type":49,"value":338},{"type":43,"tag":128,"props":648,"children":649},{"style":341},[650],{"type":49,"value":651}," File",{"type":43,"tag":128,"props":653,"children":654},{"style":265},[655],{"type":49,"value":656},"([buffer]",{"type":43,"tag":128,"props":658,"children":659},{"style":276},[660],{"type":49,"value":406},{"type":43,"tag":128,"props":662,"children":663},{"style":265},[664],{"type":49,"value":665}," fileName)",{"type":43,"tag":128,"props":667,"children":668},{"style":276},[669],{"type":49,"value":293},{"type":43,"tag":128,"props":671,"children":673},{"class":130,"line":672},8,[674],{"type":43,"tag":128,"props":675,"children":676},{"style":310},[677],{"type":49,"value":678},"\u002F\u002F 2. Upload the file to the cloud\n",{"type":43,"tag":128,"props":680,"children":682},{"class":130,"line":681},9,[683,687,692,696,700,705,709,714,718,723,727],{"type":43,"tag":128,"props":684,"children":685},{"style":320},[686],{"type":49,"value":323},{"type":43,"tag":128,"props":688,"children":689},{"style":265},[690],{"type":49,"value":691}," fileObj ",{"type":43,"tag":128,"props":693,"children":694},{"style":276},[695],{"type":49,"value":333},{"type":43,"tag":128,"props":697,"children":698},{"style":259},[699],{"type":49,"value":584},{"type":43,"tag":128,"props":701,"children":702},{"style":265},[703],{"type":49,"value":704}," client",{"type":43,"tag":128,"props":706,"children":707},{"style":276},[708],{"type":49,"value":168},{"type":43,"tag":128,"props":710,"children":711},{"style":265},[712],{"type":49,"value":713},"files",{"type":43,"tag":128,"props":715,"children":716},{"style":276},[717],{"type":49,"value":168},{"type":43,"tag":128,"props":719,"children":720},{"style":341},[721],{"type":49,"value":722},"create",{"type":43,"tag":128,"props":724,"children":725},{"style":265},[726],{"type":49,"value":349},{"type":43,"tag":128,"props":728,"children":729},{"style":276},[730],{"type":49,"value":354},{"type":43,"tag":128,"props":732,"children":733},{"class":130,"line":27},[734,739,743,748],{"type":43,"tag":128,"props":735,"children":736},{"style":361},[737],{"type":49,"value":738},"  file",{"type":43,"tag":128,"props":740,"children":741},{"style":276},[742],{"type":49,"value":369},{"type":43,"tag":128,"props":744,"children":745},{"style":265},[746],{"type":49,"value":747}," file",{"type":43,"tag":128,"props":749,"children":750},{"style":276},[751],{"type":49,"value":752},",\n",{"type":43,"tag":128,"props":754,"children":756},{"class":130,"line":755},11,[757,762,766,770,775,779],{"type":43,"tag":128,"props":758,"children":759},{"style":361},[760],{"type":49,"value":761},"  purpose",{"type":43,"tag":128,"props":763,"children":764},{"style":276},[765],{"type":49,"value":369},{"type":43,"tag":128,"props":767,"children":768},{"style":276},[769],{"type":49,"value":279},{"type":43,"tag":128,"props":771,"children":772},{"style":141},[773],{"type":49,"value":774},"parse",{"type":43,"tag":128,"props":776,"children":777},{"style":276},[778],{"type":49,"value":288},{"type":43,"tag":128,"props":780,"children":781},{"style":276},[782],{"type":49,"value":752},{"type":43,"tag":128,"props":784,"children":786},{"class":130,"line":785},12,[787,791,795],{"type":43,"tag":128,"props":788,"children":789},{"style":276},[790],{"type":49,"value":420},{"type":43,"tag":128,"props":792,"children":793},{"style":265},[794],{"type":49,"value":425},{"type":43,"tag":128,"props":796,"children":797},{"style":276},[798],{"type":49,"value":293},{"type":43,"tag":128,"props":800,"children":802},{"class":130,"line":801},13,[803],{"type":43,"tag":128,"props":804,"children":805},{"style":310},[806],{"type":49,"value":807},"\u002F\u002F 3. Get the file ID\n",{"type":43,"tag":128,"props":809,"children":811},{"class":130,"line":810},14,[812,816,821,825,830,834,839],{"type":43,"tag":128,"props":813,"children":814},{"style":320},[815],{"type":49,"value":323},{"type":43,"tag":128,"props":817,"children":818},{"style":265},[819],{"type":49,"value":820}," fileId ",{"type":43,"tag":128,"props":822,"children":823},{"style":276},[824],{"type":49,"value":333},{"type":43,"tag":128,"props":826,"children":827},{"style":265},[828],{"type":49,"value":829}," fileObj",{"type":43,"tag":128,"props":831,"children":832},{"style":276},[833],{"type":49,"value":168},{"type":43,"tag":128,"props":835,"children":836},{"style":265},[837],{"type":49,"value":838},"id",{"type":43,"tag":128,"props":840,"children":841},{"style":276},[842],{"type":49,"value":293},{"type":43,"tag":128,"props":844,"children":846},{"class":130,"line":845},15,[847],{"type":43,"tag":128,"props":848,"children":849},{"style":310},[850],{"type":49,"value":851},"\u002F\u002F 4. Use the file ID to parse the file\n",{"type":43,"tag":128,"props":853,"children":855},{"class":130,"line":854},16,[856,860,865,869,873,877,881,886,890,894,898],{"type":43,"tag":128,"props":857,"children":858},{"style":320},[859],{"type":49,"value":323},{"type":43,"tag":128,"props":861,"children":862},{"style":265},[863],{"type":49,"value":864}," result ",{"type":43,"tag":128,"props":866,"children":867},{"style":276},[868],{"type":49,"value":333},{"type":43,"tag":128,"props":870,"children":871},{"style":259},[872],{"type":49,"value":584},{"type":43,"tag":128,"props":874,"children":875},{"style":265},[876],{"type":49,"value":704},{"type":43,"tag":128,"props":878,"children":879},{"style":276},[880],{"type":49,"value":168},{"type":43,"tag":128,"props":882,"children":883},{"style":265},[884],{"type":49,"value":885},"parsing",{"type":43,"tag":128,"props":887,"children":888},{"style":276},[889],{"type":49,"value":168},{"type":43,"tag":128,"props":891,"children":892},{"style":341},[893],{"type":49,"value":774},{"type":43,"tag":128,"props":895,"children":896},{"style":265},[897],{"type":49,"value":349},{"type":43,"tag":128,"props":899,"children":900},{"style":276},[901],{"type":49,"value":354},{"type":43,"tag":128,"props":903,"children":905},{"class":130,"line":904},17,[906,911,915,919,924,928],{"type":43,"tag":128,"props":907,"children":908},{"style":361},[909],{"type":49,"value":910},"  tier",{"type":43,"tag":128,"props":912,"children":913},{"style":276},[914],{"type":49,"value":369},{"type":43,"tag":128,"props":916,"children":917},{"style":276},[918],{"type":49,"value":279},{"type":43,"tag":128,"props":920,"children":921},{"style":141},[922],{"type":49,"value":923},"agentic",{"type":43,"tag":128,"props":925,"children":926},{"style":276},[927],{"type":49,"value":288},{"type":43,"tag":128,"props":929,"children":930},{"style":276},[931],{"type":49,"value":752},{"type":43,"tag":128,"props":933,"children":935},{"class":130,"line":934},18,[936,941,945,949,954,958],{"type":43,"tag":128,"props":937,"children":938},{"style":361},[939],{"type":49,"value":940},"  version",{"type":43,"tag":128,"props":942,"children":943},{"style":276},[944],{"type":49,"value":369},{"type":43,"tag":128,"props":946,"children":947},{"style":276},[948],{"type":49,"value":279},{"type":43,"tag":128,"props":950,"children":951},{"style":141},[952],{"type":49,"value":953},"latest",{"type":43,"tag":128,"props":955,"children":956},{"style":276},[957],{"type":49,"value":288},{"type":43,"tag":128,"props":959,"children":960},{"style":276},[961],{"type":49,"value":752},{"type":43,"tag":128,"props":963,"children":965},{"class":130,"line":964},19,[966,971,975,980],{"type":43,"tag":128,"props":967,"children":968},{"style":361},[969],{"type":49,"value":970},"  file_id",{"type":43,"tag":128,"props":972,"children":973},{"style":276},[974],{"type":49,"value":369},{"type":43,"tag":128,"props":976,"children":977},{"style":265},[978],{"type":49,"value":979}," fileId",{"type":43,"tag":128,"props":981,"children":982},{"style":276},[983],{"type":49,"value":752},{"type":43,"tag":128,"props":985,"children":987},{"class":130,"line":986},20,[988],{"type":43,"tag":128,"props":989,"children":990},{"style":276},[991],{"type":49,"value":992},"  ...\n",{"type":43,"tag":128,"props":994,"children":996},{"class":130,"line":995},21,[997,1001,1005],{"type":43,"tag":128,"props":998,"children":999},{"style":276},[1000],{"type":49,"value":420},{"type":43,"tag":128,"props":1002,"children":1003},{"style":265},[1004],{"type":49,"value":425},{"type":43,"tag":128,"props":1006,"children":1007},{"style":276},[1008],{"type":49,"value":293},{"type":43,"tag":52,"props":1010,"children":1011},{},[1012],{"type":49,"value":1013},"If the user already has a file ID (e.g. from a prior upload), skip the upload step and use it directly.",{"type":43,"tag":219,"props":1015,"children":1017},{"id":1016},"_3-choose-the-right-tier",[1018],{"type":49,"value":1019},"3. Choose the Right Tier",{"type":43,"tag":1021,"props":1022,"children":1023},"table",{},[1024,1043],{"type":43,"tag":1025,"props":1026,"children":1027},"thead",{},[1028],{"type":43,"tag":1029,"props":1030,"children":1031},"tr",{},[1032,1038],{"type":43,"tag":1033,"props":1034,"children":1035},"th",{},[1036],{"type":49,"value":1037},"Tier",{"type":43,"tag":1033,"props":1039,"children":1040},{},[1041],{"type":49,"value":1042},"When to Use",{"type":43,"tag":1044,"props":1045,"children":1046},"tbody",{},[1047,1065,1082,1098],{"type":43,"tag":1029,"props":1048,"children":1049},{},[1050,1060],{"type":43,"tag":1051,"props":1052,"children":1053},"td",{},[1054],{"type":43,"tag":77,"props":1055,"children":1057},{"className":1056},[],[1058],{"type":49,"value":1059},"fast",{"type":43,"tag":1051,"props":1061,"children":1062},{},[1063],{"type":49,"value":1064},"Speed is the priority; simple documents",{"type":43,"tag":1029,"props":1066,"children":1067},{},[1068,1077],{"type":43,"tag":1051,"props":1069,"children":1070},{},[1071],{"type":43,"tag":77,"props":1072,"children":1074},{"className":1073},[],[1075],{"type":49,"value":1076},"cost_effective",{"type":43,"tag":1051,"props":1078,"children":1079},{},[1080],{"type":49,"value":1081},"Budget-conscious; straightforward text extraction",{"type":43,"tag":1029,"props":1083,"children":1084},{},[1085,1093],{"type":43,"tag":1051,"props":1086,"children":1087},{},[1088],{"type":43,"tag":77,"props":1089,"children":1091},{"className":1090},[],[1092],{"type":49,"value":923},{"type":43,"tag":1051,"props":1094,"children":1095},{},[1096],{"type":49,"value":1097},"Complex layouts, tables, mixed content (default recommendation)",{"type":43,"tag":1029,"props":1099,"children":1100},{},[1101,1110],{"type":43,"tag":1051,"props":1102,"children":1103},{},[1104],{"type":43,"tag":77,"props":1105,"children":1107},{"className":1106},[],[1108],{"type":49,"value":1109},"agentic_plus",{"type":43,"tag":1051,"props":1111,"children":1112},{},[1113],{"type":49,"value":1114},"Advanced analysis, highest accuracy",{"type":43,"tag":52,"props":1116,"children":1117},{},[1118,1120,1125],{"type":49,"value":1119},"Default to ",{"type":43,"tag":77,"props":1121,"children":1123},{"className":1122},[],[1124],{"type":49,"value":923},{"type":49,"value":1126}," unless the user specifies otherwise or the document is simple.",{"type":43,"tag":219,"props":1128,"children":1130},{"id":1129},"_4-always-include-the-expand-parameter",[1131,1133,1139],{"type":49,"value":1132},"4. Always Include the ",{"type":43,"tag":77,"props":1134,"children":1136},{"className":1135},[],[1137],{"type":49,"value":1138},"expand",{"type":49,"value":1140}," Parameter",{"type":43,"tag":52,"props":1142,"children":1143},{},[1144,1146,1151],{"type":49,"value":1145},"The ",{"type":43,"tag":77,"props":1147,"children":1149},{"className":1148},[],[1150],{"type":49,"value":1138},{"type":49,"value":1152}," parameter controls what content is returned. Omitting it returns minimal data. Always specify exactly what you need:",{"type":43,"tag":1021,"props":1154,"children":1155},{},[1156,1172],{"type":43,"tag":1025,"props":1157,"children":1158},{},[1159],{"type":43,"tag":1029,"props":1160,"children":1161},{},[1162,1167],{"type":43,"tag":1033,"props":1163,"children":1164},{},[1165],{"type":49,"value":1166},"Value",{"type":43,"tag":1033,"props":1168,"children":1169},{},[1170],{"type":49,"value":1171},"Returns",{"type":43,"tag":1044,"props":1173,"children":1174},{},[1175,1198,1221,1244,1261,1278,1295,1312,1329],{"type":43,"tag":1029,"props":1176,"children":1177},{},[1178,1187],{"type":43,"tag":1051,"props":1179,"children":1180},{},[1181],{"type":43,"tag":77,"props":1182,"children":1184},{"className":1183},[],[1185],{"type":49,"value":1186},"text_full",{"type":43,"tag":1051,"props":1188,"children":1189},{},[1190,1192],{"type":49,"value":1191},"Plain text via ",{"type":43,"tag":77,"props":1193,"children":1195},{"className":1194},[],[1196],{"type":49,"value":1197},"result.text_full",{"type":43,"tag":1029,"props":1199,"children":1200},{},[1201,1210],{"type":43,"tag":1051,"props":1202,"children":1203},{},[1204],{"type":43,"tag":77,"props":1205,"children":1207},{"className":1206},[],[1208],{"type":49,"value":1209},"markdown_full",{"type":43,"tag":1051,"props":1211,"children":1212},{},[1213,1215],{"type":49,"value":1214},"Markdown via ",{"type":43,"tag":77,"props":1216,"children":1218},{"className":1217},[],[1219],{"type":49,"value":1220},"result.markdown_full",{"type":43,"tag":1029,"props":1222,"children":1223},{},[1224,1233],{"type":43,"tag":1051,"props":1225,"children":1226},{},[1227],{"type":43,"tag":77,"props":1228,"children":1230},{"className":1229},[],[1231],{"type":49,"value":1232},"items",{"type":43,"tag":1051,"props":1234,"children":1235},{},[1236,1238],{"type":49,"value":1237},"Page-level JSON via ",{"type":43,"tag":77,"props":1239,"children":1241},{"className":1240},[],[1242],{"type":49,"value":1243},"result.items.pages",{"type":43,"tag":1029,"props":1245,"children":1246},{},[1247,1256],{"type":43,"tag":1051,"props":1248,"children":1249},{},[1250],{"type":43,"tag":77,"props":1251,"children":1253},{"className":1252},[],[1254],{"type":49,"value":1255},"text_content_metadata",{"type":43,"tag":1051,"props":1257,"children":1258},{},[1259],{"type":49,"value":1260},"Per-page text metadata",{"type":43,"tag":1029,"props":1262,"children":1263},{},[1264,1273],{"type":43,"tag":1051,"props":1265,"children":1266},{},[1267],{"type":43,"tag":77,"props":1268,"children":1270},{"className":1269},[],[1271],{"type":49,"value":1272},"markdown_content_metadata",{"type":43,"tag":1051,"props":1274,"children":1275},{},[1276],{"type":49,"value":1277},"Per-page markdown metadata",{"type":43,"tag":1029,"props":1279,"children":1280},{},[1281,1290],{"type":43,"tag":1051,"props":1282,"children":1283},{},[1284],{"type":43,"tag":77,"props":1285,"children":1287},{"className":1286},[],[1288],{"type":49,"value":1289},"items_content_metadata",{"type":43,"tag":1051,"props":1291,"children":1292},{},[1293],{"type":49,"value":1294},"Per-page items metadata",{"type":43,"tag":1029,"props":1296,"children":1297},{},[1298,1307],{"type":43,"tag":1051,"props":1299,"children":1300},{},[1301],{"type":43,"tag":77,"props":1302,"children":1304},{"className":1303},[],[1305],{"type":49,"value":1306},"images_content_metadata",{"type":43,"tag":1051,"props":1308,"children":1309},{},[1310],{"type":49,"value":1311},"Image list with presigned URLs",{"type":43,"tag":1029,"props":1313,"children":1314},{},[1315,1324],{"type":43,"tag":1051,"props":1316,"children":1317},{},[1318],{"type":43,"tag":77,"props":1319,"children":1321},{"className":1320},[],[1322],{"type":49,"value":1323},"output_pdf_content_metadata",{"type":43,"tag":1051,"props":1325,"children":1326},{},[1327],{"type":49,"value":1328},"Output PDF metadata",{"type":43,"tag":1029,"props":1330,"children":1331},{},[1332,1341],{"type":43,"tag":1051,"props":1333,"children":1334},{},[1335],{"type":43,"tag":77,"props":1336,"children":1338},{"className":1337},[],[1339],{"type":49,"value":1340},"xlsx_content_metadata",{"type":43,"tag":1051,"props":1342,"children":1343},{},[1344],{"type":49,"value":1345},"Excel-specific metadata",{"type":43,"tag":52,"props":1347,"children":1348},{},[1349,1351,1357],{"type":49,"value":1350},"Only request metadata ",{"type":43,"tag":77,"props":1352,"children":1354},{"className":1353},[],[1355],{"type":49,"value":1356},"*_content_metadata",{"type":49,"value":1358}," variants when you need presigned URLs or per-page detail — they increase payload size.",{"type":43,"tag":219,"props":1360,"children":1362},{"id":1361},"_5-handle-none-results-defensively",[1363],{"type":49,"value":1364},"5. Handle None Results Defensively",{"type":43,"tag":52,"props":1366,"children":1367},{},[1368,1373,1375,1380,1382,1388,1390,1396],{"type":43,"tag":77,"props":1369,"children":1371},{"className":1370},[],[1372],{"type":49,"value":1197},{"type":49,"value":1374},", ",{"type":43,"tag":77,"props":1376,"children":1378},{"className":1377},[],[1379],{"type":49,"value":1220},{"type":49,"value":1381},", and ",{"type":43,"tag":77,"props":1383,"children":1385},{"className":1384},[],[1386],{"type":49,"value":1387},"result.items",{"type":49,"value":1389}," may be ",{"type":43,"tag":77,"props":1391,"children":1393},{"className":1392},[],[1394],{"type":49,"value":1395},"undefined",{"type":49,"value":1397}," on failure. Always guard against this:",{"type":43,"tag":70,"props":1399,"children":1401},{"className":247,"code":1400,"language":249,"meta":79,"style":79},"const text = result.text_full ?? \"\";\nconst markdown = result.markdown_full ?? \"\";\n",[1402],{"type":43,"tag":77,"props":1403,"children":1404},{"__ignoreMap":79},[1405,1449],{"type":43,"tag":128,"props":1406,"children":1407},{"class":130,"line":131},[1408,1412,1417,1421,1426,1430,1435,1440,1445],{"type":43,"tag":128,"props":1409,"children":1410},{"style":320},[1411],{"type":49,"value":323},{"type":43,"tag":128,"props":1413,"children":1414},{"style":265},[1415],{"type":49,"value":1416}," text ",{"type":43,"tag":128,"props":1418,"children":1419},{"style":276},[1420],{"type":49,"value":333},{"type":43,"tag":128,"props":1422,"children":1423},{"style":265},[1424],{"type":49,"value":1425}," result",{"type":43,"tag":128,"props":1427,"children":1428},{"style":276},[1429],{"type":49,"value":168},{"type":43,"tag":128,"props":1431,"children":1432},{"style":265},[1433],{"type":49,"value":1434},"text_full ",{"type":43,"tag":128,"props":1436,"children":1437},{"style":276},[1438],{"type":49,"value":1439},"??",{"type":43,"tag":128,"props":1441,"children":1442},{"style":276},[1443],{"type":49,"value":1444}," \"\"",{"type":43,"tag":128,"props":1446,"children":1447},{"style":276},[1448],{"type":49,"value":293},{"type":43,"tag":128,"props":1450,"children":1451},{"class":130,"line":296},[1452,1456,1461,1465,1469,1473,1478,1482,1486],{"type":43,"tag":128,"props":1453,"children":1454},{"style":320},[1455],{"type":49,"value":323},{"type":43,"tag":128,"props":1457,"children":1458},{"style":265},[1459],{"type":49,"value":1460}," markdown ",{"type":43,"tag":128,"props":1462,"children":1463},{"style":276},[1464],{"type":49,"value":333},{"type":43,"tag":128,"props":1466,"children":1467},{"style":265},[1468],{"type":49,"value":1425},{"type":43,"tag":128,"props":1470,"children":1471},{"style":276},[1472],{"type":49,"value":168},{"type":43,"tag":128,"props":1474,"children":1475},{"style":265},[1476],{"type":49,"value":1477},"markdown_full ",{"type":43,"tag":128,"props":1479,"children":1480},{"style":276},[1481],{"type":49,"value":1439},{"type":43,"tag":128,"props":1483,"children":1484},{"style":276},[1485],{"type":49,"value":1444},{"type":43,"tag":128,"props":1487,"children":1488},{"style":276},[1489],{"type":49,"value":293},{"type":43,"tag":219,"props":1491,"children":1493},{"id":1492},"_6-use-structured-options-for-advanced-configuration",[1494],{"type":49,"value":1495},"6. Use Structured Options for Advanced Configuration",{"type":43,"tag":52,"props":1497,"children":1498},{},[1499],{"type":49,"value":1500},"Group options using the correct nested keys:",{"type":43,"tag":70,"props":1502,"children":1504},{"className":247,"code":1503,"language":249,"meta":79,"style":79},"const result = await client.parsing.parse({\n  tier: \"agentic\",\n  version: \"latest\",\n  file_id: fileId,\n  input_options: {\n    presentation: {\n      skip_embedded_data: false,\n    },\n  },\n  output_options: {\n    images_to_save: [\"screenshot\"],\n    markdown: {\n      tables: { output_tables_as_markdown: true },\n      annotate_links: true,\n    },\n  },\n  processing_options: {\n    specialized_chart_parsing: \"agentic\",\n    ocr_parameters: { languages: [\"de\", \"en\"] },\n  },\n  agentic_options: {\n    custom_prompt:\n      \"Extract text from the provided file and translate it from German to English.\",\n  },\n  expand: [\n    \"markdown_full\",\n    \"images_content_metadata\",\n    \"markdown_content_metadata\",\n  ],\n});\n",[1505],{"type":43,"tag":77,"props":1506,"children":1507},{"__ignoreMap":79},[1508,1555,1582,1609,1628,1645,1661,1683,1691,1699,1715,1753,1769,1804,1824,1831,1838,1854,1882,1951,1958,1974,1988,2010,2018,2036,2057,2077,2097,2110],{"type":43,"tag":128,"props":1509,"children":1510},{"class":130,"line":131},[1511,1515,1519,1523,1527,1531,1535,1539,1543,1547,1551],{"type":43,"tag":128,"props":1512,"children":1513},{"style":320},[1514],{"type":49,"value":323},{"type":43,"tag":128,"props":1516,"children":1517},{"style":265},[1518],{"type":49,"value":864},{"type":43,"tag":128,"props":1520,"children":1521},{"style":276},[1522],{"type":49,"value":333},{"type":43,"tag":128,"props":1524,"children":1525},{"style":259},[1526],{"type":49,"value":584},{"type":43,"tag":128,"props":1528,"children":1529},{"style":265},[1530],{"type":49,"value":704},{"type":43,"tag":128,"props":1532,"children":1533},{"style":276},[1534],{"type":49,"value":168},{"type":43,"tag":128,"props":1536,"children":1537},{"style":265},[1538],{"type":49,"value":885},{"type":43,"tag":128,"props":1540,"children":1541},{"style":276},[1542],{"type":49,"value":168},{"type":43,"tag":128,"props":1544,"children":1545},{"style":341},[1546],{"type":49,"value":774},{"type":43,"tag":128,"props":1548,"children":1549},{"style":265},[1550],{"type":49,"value":349},{"type":43,"tag":128,"props":1552,"children":1553},{"style":276},[1554],{"type":49,"value":354},{"type":43,"tag":128,"props":1556,"children":1557},{"class":130,"line":296},[1558,1562,1566,1570,1574,1578],{"type":43,"tag":128,"props":1559,"children":1560},{"style":361},[1561],{"type":49,"value":910},{"type":43,"tag":128,"props":1563,"children":1564},{"style":276},[1565],{"type":49,"value":369},{"type":43,"tag":128,"props":1567,"children":1568},{"style":276},[1569],{"type":49,"value":279},{"type":43,"tag":128,"props":1571,"children":1572},{"style":141},[1573],{"type":49,"value":923},{"type":43,"tag":128,"props":1575,"children":1576},{"style":276},[1577],{"type":49,"value":288},{"type":43,"tag":128,"props":1579,"children":1580},{"style":276},[1581],{"type":49,"value":752},{"type":43,"tag":128,"props":1583,"children":1584},{"class":130,"line":306},[1585,1589,1593,1597,1601,1605],{"type":43,"tag":128,"props":1586,"children":1587},{"style":361},[1588],{"type":49,"value":940},{"type":43,"tag":128,"props":1590,"children":1591},{"style":276},[1592],{"type":49,"value":369},{"type":43,"tag":128,"props":1594,"children":1595},{"style":276},[1596],{"type":49,"value":279},{"type":43,"tag":128,"props":1598,"children":1599},{"style":141},[1600],{"type":49,"value":953},{"type":43,"tag":128,"props":1602,"children":1603},{"style":276},[1604],{"type":49,"value":288},{"type":43,"tag":128,"props":1606,"children":1607},{"style":276},[1608],{"type":49,"value":752},{"type":43,"tag":128,"props":1610,"children":1611},{"class":130,"line":316},[1612,1616,1620,1624],{"type":43,"tag":128,"props":1613,"children":1614},{"style":361},[1615],{"type":49,"value":970},{"type":43,"tag":128,"props":1617,"children":1618},{"style":276},[1619],{"type":49,"value":369},{"type":43,"tag":128,"props":1621,"children":1622},{"style":265},[1623],{"type":49,"value":979},{"type":43,"tag":128,"props":1625,"children":1626},{"style":276},[1627],{"type":49,"value":752},{"type":43,"tag":128,"props":1629,"children":1630},{"class":130,"line":357},[1631,1636,1640],{"type":43,"tag":128,"props":1632,"children":1633},{"style":361},[1634],{"type":49,"value":1635},"  input_options",{"type":43,"tag":128,"props":1637,"children":1638},{"style":276},[1639],{"type":49,"value":369},{"type":43,"tag":128,"props":1641,"children":1642},{"style":276},[1643],{"type":49,"value":1644}," {\n",{"type":43,"tag":128,"props":1646,"children":1647},{"class":130,"line":414},[1648,1653,1657],{"type":43,"tag":128,"props":1649,"children":1650},{"style":361},[1651],{"type":49,"value":1652},"    presentation",{"type":43,"tag":128,"props":1654,"children":1655},{"style":276},[1656],{"type":49,"value":369},{"type":43,"tag":128,"props":1658,"children":1659},{"style":276},[1660],{"type":49,"value":1644},{"type":43,"tag":128,"props":1662,"children":1663},{"class":130,"line":628},[1664,1669,1673,1679],{"type":43,"tag":128,"props":1665,"children":1666},{"style":361},[1667],{"type":49,"value":1668},"      skip_embedded_data",{"type":43,"tag":128,"props":1670,"children":1671},{"style":276},[1672],{"type":49,"value":369},{"type":43,"tag":128,"props":1674,"children":1676},{"style":1675},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1677],{"type":49,"value":1678}," false",{"type":43,"tag":128,"props":1680,"children":1681},{"style":276},[1682],{"type":49,"value":752},{"type":43,"tag":128,"props":1684,"children":1685},{"class":130,"line":672},[1686],{"type":43,"tag":128,"props":1687,"children":1688},{"style":276},[1689],{"type":49,"value":1690},"    },\n",{"type":43,"tag":128,"props":1692,"children":1693},{"class":130,"line":681},[1694],{"type":43,"tag":128,"props":1695,"children":1696},{"style":276},[1697],{"type":49,"value":1698},"  },\n",{"type":43,"tag":128,"props":1700,"children":1701},{"class":130,"line":27},[1702,1707,1711],{"type":43,"tag":128,"props":1703,"children":1704},{"style":361},[1705],{"type":49,"value":1706},"  output_options",{"type":43,"tag":128,"props":1708,"children":1709},{"style":276},[1710],{"type":49,"value":369},{"type":43,"tag":128,"props":1712,"children":1713},{"style":276},[1714],{"type":49,"value":1644},{"type":43,"tag":128,"props":1716,"children":1717},{"class":130,"line":755},[1718,1723,1727,1732,1736,1741,1745,1749],{"type":43,"tag":128,"props":1719,"children":1720},{"style":361},[1721],{"type":49,"value":1722},"    images_to_save",{"type":43,"tag":128,"props":1724,"children":1725},{"style":276},[1726],{"type":49,"value":369},{"type":43,"tag":128,"props":1728,"children":1729},{"style":265},[1730],{"type":49,"value":1731}," [",{"type":43,"tag":128,"props":1733,"children":1734},{"style":276},[1735],{"type":49,"value":288},{"type":43,"tag":128,"props":1737,"children":1738},{"style":141},[1739],{"type":49,"value":1740},"screenshot",{"type":43,"tag":128,"props":1742,"children":1743},{"style":276},[1744],{"type":49,"value":288},{"type":43,"tag":128,"props":1746,"children":1747},{"style":265},[1748],{"type":49,"value":401},{"type":43,"tag":128,"props":1750,"children":1751},{"style":276},[1752],{"type":49,"value":752},{"type":43,"tag":128,"props":1754,"children":1755},{"class":130,"line":785},[1756,1761,1765],{"type":43,"tag":128,"props":1757,"children":1758},{"style":361},[1759],{"type":49,"value":1760},"    markdown",{"type":43,"tag":128,"props":1762,"children":1763},{"style":276},[1764],{"type":49,"value":369},{"type":43,"tag":128,"props":1766,"children":1767},{"style":276},[1768],{"type":49,"value":1644},{"type":43,"tag":128,"props":1770,"children":1771},{"class":130,"line":801},[1772,1777,1781,1785,1790,1794,1799],{"type":43,"tag":128,"props":1773,"children":1774},{"style":361},[1775],{"type":49,"value":1776},"      tables",{"type":43,"tag":128,"props":1778,"children":1779},{"style":276},[1780],{"type":49,"value":369},{"type":43,"tag":128,"props":1782,"children":1783},{"style":276},[1784],{"type":49,"value":466},{"type":43,"tag":128,"props":1786,"children":1787},{"style":361},[1788],{"type":49,"value":1789}," output_tables_as_markdown",{"type":43,"tag":128,"props":1791,"children":1792},{"style":276},[1793],{"type":49,"value":369},{"type":43,"tag":128,"props":1795,"children":1796},{"style":1675},[1797],{"type":49,"value":1798}," true",{"type":43,"tag":128,"props":1800,"children":1801},{"style":276},[1802],{"type":49,"value":1803}," },\n",{"type":43,"tag":128,"props":1805,"children":1806},{"class":130,"line":810},[1807,1812,1816,1820],{"type":43,"tag":128,"props":1808,"children":1809},{"style":361},[1810],{"type":49,"value":1811},"      annotate_links",{"type":43,"tag":128,"props":1813,"children":1814},{"style":276},[1815],{"type":49,"value":369},{"type":43,"tag":128,"props":1817,"children":1818},{"style":1675},[1819],{"type":49,"value":1798},{"type":43,"tag":128,"props":1821,"children":1822},{"style":276},[1823],{"type":49,"value":752},{"type":43,"tag":128,"props":1825,"children":1826},{"class":130,"line":845},[1827],{"type":43,"tag":128,"props":1828,"children":1829},{"style":276},[1830],{"type":49,"value":1690},{"type":43,"tag":128,"props":1832,"children":1833},{"class":130,"line":854},[1834],{"type":43,"tag":128,"props":1835,"children":1836},{"style":276},[1837],{"type":49,"value":1698},{"type":43,"tag":128,"props":1839,"children":1840},{"class":130,"line":904},[1841,1846,1850],{"type":43,"tag":128,"props":1842,"children":1843},{"style":361},[1844],{"type":49,"value":1845},"  processing_options",{"type":43,"tag":128,"props":1847,"children":1848},{"style":276},[1849],{"type":49,"value":369},{"type":43,"tag":128,"props":1851,"children":1852},{"style":276},[1853],{"type":49,"value":1644},{"type":43,"tag":128,"props":1855,"children":1856},{"class":130,"line":934},[1857,1862,1866,1870,1874,1878],{"type":43,"tag":128,"props":1858,"children":1859},{"style":361},[1860],{"type":49,"value":1861},"    specialized_chart_parsing",{"type":43,"tag":128,"props":1863,"children":1864},{"style":276},[1865],{"type":49,"value":369},{"type":43,"tag":128,"props":1867,"children":1868},{"style":276},[1869],{"type":49,"value":279},{"type":43,"tag":128,"props":1871,"children":1872},{"style":141},[1873],{"type":49,"value":923},{"type":43,"tag":128,"props":1875,"children":1876},{"style":276},[1877],{"type":49,"value":288},{"type":43,"tag":128,"props":1879,"children":1880},{"style":276},[1881],{"type":49,"value":752},{"type":43,"tag":128,"props":1883,"children":1884},{"class":130,"line":964},[1885,1890,1894,1898,1903,1907,1911,1915,1920,1924,1928,1932,1937,1941,1946],{"type":43,"tag":128,"props":1886,"children":1887},{"style":361},[1888],{"type":49,"value":1889},"    ocr_parameters",{"type":43,"tag":128,"props":1891,"children":1892},{"style":276},[1893],{"type":49,"value":369},{"type":43,"tag":128,"props":1895,"children":1896},{"style":276},[1897],{"type":49,"value":466},{"type":43,"tag":128,"props":1899,"children":1900},{"style":361},[1901],{"type":49,"value":1902}," languages",{"type":43,"tag":128,"props":1904,"children":1905},{"style":276},[1906],{"type":49,"value":369},{"type":43,"tag":128,"props":1908,"children":1909},{"style":265},[1910],{"type":49,"value":1731},{"type":43,"tag":128,"props":1912,"children":1913},{"style":276},[1914],{"type":49,"value":288},{"type":43,"tag":128,"props":1916,"children":1917},{"style":141},[1918],{"type":49,"value":1919},"de",{"type":43,"tag":128,"props":1921,"children":1922},{"style":276},[1923],{"type":49,"value":288},{"type":43,"tag":128,"props":1925,"children":1926},{"style":276},[1927],{"type":49,"value":406},{"type":43,"tag":128,"props":1929,"children":1930},{"style":276},[1931],{"type":49,"value":279},{"type":43,"tag":128,"props":1933,"children":1934},{"style":141},[1935],{"type":49,"value":1936},"en",{"type":43,"tag":128,"props":1938,"children":1939},{"style":276},[1940],{"type":49,"value":288},{"type":43,"tag":128,"props":1942,"children":1943},{"style":265},[1944],{"type":49,"value":1945},"] ",{"type":43,"tag":128,"props":1947,"children":1948},{"style":276},[1949],{"type":49,"value":1950},"},\n",{"type":43,"tag":128,"props":1952,"children":1953},{"class":130,"line":986},[1954],{"type":43,"tag":128,"props":1955,"children":1956},{"style":276},[1957],{"type":49,"value":1698},{"type":43,"tag":128,"props":1959,"children":1960},{"class":130,"line":995},[1961,1966,1970],{"type":43,"tag":128,"props":1962,"children":1963},{"style":361},[1964],{"type":49,"value":1965},"  agentic_options",{"type":43,"tag":128,"props":1967,"children":1968},{"style":276},[1969],{"type":49,"value":369},{"type":43,"tag":128,"props":1971,"children":1972},{"style":276},[1973],{"type":49,"value":1644},{"type":43,"tag":128,"props":1975,"children":1977},{"class":130,"line":1976},22,[1978,1983],{"type":43,"tag":128,"props":1979,"children":1980},{"style":361},[1981],{"type":49,"value":1982},"    custom_prompt",{"type":43,"tag":128,"props":1984,"children":1985},{"style":276},[1986],{"type":49,"value":1987},":\n",{"type":43,"tag":128,"props":1989,"children":1991},{"class":130,"line":1990},23,[1992,1997,2002,2006],{"type":43,"tag":128,"props":1993,"children":1994},{"style":276},[1995],{"type":49,"value":1996},"      \"",{"type":43,"tag":128,"props":1998,"children":1999},{"style":141},[2000],{"type":49,"value":2001},"Extract text from the provided file and translate it from German to English.",{"type":43,"tag":128,"props":2003,"children":2004},{"style":276},[2005],{"type":49,"value":288},{"type":43,"tag":128,"props":2007,"children":2008},{"style":276},[2009],{"type":49,"value":752},{"type":43,"tag":128,"props":2011,"children":2013},{"class":130,"line":2012},24,[2014],{"type":43,"tag":128,"props":2015,"children":2016},{"style":276},[2017],{"type":49,"value":1698},{"type":43,"tag":128,"props":2019,"children":2021},{"class":130,"line":2020},25,[2022,2027,2031],{"type":43,"tag":128,"props":2023,"children":2024},{"style":361},[2025],{"type":49,"value":2026},"  expand",{"type":43,"tag":128,"props":2028,"children":2029},{"style":276},[2030],{"type":49,"value":369},{"type":43,"tag":128,"props":2032,"children":2033},{"style":265},[2034],{"type":49,"value":2035}," [\n",{"type":43,"tag":128,"props":2037,"children":2039},{"class":130,"line":2038},26,[2040,2045,2049,2053],{"type":43,"tag":128,"props":2041,"children":2042},{"style":276},[2043],{"type":49,"value":2044},"    \"",{"type":43,"tag":128,"props":2046,"children":2047},{"style":141},[2048],{"type":49,"value":1209},{"type":43,"tag":128,"props":2050,"children":2051},{"style":276},[2052],{"type":49,"value":288},{"type":43,"tag":128,"props":2054,"children":2055},{"style":276},[2056],{"type":49,"value":752},{"type":43,"tag":128,"props":2058,"children":2060},{"class":130,"line":2059},27,[2061,2065,2069,2073],{"type":43,"tag":128,"props":2062,"children":2063},{"style":276},[2064],{"type":49,"value":2044},{"type":43,"tag":128,"props":2066,"children":2067},{"style":141},[2068],{"type":49,"value":1306},{"type":43,"tag":128,"props":2070,"children":2071},{"style":276},[2072],{"type":49,"value":288},{"type":43,"tag":128,"props":2074,"children":2075},{"style":276},[2076],{"type":49,"value":752},{"type":43,"tag":128,"props":2078,"children":2080},{"class":130,"line":2079},28,[2081,2085,2089,2093],{"type":43,"tag":128,"props":2082,"children":2083},{"style":276},[2084],{"type":49,"value":2044},{"type":43,"tag":128,"props":2086,"children":2087},{"style":141},[2088],{"type":49,"value":1272},{"type":43,"tag":128,"props":2090,"children":2091},{"style":276},[2092],{"type":49,"value":288},{"type":43,"tag":128,"props":2094,"children":2095},{"style":276},[2096],{"type":49,"value":752},{"type":43,"tag":128,"props":2098,"children":2100},{"class":130,"line":2099},29,[2101,2106],{"type":43,"tag":128,"props":2102,"children":2103},{"style":265},[2104],{"type":49,"value":2105},"  ]",{"type":43,"tag":128,"props":2107,"children":2108},{"style":276},[2109],{"type":49,"value":752},{"type":43,"tag":128,"props":2111,"children":2113},{"class":130,"line":2112},30,[2114,2118,2122],{"type":43,"tag":128,"props":2115,"children":2116},{"style":276},[2117],{"type":49,"value":420},{"type":43,"tag":128,"props":2119,"children":2120},{"style":265},[2121],{"type":49,"value":425},{"type":43,"tag":128,"props":2123,"children":2124},{"style":276},[2125],{"type":49,"value":293},{"type":43,"tag":52,"props":2127,"children":2128},{},[2129,2130,2136],{"type":49,"value":237},{"type":43,"tag":77,"props":2131,"children":2133},{"className":2132},[],[2134],{"type":49,"value":2135},"agentic_options.custom_prompt",{"type":49,"value":2137}," whenever the user wants to guide extraction (translation, summarization, structured extraction, etc.).",{"type":43,"tag":219,"props":2139,"children":2141},{"id":2140},"_7-downloading-images-requires-httpx-and-auth",[2142,2144,2150],{"type":49,"value":2143},"7. Downloading Images Requires ",{"type":43,"tag":77,"props":2145,"children":2147},{"className":2146},[],[2148],{"type":49,"value":2149},"httpx",{"type":49,"value":2151}," and Auth",{"type":43,"tag":52,"props":2153,"children":2154},{},[2155,2157,2162,2164,2169],{"type":49,"value":2156},"When ",{"type":43,"tag":77,"props":2158,"children":2160},{"className":2159},[],[2161],{"type":49,"value":1306},{"type":49,"value":2163}," is in ",{"type":43,"tag":77,"props":2165,"children":2167},{"className":2166},[],[2168],{"type":49,"value":1138},{"type":49,"value":2170},", download images via presigned URLs with Bearer auth:",{"type":43,"tag":70,"props":2172,"children":2174},{"className":247,"code":2173,"language":249,"meta":79,"style":79},"if (result.images_content_metadata) {\n  for (const image of result.images_content_metadata.images) {\n    if (image.presigned_url) {\n      const response = await fetch(image.presigned_url, {\n        headers: {\n          Authorization: `Bearer ${process.env[\"LLAMA_CLOUD_API_KEY\"]}`,\n        },\n      });\n      if (response.ok) {\n        const content = await response.bytes();\n        await writeFile(image.filename, content);\n      }\n    }\n  }\n}\n",[2175],{"type":43,"tag":77,"props":2176,"children":2177},{"__ignoreMap":79},[2178,2204,2261,2295,2346,2362,2427,2435,2451,2485,2528,2573,2581,2589,2597],{"type":43,"tag":128,"props":2179,"children":2180},{"class":130,"line":131},[2181,2186,2191,2195,2200],{"type":43,"tag":128,"props":2182,"children":2183},{"style":259},[2184],{"type":49,"value":2185},"if",{"type":43,"tag":128,"props":2187,"children":2188},{"style":265},[2189],{"type":49,"value":2190}," (result",{"type":43,"tag":128,"props":2192,"children":2193},{"style":276},[2194],{"type":49,"value":168},{"type":43,"tag":128,"props":2196,"children":2197},{"style":265},[2198],{"type":49,"value":2199},"images_content_metadata) ",{"type":43,"tag":128,"props":2201,"children":2202},{"style":276},[2203],{"type":49,"value":354},{"type":43,"tag":128,"props":2205,"children":2206},{"class":130,"line":296},[2207,2212,2217,2221,2226,2231,2235,2239,2243,2247,2252,2257],{"type":43,"tag":128,"props":2208,"children":2209},{"style":259},[2210],{"type":49,"value":2211},"  for",{"type":43,"tag":128,"props":2213,"children":2214},{"style":361},[2215],{"type":49,"value":2216}," (",{"type":43,"tag":128,"props":2218,"children":2219},{"style":320},[2220],{"type":49,"value":323},{"type":43,"tag":128,"props":2222,"children":2223},{"style":265},[2224],{"type":49,"value":2225}," image",{"type":43,"tag":128,"props":2227,"children":2228},{"style":276},[2229],{"type":49,"value":2230}," of",{"type":43,"tag":128,"props":2232,"children":2233},{"style":265},[2234],{"type":49,"value":1425},{"type":43,"tag":128,"props":2236,"children":2237},{"style":276},[2238],{"type":49,"value":168},{"type":43,"tag":128,"props":2240,"children":2241},{"style":265},[2242],{"type":49,"value":1306},{"type":43,"tag":128,"props":2244,"children":2245},{"style":276},[2246],{"type":49,"value":168},{"type":43,"tag":128,"props":2248,"children":2249},{"style":265},[2250],{"type":49,"value":2251},"images",{"type":43,"tag":128,"props":2253,"children":2254},{"style":361},[2255],{"type":49,"value":2256},") ",{"type":43,"tag":128,"props":2258,"children":2259},{"style":276},[2260],{"type":49,"value":354},{"type":43,"tag":128,"props":2262,"children":2263},{"class":130,"line":306},[2264,2269,2273,2278,2282,2287,2291],{"type":43,"tag":128,"props":2265,"children":2266},{"style":259},[2267],{"type":49,"value":2268},"    if",{"type":43,"tag":128,"props":2270,"children":2271},{"style":361},[2272],{"type":49,"value":2216},{"type":43,"tag":128,"props":2274,"children":2275},{"style":265},[2276],{"type":49,"value":2277},"image",{"type":43,"tag":128,"props":2279,"children":2280},{"style":276},[2281],{"type":49,"value":168},{"type":43,"tag":128,"props":2283,"children":2284},{"style":265},[2285],{"type":49,"value":2286},"presigned_url",{"type":43,"tag":128,"props":2288,"children":2289},{"style":361},[2290],{"type":49,"value":2256},{"type":43,"tag":128,"props":2292,"children":2293},{"style":276},[2294],{"type":49,"value":354},{"type":43,"tag":128,"props":2296,"children":2297},{"class":130,"line":316},[2298,2303,2308,2313,2317,2322,2326,2330,2334,2338,2342],{"type":43,"tag":128,"props":2299,"children":2300},{"style":320},[2301],{"type":49,"value":2302},"      const",{"type":43,"tag":128,"props":2304,"children":2305},{"style":265},[2306],{"type":49,"value":2307}," response",{"type":43,"tag":128,"props":2309,"children":2310},{"style":276},[2311],{"type":49,"value":2312}," =",{"type":43,"tag":128,"props":2314,"children":2315},{"style":259},[2316],{"type":49,"value":584},{"type":43,"tag":128,"props":2318,"children":2319},{"style":341},[2320],{"type":49,"value":2321}," fetch",{"type":43,"tag":128,"props":2323,"children":2324},{"style":361},[2325],{"type":49,"value":349},{"type":43,"tag":128,"props":2327,"children":2328},{"style":265},[2329],{"type":49,"value":2277},{"type":43,"tag":128,"props":2331,"children":2332},{"style":276},[2333],{"type":49,"value":168},{"type":43,"tag":128,"props":2335,"children":2336},{"style":265},[2337],{"type":49,"value":2286},{"type":43,"tag":128,"props":2339,"children":2340},{"style":276},[2341],{"type":49,"value":406},{"type":43,"tag":128,"props":2343,"children":2344},{"style":276},[2345],{"type":49,"value":1644},{"type":43,"tag":128,"props":2347,"children":2348},{"class":130,"line":357},[2349,2354,2358],{"type":43,"tag":128,"props":2350,"children":2351},{"style":361},[2352],{"type":49,"value":2353},"        headers",{"type":43,"tag":128,"props":2355,"children":2356},{"style":276},[2357],{"type":49,"value":369},{"type":43,"tag":128,"props":2359,"children":2360},{"style":276},[2361],{"type":49,"value":1644},{"type":43,"tag":128,"props":2363,"children":2364},{"class":130,"line":414},[2365,2370,2374,2379,2384,2389,2394,2398,2402,2406,2410,2414,2418,2423],{"type":43,"tag":128,"props":2366,"children":2367},{"style":361},[2368],{"type":49,"value":2369},"          Authorization",{"type":43,"tag":128,"props":2371,"children":2372},{"style":276},[2373],{"type":49,"value":369},{"type":43,"tag":128,"props":2375,"children":2376},{"style":276},[2377],{"type":49,"value":2378}," `",{"type":43,"tag":128,"props":2380,"children":2381},{"style":141},[2382],{"type":49,"value":2383},"Bearer ",{"type":43,"tag":128,"props":2385,"children":2386},{"style":276},[2387],{"type":49,"value":2388},"${",{"type":43,"tag":128,"props":2390,"children":2391},{"style":265},[2392],{"type":49,"value":2393},"process",{"type":43,"tag":128,"props":2395,"children":2396},{"style":276},[2397],{"type":49,"value":168},{"type":43,"tag":128,"props":2399,"children":2400},{"style":265},[2401],{"type":49,"value":383},{"type":43,"tag":128,"props":2403,"children":2404},{"style":276},[2405],{"type":49,"value":288},{"type":43,"tag":128,"props":2407,"children":2408},{"style":141},[2409],{"type":49,"value":392},{"type":43,"tag":128,"props":2411,"children":2412},{"style":276},[2413],{"type":49,"value":288},{"type":43,"tag":128,"props":2415,"children":2416},{"style":265},[2417],{"type":49,"value":401},{"type":43,"tag":128,"props":2419,"children":2420},{"style":276},[2421],{"type":49,"value":2422},"}`",{"type":43,"tag":128,"props":2424,"children":2425},{"style":276},[2426],{"type":49,"value":752},{"type":43,"tag":128,"props":2428,"children":2429},{"class":130,"line":628},[2430],{"type":43,"tag":128,"props":2431,"children":2432},{"style":276},[2433],{"type":49,"value":2434},"        },\n",{"type":43,"tag":128,"props":2436,"children":2437},{"class":130,"line":672},[2438,2443,2447],{"type":43,"tag":128,"props":2439,"children":2440},{"style":276},[2441],{"type":49,"value":2442},"      }",{"type":43,"tag":128,"props":2444,"children":2445},{"style":361},[2446],{"type":49,"value":425},{"type":43,"tag":128,"props":2448,"children":2449},{"style":276},[2450],{"type":49,"value":293},{"type":43,"tag":128,"props":2452,"children":2453},{"class":130,"line":681},[2454,2459,2463,2468,2472,2477,2481],{"type":43,"tag":128,"props":2455,"children":2456},{"style":259},[2457],{"type":49,"value":2458},"      if",{"type":43,"tag":128,"props":2460,"children":2461},{"style":361},[2462],{"type":49,"value":2216},{"type":43,"tag":128,"props":2464,"children":2465},{"style":265},[2466],{"type":49,"value":2467},"response",{"type":43,"tag":128,"props":2469,"children":2470},{"style":276},[2471],{"type":49,"value":168},{"type":43,"tag":128,"props":2473,"children":2474},{"style":265},[2475],{"type":49,"value":2476},"ok",{"type":43,"tag":128,"props":2478,"children":2479},{"style":361},[2480],{"type":49,"value":2256},{"type":43,"tag":128,"props":2482,"children":2483},{"style":276},[2484],{"type":49,"value":354},{"type":43,"tag":128,"props":2486,"children":2487},{"class":130,"line":27},[2488,2493,2498,2502,2506,2510,2514,2519,2524],{"type":43,"tag":128,"props":2489,"children":2490},{"style":320},[2491],{"type":49,"value":2492},"        const",{"type":43,"tag":128,"props":2494,"children":2495},{"style":265},[2496],{"type":49,"value":2497}," content",{"type":43,"tag":128,"props":2499,"children":2500},{"style":276},[2501],{"type":49,"value":2312},{"type":43,"tag":128,"props":2503,"children":2504},{"style":259},[2505],{"type":49,"value":584},{"type":43,"tag":128,"props":2507,"children":2508},{"style":265},[2509],{"type":49,"value":2307},{"type":43,"tag":128,"props":2511,"children":2512},{"style":276},[2513],{"type":49,"value":168},{"type":43,"tag":128,"props":2515,"children":2516},{"style":341},[2517],{"type":49,"value":2518},"bytes",{"type":43,"tag":128,"props":2520,"children":2521},{"style":361},[2522],{"type":49,"value":2523},"()",{"type":43,"tag":128,"props":2525,"children":2526},{"style":276},[2527],{"type":49,"value":293},{"type":43,"tag":128,"props":2529,"children":2530},{"class":130,"line":755},[2531,2536,2540,2544,2548,2552,2557,2561,2565,2569],{"type":43,"tag":128,"props":2532,"children":2533},{"style":259},[2534],{"type":49,"value":2535},"        await",{"type":43,"tag":128,"props":2537,"children":2538},{"style":341},[2539],{"type":49,"value":480},{"type":43,"tag":128,"props":2541,"children":2542},{"style":361},[2543],{"type":49,"value":349},{"type":43,"tag":128,"props":2545,"children":2546},{"style":265},[2547],{"type":49,"value":2277},{"type":43,"tag":128,"props":2549,"children":2550},{"style":276},[2551],{"type":49,"value":168},{"type":43,"tag":128,"props":2553,"children":2554},{"style":265},[2555],{"type":49,"value":2556},"filename",{"type":43,"tag":128,"props":2558,"children":2559},{"style":276},[2560],{"type":49,"value":406},{"type":43,"tag":128,"props":2562,"children":2563},{"style":265},[2564],{"type":49,"value":2497},{"type":43,"tag":128,"props":2566,"children":2567},{"style":361},[2568],{"type":49,"value":425},{"type":43,"tag":128,"props":2570,"children":2571},{"style":276},[2572],{"type":49,"value":293},{"type":43,"tag":128,"props":2574,"children":2575},{"class":130,"line":785},[2576],{"type":43,"tag":128,"props":2577,"children":2578},{"style":276},[2579],{"type":49,"value":2580},"      }\n",{"type":43,"tag":128,"props":2582,"children":2583},{"class":130,"line":801},[2584],{"type":43,"tag":128,"props":2585,"children":2586},{"style":276},[2587],{"type":49,"value":2588},"    }\n",{"type":43,"tag":128,"props":2590,"children":2591},{"class":130,"line":810},[2592],{"type":43,"tag":128,"props":2593,"children":2594},{"style":276},[2595],{"type":49,"value":2596},"  }\n",{"type":43,"tag":128,"props":2598,"children":2599},{"class":130,"line":845},[2600],{"type":43,"tag":128,"props":2601,"children":2602},{"style":276},[2603],{"type":49,"value":2604},"}\n",{"type":43,"tag":219,"props":2606,"children":2608},{"id":2607},"_8-use-the-node-shebang",[2609],{"type":49,"value":2610},"8. Use the Node shebang",{"type":43,"tag":52,"props":2612,"children":2613},{},[2614],{"type":49,"value":2615},"Every generated script should include the node shebang:",{"type":43,"tag":70,"props":2617,"children":2619},{"className":247,"code":2618,"language":249,"meta":79,"style":79},"#!\u002Fusr\u002Fbin\u002Fenv node\n",[2620],{"type":43,"tag":77,"props":2621,"children":2622},{"__ignoreMap":79},[2623],{"type":43,"tag":128,"props":2624,"children":2625},{"class":130,"line":131},[2626],{"type":43,"tag":128,"props":2627,"children":2628},{"style":310},[2629],{"type":49,"value":2618},{"type":43,"tag":88,"props":2631,"children":2632},{},[],{"type":43,"tag":58,"props":2634,"children":2636},{"id":2635},"step-2-execute-the-typescript-script",[2637],{"type":49,"value":2638},"Step 2 — Execute the Typescript Script",{"type":43,"tag":52,"props":2640,"children":2641},{},[2642],{"type":49,"value":2643},"Once the typescript script has been produced, you should:",{"type":43,"tag":2645,"props":2646,"children":2647},"ol",{},[2648,2653,2658],{"type":43,"tag":179,"props":2649,"children":2650},{},[2651],{"type":49,"value":2652},"Present the script to the user and ask for permissions to run it (depending on the current permissions settings)",{"type":43,"tag":179,"props":2654,"children":2655},{},[2656],{"type":49,"value":2657},"Once you obtained permission to run, execute the script",{"type":43,"tag":179,"props":2659,"children":2660},{},[2661],{"type":49,"value":2662},"Explore the results based on the user's requests",{"type":43,"tag":2664,"props":2665,"children":2666},"blockquote",{},[2667],{"type":43,"tag":52,"props":2668,"children":2669},{},[2670,2672,2678],{"type":49,"value":2671},"In order to run typescript scripts, it is highly recommended to use: ",{"type":43,"tag":77,"props":2673,"children":2675},{"className":2674},[],[2676],{"type":49,"value":2677},"npx tsx script.ts",{"type":49,"value":168},{"type":43,"tag":2680,"props":2681,"children":2682},"style",{},[2683],{"type":49,"value":2684},"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);}",{"items":2686,"total":306},[2687,2703,2719],{"slug":2688,"name":2688,"fn":2689,"description":2690,"org":2691,"tags":2692,"stars":23,"repoUrl":24,"updatedAt":2702},"liteparse","parse and extract data from documents","Use this skill whenever a task involves a document file (PDF, DOCX, PPTX, XLSX, or image) and you need to read it or pull text, tables, or specific values out of it — to answer a question about its contents, look up a figure, or extract data. Provides fast, local, model-free extraction via the `lit` CLI with disciplined, low-cost search patterns.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2693,2694,2695,2698,2701],{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":2696,"slug":2697,"type":16},"DOCX","docx",{"name":2699,"slug":2700,"type":16},"Excel","excel",{"name":14,"slug":15,"type":16},"2026-07-13T06:18:16.430649",{"slug":2704,"name":2704,"fn":2705,"description":2706,"org":2707,"tags":2708,"stars":23,"repoUrl":24,"updatedAt":2718},"llamacloud-index","search LlamaCloud Index knowledge bases","Use this skill whenever a question should be answered from documents stored in a LlamaCloud Index v2 knowledge base — retrieving passages, locating indexed files, or searching indexed content through the LlamaParse Platform REST API with curl. Teaches agentic retrieval — navigating an index like a file system instead of one-shot RAG.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2709,2712,2715],{"name":2710,"slug":2711,"type":16},"Knowledge Management","knowledge-management",{"name":2713,"slug":2714,"type":16},"LLM","llm",{"name":2716,"slug":2717,"type":16},"Search","search","2026-07-13T06:18:26.830297",{"slug":4,"name":4,"fn":5,"description":6,"org":2720,"tags":2721,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2722,2723,2724],{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},{"items":2726,"total":306},[2727,2735,2741],{"slug":2688,"name":2688,"fn":2689,"description":2690,"org":2728,"tags":2729,"stars":23,"repoUrl":24,"updatedAt":2702},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2730,2731,2732,2733,2734],{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":2696,"slug":2697,"type":16},{"name":2699,"slug":2700,"type":16},{"name":14,"slug":15,"type":16},{"slug":2704,"name":2704,"fn":2705,"description":2706,"org":2736,"tags":2737,"stars":23,"repoUrl":24,"updatedAt":2718},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2738,2739,2740],{"name":2710,"slug":2711,"type":16},{"name":2713,"slug":2714,"type":16},{"name":2716,"slug":2717,"type":16},{"slug":4,"name":4,"fn":5,"description":6,"org":2742,"tags":2743,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2744,2745,2746],{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16}]