Copy durable text, images, Office documents, PDFs, and email files into an agent’s sandbox, and show images to models that accept image input.
OAO accepts files on both the initial session request and every later session
turn. A file is submitted inline as canonical base64, uploaded byte-for-byte to
the project’s default S3-compatible storage provider, integrity-bound to the
run by its SHA-256 digest, and copied into the thread’s sandbox before the model
runs. When the agent’s model accepts image input, image files are also attached
to the model message as resized copies; see Images. OAO’s own
PostgreSQL tables store only the run manifest and object-storage binding, never
attachment bytes or extracted text.The current file input supports:
Files declared as text/*, JSON, JSON-LD, NDJSON, XML, YAML, JavaScript,
and TypeScript.
PNG, JPEG, WebP, and GIF images.
PDF and RTF documents.
Microsoft Word .doc, .dot, .docx, .docm, .dotx, and .dotm.
Microsoft Excel .xls, .xlt, .xla, .xlsx, .xlsm, .xlsb,
.xlam, .xltx, and .xltm.
Microsoft PowerPoint .ppt, .pot, .pps, .pptx, .pptm, .ppsx,
.ppsm, .potx, and .potm.
Zipped and flat OpenDocument text, spreadsheet, presentation, drawing,
template, and formula variants: .odt, .ott, .fodt, .ods, .ots,
.fods, .odp, .otp, .fodp, .odg, .otg, .fodg, and .odf.
Apple iWork .pages, .numbers, and .key documents.
RFC 822 .eml and Outlook .msg email files.
Up to 8 files per turn, 10 MiB per file, and 20 MiB combined.
OAO does not extract, OCR, summarize, or otherwise preprocess document
contents, and the sandbox always receives the original bytes. The only derived
content is the resized image copy sent to a model that accepts images. A
malformed, encrypted, password-protected, or text-free document is still
admitted as raw bytes; the agent’s sandbox tools decide how to inspect it. Standalone archives, audio, video, executables, Microsoft
Access/Publisher/OneNote/Visio/Project files, and other arbitrary binaries
remain unsupported by the upload contract.The selected agent version must enable a sandbox. Text inputs require either
filesystem_read or shell; binary inputs require shell. Choose a Daytona
snapshot with the software needed for the formats the agent will receive. New
sandbox-enabled agent versions cannot be published without selecting an active
snapshot returned by Daytona. OAO does not substitute or build an image.The project must also have a default S3-compatible storage
provider. OAO rejects a file submission before
queueing the run when object storage or its credential-encryption configuration
is unavailable. Message-only runs do not require object storage.
dataBase64 is standard padded base64 (RFC 4648) on a single line, exactly as
Buffer.toString("base64") or btoa produces it. The API rejects line breaks,
spaces, missing or extra = padding, non-zero padding bits, and the URL-safe
-/_ alphabet with 400 bad_request.name is a plain filename, not a path, and must be unique within the message.
The API normalizes the media type, verifies that known document extensions and
declared types agree, computes the digest itself, and never accepts a
caller-supplied storage reference or checksum as proof of content. It does not
parse the bytes. application/octet-stream is accepted for a recognized
document extension and normalized from that extension.
Start a session with files
Encode files on a trusted server and send them with initialMessage:
import { readFile } from "node:fs/promises";import { OaoClient } from "@oao/sdk-js";const client = new OaoClient({ baseUrl: process.env.OAO_API_URL!, apiKey: process.env.OAO_API_KEY!,});const source = await readFile("src/index.ts");const created = await client.createSession( process.env.OAO_PROJECT_ID!, { agentId: process.env.OAO_AGENT_ID!, title: "Review the entry point", initialMessage: "Review the attached entry point for unsafe boundaries.", files: [ { name: "index.ts", contentType: "application/typescript", dataBase64: source.toString("base64"), }, ], }, { idempotencyKey: "entry-point-review-1" },);
initialMessage may be omitted when at least one file is present. OAO then
records a neutral Review the attached file(s). user message.
Continue a session with files
Use the same file contract after the latest run settles:
await client.submitRun( projectId, sessionId, { message: "Compare this revision with the file from the previous turn.", files: [ { name: "index-v2.ts", contentType: "application/typescript", dataBase64: revisedSource.toString("base64"), }, ], }, { idempotencyKey: "entry-point-review-2" },);
The same files field is accepted by
POST /projects/{projectId}/sessions/{sessionId}/runs and
POST /projects/{projectId}/runs/{runId}/resume. A turn may contain only files.
Inspect an Excel file with pandas
The runtime places every file under a deterministic per-run path. An agent with
the shell capability can use pandas directly:
import pandas as pdpath = ".oao/attachments/<run-id>/tasks.xlsx"workbook = pd.ExcelFile(path)print(workbook.sheet_names)print(pd.read_excel(path, sheet_name=workbook.sheet_names[0]).head())
The model receives the exact path, filename, content type, byte size, and
SHA-256. It does not receive a parsed preview, so reading the file produces a
normal visible read or bash tool call.
Images
PNG, JPEG, WebP, and GIF files are copied into the sandbox like every other
file. When the agent version’s model accepts image input, OAO also attaches each
image to the run’s message, so the model sees it in its first turn without
calling a tool.
Model support. OAO checks the image-input flag in the runtime metadata of
the model behind the agent’s preset, the same metadata the
model catalog uses. Models without verified image
input, including OpenRouter and xAI models outside the pinned catalogs, are
treated as text-only.
Resizing. An image that is upright, single-frame, sRGB, at most 2000 px
on its long side, and at most 3.5 MB is sent unchanged. Any other image is
rotated according to its EXIF orientation, reduced to its first frame,
converted to sRGB, downscaled so the long side is at most 2000 px, and
re-encoded as PNG. JPEG sources stay JPEG. An image that is still larger than
3.5 MB is re-encoded as JPEG and, if needed, shrunk further until it fits.
Per-message limit. The attached images of one message share a 12 MB
budget. An image past that budget, or one that cannot be decoded, is not
attached.
What the message says. The message still lists every file with its
sandbox path. Each image entry states whether it is attached, for example
image input: attached as image 1, converted to image/png at 2000x1250 px,
or why it is not. Attached images are numbered in attachment order.
Text-only models. The run is delivered as before: a text message with
the file paths. It adds a note that the images could not be shown, with the
reason for each image, and asks the model to inspect them with sandbox tools.
The sandbox and object storage keep the original image. The attached copies
become part of the thread’s conversation history in Flue’s canonical state, in
the same PostgreSQL database, because the model needs them again on later
turns. Deleting the project purges them with the rest of that state. OAO’s own
records (run manifests, product events, SSE, transcript messages, model
invocation records, and the sandbox tool log) never contain image bytes.The runtime loads the images before it sends the run to the model. If object
storage returns errors, or a download takes longer than 20 seconds, it retries
the download a few times. If storage is still unavailable, the run fails with run_file_storage_unavailable before
anything is sent; start the run again once storage is back. If an image is
missing, does not match its SHA-256, or its storage provider is no longer
configured, it is listed as not attached. The sandbox copy step then downloads
every file again and fails the run.
Read images and other binary files
The sandbox read tool detects a file’s type from its first bytes, not from
its name:
Images. PNG, JPEG, WebP, GIF, and TIFF files are returned as image content,
prepared with the same size rules as attached images, together with a line
that states the original format and size. The agent can therefore look at
images it creates or copies during a run, such as rendered PDF pages or
charts. A model without image input receives a placeholder instead of the
image.
Other binary files. PDFs, ZIP-based Office documents, archives, databases,
executables, and any other file with a NUL byte in its first 8,000 bytes
return a short message with the detected type and size that points to the
bash tool, instead of garbled text.
Text. Text files are returned as before, truncated to 2000 lines or 50 KB,
with offset and limit for longer files. UTF-16 files with a byte-order mark
are decoded, and a stray NUL character later in a text file is shown as
U+FFFD.
OAO does not render scanned or image-only PDF pages for the model. An agent
whose snapshot includes a renderer, such as pdftoppm from poppler-utils, can
render the pages itself and read the results:
In Sessions, select Create session and choose files under Files before
submitting. On an existing settled session, use Attach files under the
message composer. Both surfaces share the same attachment control: pick files
with Choose files or drag and drop them onto it, review the listed names
and sizes, and remove any file before sending. Selected files are read in the
browser and sent through the authenticated API request; the browser never
receives an S3 credential.The transcript shows the filename, normalized content type, and size next to
the user message. It never returns the stored base64 or raw bytes. If the
selected agent lacks the required sandbox capability, the API rejects the run
before queueing it.The session sidebar lists each uploaded attachment from the run’s durable
manifest. After a successful workspace backup it shows Uploaded + backed up
when the exact sandbox path is also present in the archive’s object-storage
manifest. This is an authoritative path comparison rather than an inference
from shell command text.Every Backed up file also has a download action. It calls the authenticated
session Files API, not Daytona and not a provider-specific public URL. The API
reads the latest verified workspace archive from the persistent storage
provider bound to that workspace.
Retrieve model-created files
For the complete list, download, authentication, and error contracts, see the
dedicated Files API reference.Ask the model to return the relative path of the file it created, for example
output/result.csv. After the run completes and its workspace backup succeeds,
the caller can use the known session ID:
import { writeFile } from "node:fs/promises";const files = await client.listSessionFiles(projectId, sessionId);const result = files.data.find((file) => file.path === "output/result.csv");if (!result) throw new Error("The file was not persisted");const download = await client.downloadSessionFile( projectId, sessionId, result.path,);await writeFile(result.name, download.bytes);
The route is
GET /projects/{projectId}/sessions/{sessionId}/files/{relativePath} and
requires session:read. The session, its shared workspace owner, and the
storage-provider object are resolved inside the caller’s organization and
project. The API verifies the persistent archive and streams the requested
regular file without writing it to the API host filesystem. It never reaches
back into the live or stopped Daytona sandbox.
Runtime and event behavior
Before the first model turn, the runtime downloads the original object from the
storage provider bound at upload time, verifies its content type, size, and
SHA-256, and writes it to
.oao/attachments/{runId}/{filename} relative to the sandbox’s writable
working directory. Re-running the same intake
hook safely overwrites the same path with the same verified bytes. Later turns
use their own run directory, while earlier attachment paths remain available
in the persistent thread workspace.Apart from attached images, the model-visible message contains only paths and
safe metadata. The runtime does not read other files on the model’s behalf. The
agent must call its sandbox tools, so those reads and commands appear in the
normal tool timeline.Original file bytes are not copied into PostgreSQL, runs.inputPublic, product
events, SSE, audit details, or ordinary transcript responses. The resized image
copies held in Flue’s attachment store are the only exception, as described in
Images. The run manifest contains
only IDs, the bound storage provider and logical object key, safe metadata,
size, and SHA-256. Consume the normal resumable project event stream and
re-fetch the session when a relevant message or run event arrives.
Treat every uploaded file, including the text inside images, as untrusted user
input. OAO does not execute it, but a shell-capable agent can choose tools
that do. Agent instructions should inspect data files without executing
embedded macros, scripts, or binaries, and must never let file content
override execution-time authorization.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OAO","description":"Build, run, and inspect durable managed agents with OAO.","colors":{"primary":"#3d5bf5","light":"#f7ff00","dark":"#3d5bf5"},"logo":{"light":"https://mintcdn.com/open-agent-orchestrator/k42gavUqUCf8keFP/logo/oao-wordmark-black.png?fit=max\u0026auto=format\u0026n=k42gavUqUCf8keFP\u0026q=85\u0026s=6411d2c5448878c71793c961c38f58c2","dark":"https://mintcdn.com/open-agent-orchestrator/k42gavUqUCf8keFP/logo/oao-wordmark-white.png?fit=max\u0026auto=format\u0026n=k42gavUqUCf8keFP\u0026q=85\u0026s=f1173208049a30a12ef99c669e1d00d5","href":"/"},"favicon":"https://mintcdn.com/open-agent-orchestrator/R1qp5SfgpNOrI4Ap/favicon.svg?fit=max\u0026auto=format\u0026n=R1qp5SfgpNOrI4Ap\u0026q=85\u0026s=67d7ed8e6a2887bfea7c5f6684be6b37","appearance":{"default":"system"},"background":{"color":{"light":"#ffffff","dark":"#111111"}},"footer":{"socials":{}},"fonts":{"heading":{"family":"Space Grotesk"},"body":{"family":"Inter"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"open-agent-orchestrator","hasAudioNarration":false,"actualSubdomain":"open-agent-orchestrator","customDomains":["docs.oao.sh"],"gitSource":{"type":"github","owner":"vectrix-ai","repo":"oao","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6b09adc1d9604f95e54c9349","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"Build agents","count":8},{"language":"default","tag":"Reference","count":6},{"language":"default","tag":"Get started","count":5},{"language":"default","tag":"Connect your app","count":5},{"language":"default","tag":"Overview","count":2},{"language":"default","tag":"Files API","count":1}],"searchSettings":{"showContentSnippets":true}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* vietnamese */\n@font-face {\n font-family: 'Space Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/spacemono/v17/i7dPIFZifjKcF5UAWdDRYE58RWq7.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Space Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/spacemono/v17/i7dPIFZifjKcF5UAWdDRYE98RWq7.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Space Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/spacemono/v17/i7dPIFZifjKcF5UAWdDRYEF8RQ.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Space Mono';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/spacemono/v17/i7dMIFZifjKcF5UAWdDRaPpZUFqaHjyV.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Space Mono';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/spacemono/v17/i7dMIFZifjKcF5UAWdDRaPpZUFuaHjyV.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Space Mono';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/spacemono/v17/i7dMIFZifjKcF5UAWdDRaPpZUFWaHg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--font-mono-oao:\n \"Space Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}code,pre,kbd,samp,code span,pre span{font-family:var(--font-mono-oao)}"}]}
{"page":{"pagePath":"integrations/files","slug":"/integrations/files","pageMetadata":{"title":"Send files to an agent","description":"Copy durable text, images, Office documents, PDFs, and email files into an agent's sandbox, and show images to models that accept image input.","href":"/integrations/files"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Copy durable text, images, Office documents, PDFs, and email files into an agent’s sandbox, and show images to models that accept image input.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`OAO accepts files on both the initial session request and every later session\nturn. A file is submitted inline as canonical base64, uploaded byte-for-byte to\nthe project’s default S3-compatible storage provider, integrity-bound to the\nrun by its SHA-256 digest, and copied into the thread’s sandbox before the model\nruns. When the agent’s model accepts image input, image files are also attached\nto the model message as resized copies; see `,_jsx(_components.a,{href:`#images`,children:`Images`}),`. OAO’s own\nPostgreSQL tables store only the run manifest and object-storage binding, never\nattachment bytes or extracted text.`]}),`\n`,_jsx(_components.p,{children:`The current file input supports:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Files declared as `,_jsx(_components.code,{children:`text/*`}),`, JSON, JSON-LD, NDJSON, XML, YAML, JavaScript,\nand TypeScript.`]}),`\n`,_jsx(_components.li,{children:`PNG, JPEG, WebP, and GIF images.`}),`\n`,_jsx(_components.li,{children:`PDF and RTF documents.`}),`\n`,_jsxs(_components.li,{children:[`Microsoft Word `,_jsx(_components.code,{children:`.doc`}),`, `,_jsx(_components.code,{children:`.dot`}),`, `,_jsx(_components.code,{children:`.docx`}),`, `,_jsx(_components.code,{children:`.docm`}),`, `,_jsx(_components.code,{children:`.dotx`}),`, and `,_jsx(_components.code,{children:`.dotm`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Microsoft Excel `,_jsx(_components.code,{children:`.xls`}),`, `,_jsx(_components.code,{children:`.xlt`}),`, `,_jsx(_components.code,{children:`.xla`}),`, `,_jsx(_components.code,{children:`.xlsx`}),`, `,_jsx(_components.code,{children:`.xlsm`}),`, `,_jsx(_components.code,{children:`.xlsb`}),`,\n`,_jsx(_components.code,{children:`.xlam`}),`, `,_jsx(_components.code,{children:`.xltx`}),`, and `,_jsx(_components.code,{children:`.xltm`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Microsoft PowerPoint `,_jsx(_components.code,{children:`.ppt`}),`, `,_jsx(_components.code,{children:`.pot`}),`, `,_jsx(_components.code,{children:`.pps`}),`, `,_jsx(_components.code,{children:`.pptx`}),`, `,_jsx(_components.code,{children:`.pptm`}),`, `,_jsx(_components.code,{children:`.ppsx`}),`,\n`,_jsx(_components.code,{children:`.ppsm`}),`, `,_jsx(_components.code,{children:`.potx`}),`, and `,_jsx(_components.code,{children:`.potm`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Zipped and flat OpenDocument text, spreadsheet, presentation, drawing,\ntemplate, and formula variants: `,_jsx(_components.code,{children:`.odt`}),`, `,_jsx(_components.code,{children:`.ott`}),`, `,_jsx(_components.code,{children:`.fodt`}),`, `,_jsx(_components.code,{children:`.ods`}),`, `,_jsx(_components.code,{children:`.ots`}),`,\n`,_jsx(_components.code,{children:`.fods`}),`, `,_jsx(_components.code,{children:`.odp`}),`, `,_jsx(_components.code,{children:`.otp`}),`, `,_jsx(_components.code,{children:`.fodp`}),`, `,_jsx(_components.code,{children:`.odg`}),`, `,_jsx(_components.code,{children:`.otg`}),`, `,_jsx(_components.code,{children:`.fodg`}),`, and `,_jsx(_components.code,{children:`.odf`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Apple iWork `,_jsx(_components.code,{children:`.pages`}),`, `,_jsx(_components.code,{children:`.numbers`}),`, and `,_jsx(_components.code,{children:`.key`}),` documents.`]}),`\n`,_jsxs(_components.li,{children:[`RFC 822 `,_jsx(_components.code,{children:`.eml`}),` and Outlook `,_jsx(_components.code,{children:`.msg`}),` email files.`]}),`\n`,_jsx(_components.li,{children:`Up to 8 files per turn, 10 MiB per file, and 20 MiB combined.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`OAO does not extract, OCR, summarize, or otherwise preprocess document\ncontents, and the sandbox always receives the original bytes. The only derived\ncontent is the resized image copy sent to a model that accepts images. A\nmalformed, encrypted, password-protected, or text-free document is still\nadmitted as raw bytes; the agent’s sandbox tools decide how to inspect it. Standalone archives, audio, video, executables, Microsoft\nAccess/Publisher/OneNote/Visio/Project files, and other arbitrary binaries\nremain unsupported by the upload contract.`}),`\n`,_jsxs(_components.p,{children:[`The selected agent version must enable a sandbox. Text inputs require either\n`,_jsx(_components.code,{children:`filesystem_read`}),` or `,_jsx(_components.code,{children:`shell`}),`; binary inputs require `,_jsx(_components.code,{children:`shell`}),`. Choose a Daytona\nsnapshot with the software needed for the formats the agent will receive. New\nsandbox-enabled agent versions cannot be published without selecting an active\nsnapshot returned by Daytona. OAO does not substitute or build an image.`]}),`\n`,_jsxs(_components.p,{children:[`The project must also have a default `,_jsx(_components.a,{href:`/storage/workspace-backups`,children:`S3-compatible storage\nprovider`}),`. OAO rejects a file submission before\nqueueing the run when object storage or its credential-encryption configuration\nis unavailable. Message-only runs do not require object storage.`]}),`\n`,_jsx(Heading,{level:`2`,id:`api-file-contract`,children:`API file contract`}),`\n`,_jsxs(_components.p,{children:[`Each item in `,_jsx(_components.code,{children:`files`}),` has this shape:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` RunFileInput`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` contentType`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` dataBase64`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`dataBase64`}),` is standard padded base64 (RFC 4648) on a single line, exactly as\n`,_jsx(_components.code,{children:`Buffer.toString(\"base64\")`}),` or `,_jsx(_components.code,{children:`btoa`}),` produces it. The API rejects line breaks,\nspaces, missing or extra `,_jsx(_components.code,{children:`=`}),` padding, non-zero padding bits, and the URL-safe\n`,_jsx(_components.code,{children:`-`}),`/`,_jsx(_components.code,{children:`_`}),` alphabet with `,_jsx(_components.code,{children:`400 bad_request`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`name`}),` is a plain filename, not a path, and must be unique within the message.\nThe API normalizes the media type, verifies that known document extensions and\ndeclared types agree, computes the digest itself, and never accepts a\ncaller-supplied storage reference or checksum as proof of content. It does not\nparse the bytes. `,_jsx(_components.code,{children:`application/octet-stream`}),` is accepted for a recognized\ndocument extension and normalized from that extension.`]}),`\n`,_jsx(Heading,{level:`2`,id:`start-a-session-with-files`,children:`Start a session with files`}),`\n`,_jsxs(_components.p,{children:[`Encode files on a trusted server and send them with `,_jsx(_components.code,{children:`initialMessage`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`readFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node:fs/promises\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OaoClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@oao/sdk-js\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` OaoClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` baseUrl:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`OAO_API_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`OAO_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` source`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` readFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"src/index.ts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` created`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createSession`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`OAO_PROJECT_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` agentId:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`OAO_AGENT_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` title:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Review the entry point\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` initialMessage:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Review the attached entry point for unsafe boundaries.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` files:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"index.ts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contentType:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/typescript\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` dataBase64:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` source`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toString`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"base64\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`idempotencyKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"entry-point-review-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The equivalent JSON request is:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FILE_BASE64`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`base64`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` src/index.ts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` tr`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '\\\\n')\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --fail-with-body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$OAO_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Idempotency-Key: entry-point-review-1'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`agentId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$OAO_AGENT_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`title`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Review the entry point`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`initialMessage`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Review the attached entry point.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`files`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`: [{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`index.ts`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`contentType`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`application/typescript`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`dataBase64`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$FILE_BASE64`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$OAO_API_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/v1/projects/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$OAO_PROJECT_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/sessions\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`initialMessage`}),` may be omitted when at least one file is present. OAO then\nrecords a neutral `,_jsx(_components.code,{children:`Review the attached file(s).`}),` user message.`]}),`\n`,_jsx(Heading,{level:`2`,id:`continue-a-session-with-files`,children:`Continue a session with files`}),`\n`,_jsx(_components.p,{children:`Use the same file contract after the latest run settles:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`submitRun`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` projectId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sessionId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` message:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Compare this revision with the file from the previous turn.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` files:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"index-v2.ts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` contentType:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/typescript\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` dataBase64:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` revisedSource`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toString`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"base64\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`idempotencyKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"entry-point-review-2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The same `,_jsx(_components.code,{children:`files`}),` field is accepted by\n`,_jsx(_components.code,{children:`POST /projects/{projectId}/sessions/{sessionId}/runs`}),` and\n`,_jsx(_components.code,{children:`POST /projects/{projectId}/runs/{runId}/resume`}),`. A turn may contain only files.`]}),`\n`,_jsx(Heading,{level:`2`,id:`inspect-an-excel-file-with-pandas`,children:`Inspect an Excel file with pandas`}),`\n`,_jsxs(_components.p,{children:[`The runtime places every file under a deterministic per-run path. An agent with\nthe `,_jsx(_components.code,{children:`shell`}),` capability can use pandas directly:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pandas `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pd`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`path `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \".oao/attachments/\u003crun-id>/tasks.xlsx\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`workbook `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pd.ExcelFile(path)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(workbook.sheet_names)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(pd.read_excel(path, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`sheet_name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`workbook.sheet_names[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]).head())`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The model receives the exact path, filename, content type, byte size, and\nSHA-256. It does not receive a parsed preview, so reading the file produces a\nnormal visible `,_jsx(_components.code,{children:`read`}),` or `,_jsx(_components.code,{children:`bash`}),` tool call.`]}),`\n`,_jsx(Heading,{level:`2`,id:`images`,children:`Images`}),`\n`,_jsx(_components.p,{children:`PNG, JPEG, WebP, and GIF files are copied into the sandbox like every other\nfile. When the agent version’s model accepts image input, OAO also attaches each\nimage to the run’s message, so the model sees it in its first turn without\ncalling a tool.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Model support.`}),` OAO checks the image-input flag in the runtime metadata of\nthe model behind the agent’s preset, the same metadata the\n`,_jsx(_components.a,{href:`/models/adding-models`,children:`model catalog`}),` uses. Models without verified image\ninput, including OpenRouter and xAI models outside the pinned catalogs, are\ntreated as text-only.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Resizing.`}),` An image that is upright, single-frame, sRGB, at most 2000 px\non its long side, and at most 3.5 MB is sent unchanged. Any other image is\nrotated according to its EXIF orientation, reduced to its first frame,\nconverted to sRGB, downscaled so the long side is at most 2000 px, and\nre-encoded as PNG. JPEG sources stay JPEG. An image that is still larger than\n3.5 MB is re-encoded as JPEG and, if needed, shrunk further until it fits.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Per-message limit.`}),` The attached images of one message share a 12 MB\nbudget. An image past that budget, or one that cannot be decoded, is not\nattached.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`What the message says.`}),` The message still lists every file with its\nsandbox path. Each image entry states whether it is attached, for example\n`,_jsx(_components.code,{children:`image input: attached as image 1, converted to image/png at 2000x1250 px`}),`,\nor why it is not. Attached images are numbered in attachment order.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Text-only models.`}),` The run is delivered as before: a text message with\nthe file paths. It adds a note that the images could not be shown, with the\nreason for each image, and asks the model to inspect them with sandbox tools.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`The sandbox and object storage keep the original image. The attached copies\nbecome part of the thread’s conversation history in Flue’s canonical state, in\nthe same PostgreSQL database, because the model needs them again on later\nturns. Deleting the project purges them with the rest of that state. OAO’s own\nrecords (run manifests, product events, SSE, transcript messages, model\ninvocation records, and the sandbox tool log) never contain image bytes.`}),`\n`,_jsxs(_components.p,{children:[`The runtime loads the images before it sends the run to the model. If object\nstorage returns errors, or a download takes longer than 20 seconds, it retries\nthe download a few times. If storage is still unavailable, the run fails with `,_jsx(_components.code,{children:`run_file_storage_unavailable`}),` before\nanything is sent; start the run again once storage is back. If an image is\nmissing, does not match its SHA-256, or its storage provider is no longer\nconfigured, it is listed as not attached. The sandbox copy step then downloads\nevery file again and fails the run.`]}),`\n`,_jsx(Heading,{level:`2`,id:`read-images-and-other-binary-files`,children:`Read images and other binary files`}),`\n`,_jsxs(_components.p,{children:[`The sandbox `,_jsx(_components.code,{children:`read`}),` tool detects a file’s type from its first bytes, not from\nits name:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Images.`}),` PNG, JPEG, WebP, GIF, and TIFF files are returned as image content,\nprepared with the same size rules as attached images, together with a line\nthat states the original format and size. The agent can therefore look at\nimages it creates or copies during a run, such as rendered PDF pages or\ncharts. A model without image input receives a placeholder instead of the\nimage.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Other binary files.`}),` PDFs, ZIP-based Office documents, archives, databases,\nexecutables, and any other file with a NUL byte in its first 8,000 bytes\nreturn a short message with the detected type and size that points to the\n`,_jsx(_components.code,{children:`bash`}),` tool, instead of garbled text.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Text.`}),` Text files are returned as before, truncated to 2000 lines or 50 KB,\nwith `,_jsx(_components.code,{children:`offset`}),` and `,_jsx(_components.code,{children:`limit`}),` for longer files. UTF-16 files with a byte-order mark\nare decoded, and a stray NUL character later in a text file is shown as\nU+FFFD.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`OAO does not render scanned or image-only PDF pages for the model. An agent\nwhose snapshot includes a renderer, such as `,_jsx(_components.code,{children:`pdftoppm`}),` from poppler-utils, can\nrender the pages itself and read the results:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pdftoppm`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -r`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 150`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -png`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \".oao/attachments/\u003crun-id>/scan.pdf\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /tmp/scan`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The agent can then call `,_jsx(_components.code,{children:`read`}),` on `,_jsx(_components.code,{children:`/tmp/scan-1.png`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`use-the-console`,children:`Use the console`}),`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Sessions`}),`, select `,_jsx(_components.strong,{children:`Create session`}),` and choose files under `,_jsx(_components.strong,{children:`Files`}),` before\nsubmitting. On an existing settled session, use `,_jsx(_components.strong,{children:`Attach files`}),` under the\nmessage composer. Both surfaces share the same attachment control: pick files\nwith `,_jsx(_components.strong,{children:`Choose files`}),` or drag and drop them onto it, review the listed names\nand sizes, and remove any file before sending. Selected files are read in the\nbrowser and sent through the authenticated API request; the browser never\nreceives an S3 credential.`]}),`\n`,_jsx(_components.p,{children:`The transcript shows the filename, normalized content type, and size next to\nthe user message. It never returns the stored base64 or raw bytes. If the\nselected agent lacks the required sandbox capability, the API rejects the run\nbefore queueing it.`}),`\n`,_jsxs(_components.p,{children:[`The session sidebar lists each uploaded attachment from the run’s durable\nmanifest. After a successful workspace backup it shows `,_jsx(_components.strong,{children:`Uploaded + backed up`}),`\nwhen the exact sandbox path is also present in the archive’s object-storage\nmanifest. This is an authoritative path comparison rather than an inference\nfrom shell command text.`]}),`\n`,_jsxs(_components.p,{children:[`Every `,_jsx(_components.strong,{children:`Backed up`}),` file also has a download action. It calls the authenticated\nsession Files API, not Daytona and not a provider-specific public URL. The API\nreads the latest verified workspace archive from the persistent storage\nprovider bound to that workspace.`]}),`\n`,_jsx(Heading,{level:`2`,id:`retrieve-model-created-files`,children:`Retrieve model-created files`}),`\n`,_jsxs(_components.p,{children:[`For the complete list, download, authentication, and error contracts, see the\ndedicated `,_jsx(_components.a,{href:`/reference/files-api`,children:`Files API reference`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Ask the model to return the relative path of the file it created, for example\n`,_jsx(_components.code,{children:`output/result.csv`}),`. After the run completes and its workspace backup succeeds,\nthe caller can use the known session ID:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`writeFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node:fs/promises\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` files`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`listSessionFiles`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`projectId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sessionId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` files`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`find`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`file`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` file`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`path`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"output/result.csv\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The file was not persisted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` download`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`downloadSessionFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` projectId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sessionId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`path`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` writeFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`download`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bytes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The route is\n`,_jsx(_components.code,{children:`GET /projects/{projectId}/sessions/{sessionId}/files/{relativePath}`}),` and\nrequires `,_jsx(_components.code,{children:`session:read`}),`. The session, its shared workspace owner, and the\nstorage-provider object are resolved inside the caller’s organization and\nproject. The API verifies the persistent archive and streams the requested\nregular file without writing it to the API host filesystem. It never reaches\nback into the live or stopped Daytona sandbox.`]}),`\n`,_jsx(Heading,{level:`2`,id:`runtime-and-event-behavior`,children:`Runtime and event behavior`}),`\n`,_jsxs(_components.p,{children:[`Before the first model turn, the runtime downloads the original object from the\nstorage provider bound at upload time, verifies its content type, size, and\nSHA-256, and writes it to\n`,_jsx(_components.code,{children:`.oao/attachments/{runId}/{filename}`}),` relative to the sandbox’s writable\nworking directory. Re-running the same intake\nhook safely overwrites the same path with the same verified bytes. Later turns\nuse their own run directory, while earlier attachment paths remain available\nin the persistent thread workspace.`]}),`\n`,_jsx(_components.p,{children:`Apart from attached images, the model-visible message contains only paths and\nsafe metadata. The runtime does not read other files on the model’s behalf. The\nagent must call its sandbox tools, so those reads and commands appear in the\nnormal tool timeline.`}),`\n`,_jsxs(_components.p,{children:[`Original file bytes are not copied into PostgreSQL, `,_jsx(_components.code,{children:`runs.inputPublic`}),`, product\nevents, SSE, audit details, or ordinary transcript responses. The resized image\ncopies held in Flue’s attachment store are the only exception, as described in\n`,_jsx(_components.a,{href:`#images`,children:`Images`}),`. The run manifest contains\nonly IDs, the bound storage provider and logical object key, safe metadata,\nsize, and SHA-256. Consume the normal resumable project event stream and\nre-fetch the session when a relevant message or run event arrives.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Treat every uploaded file, including the text inside images, as untrusted user\ninput. OAO does not execute it, but a shell-capable agent can choose tools\nthat do. Agent instructions should inspect data files without executing\nembedded macros, scripts, or binaries, and must never let file content\noverride execution-time authorization.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Send files to an agent","description":"Copy durable text, images, Office documents, PDFs, and email files into an agent's sandbox, and show images to models that accept image input.","href":"/integrations/files"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"API file contract","slug":"api-file-contract","depth":2,"children":[]},{"title":"Start a session with files","slug":"start-a-session-with-files","depth":2,"children":[]},{"title":"Continue a session with files","slug":"continue-a-session-with-files","depth":2,"children":[]},{"title":"Inspect an Excel file with pandas","slug":"inspect-an-excel-file-with-pandas","depth":2,"children":[]},{"title":"Images","slug":"images","depth":2,"children":[]},{"title":"Read images and other binary files","slug":"read-images-and-other-binary-files","depth":2,"children":[]},{"title":"Use the console","slug":"use-the-console","depth":2,"children":[]},{"title":"Retrieve model-created files","slug":"retrieve-model-created-files","depth":2,"children":[]},{"title":"Runtime and event behavior","slug":"runtime-and-event-behavior","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"open-agent-orchestrator","siteName":"OAO","title":"Send files to an agent - OAO","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-10T18:17:17.795Z","originalFileLocation":"integrations/files.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Copy durable text, images, Office documents, PDFs, and email files into an agent\u0026#x27;s sandbox, and show images to models that accept image input.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OAO\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/open-agent-orchestrator/YXY8WZJrElcNAoiz/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/open-agent-orchestrator/YXY8WZJrElcNAoiz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/open-agent-orchestrator/YXY8WZJrElcNAoiz/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/open-agent-orchestrator/YXY8WZJrElcNAoiz/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/open-agent-orchestrator/YXY8WZJrElcNAoiz/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/open-agent-orchestrator/YXY8WZJrElcNAoiz/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/open-agent-orchestrator/YXY8WZJrElcNAoiz/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/open-agent-orchestrator/YXY8WZJrElcNAoiz/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/open-agent-orchestrator/YXY8WZJrElcNAoiz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send files to an agent - OAO\">\u003cmeta data-mint-head property=\"og:description\" content=\"Copy durable text, images, Office documents, PDFs, and email files into an agent\u0026#x27;s sandbox, and show images to models that accept image input.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OAO\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.oao.sh/integrations/files\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://open-agent-orchestrator.mintlify.site/_mintlify/api/og/v2?division=Connect+your+app\u0026amp;title=Send+files+to+an+agent\u0026amp;description=Copy+durable+text%2C+images%2C+Office+documents%2C+PDFs%2C+and+email+files+into+an+agent%27s+sandbox%2C+and+show+images+to+models+that+accept+image+input.\u0026amp;theme=7d0a9fbde0b0ff054ded6ddd\u0026amp;signature=64f6530a2297eacbf86000d8ae74b37b3d651d20111f3b4f8ebadf9270a70ebb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Send files to an agent - OAO\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Copy durable text, images, Office documents, PDFs, and email files into an agent\u0026#x27;s sandbox, and show images to models that accept image input.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://open-agent-orchestrator.mintlify.site/_mintlify/api/og/v2?division=Connect+your+app\u0026amp;title=Send+files+to+an+agent\u0026amp;description=Copy+durable+text%2C+images%2C+Office+documents%2C+PDFs%2C+and+email+files+into+an+agent%27s+sandbox%2C+and+show+images+to+models+that+accept+image+input.\u0026amp;theme=7d0a9fbde0b0ff054ded6ddd\u0026amp;signature=64f6530a2297eacbf86000d8ae74b37b3d651d20111f3b4f8ebadf9270a70ebb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/open-agent-orchestrator/YXY8WZJrElcNAoiz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OAO\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3d5bf5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.oao.sh/integrations/files\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/integrations/files.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.oao.sh/#organization\",\"name\":\"OAO\",\"url\":\"https://docs.oao.sh\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/open-agent-orchestrator/k42gavUqUCf8keFP/logo/oao-wordmark-black.png?fit=max\u0026auto=format\u0026n=k42gavUqUCf8keFP\u0026q=85\u0026s=6411d2c5448878c71793c961c38f58c2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.oao.sh#website\",\"name\":\"OAO\",\"url\":\"https://docs.oao.sh\",\"publisher\":{\"@id\":\"https://docs.oao.sh/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.oao.sh/integrations/files#webpage\",\"url\":\"https://docs.oao.sh/integrations/files\",\"name\":\"Send files to an agent\",\"description\":\"Copy durable text, images, Office documents, PDFs, and email files into an agent's sandbox, and show images to models that accept image input.\",\"dateModified\":\"2026-11-10T18:17:17.795Z\",\"isPartOf\":{\"@id\":\"https://docs.oao.sh#website\"},\"breadcrumb\":{\"@id\":\"https://docs.oao.sh/integrations/files#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.oao.sh/integrations/files#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"OAO\",\"item\":\"https://docs.oao.sh\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send files to an agent\",\"item\":\"https://docs.oao.sh/integrations/files\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.oao.sh/integrations/files#article\",\"headline\":\"Send files to an agent\",\"name\":\"Send files to an agent\",\"description\":\"Copy durable text, images, Office documents, PDFs, and email files into an agent's sandbox, and show images to models that accept image input.\",\"url\":\"https://docs.oao.sh/integrations/files\",\"mainEntityOfPage\":{\"@id\":\"https://docs.oao.sh/integrations/files#webpage\"},\"dateModified\":\"2026-11-10T18:17:17.795Z\",\"publisher\":{\"@id\":\"https://docs.oao.sh/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.oao.sh#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OAO\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OAO\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/integrations/files.md","siteName":"OAO","nav":{"global":null,"groups":[{"group":"Overview","pages":[{"title":"OAO documentation","href":"/index"},{"title":"How OAO works","href":"/concepts/how-oao-works"}]},{"group":"Get started","pages":[{"title":"Guided quickstart","href":"/getting-started/quickstart"},{"title":"Local development","href":"/getting-started/local-development"},{"title":"Deploy to Railway","href":"/getting-started/railway"},{"title":"Deploy to Google Cloud","href":"/getting-started/gcp"},{"title":"Back up and restore configuration","href":"/getting-started/backup-and-restore"}]},{"group":"Build agents","pages":[{"title":"Create an agent","href":"/agents/create-agent"},{"title":"Add tools to an agent","href":"/agents/add-tools"},{"title":"Harness Operations","href":"/concepts/harness-operations"},{"title":"Multi-agent orchestration","href":"/concepts/multi-agent-orchestration"},{"title":"Versioned Skills","href":"/concepts/skills"},{"title":"Adding models and providers","href":"/models/adding-models"},{"title":"Daytona sandboxes","href":"/sandboxes/daytona"},{"title":"Workspace backups","description":"Persist Daytona session files in organization-shared S3-compatible storage and restore deleted sandboxes.","href":"/storage/workspace-backups"}]},{"group":"Connect your app","pages":[{"title":"Send files to an agent","href":"/integrations/files"},{"title":"Connect a codebase","description":"Give one OAO agent safe, durable access to repository context from a server-side integration.","href":"/integrations/codebase"},{"title":"Event webhooks","href":"/integrations/event-webhooks"},{"title":"Remote MCP servers","href":"/integrations/mcp"},{"title":"Manage OAO through MCP","href":"/integrations/oao-mcp-server"}]},{"group":"Files API","pages":[{"title":"Files API","href":"/reference/files-api"}]},{"group":"Reference","pages":[{"title":"Authentication","href":"/reference/authentication"},{"title":"HTTP API","href":"/reference/http-api"},{"title":"Real-time events","href":"/reference/events"},{"title":"Releases","href":"/reference/releases"},{"title":"MVP limitations","href":"/reference/mvp-limitations"},{"title":"Architecture","href":"/architecture"}]}]},"basePath":"","title":"Send files to an agent - OAO","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":[],"chunks":[]}