> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cosmon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Attach files

> Hand files to a run — the agent reads them alongside the prompt.

Pass `attachments` to hand specific files to a run. Relative paths resolve
against **your** working directory (the SDK absolutizes them before sending),
and a missing file raises `CosmonError` immediately — before the agent runs.

```python theme={null}
from cosmon_agent_sdk import Client

with Client() as client:
    print(client.run(
        "Compare the attached revision against the current model and list what changed.",
        agent="solidworks",
        attachments=["bracket_v7.sldprt"],
    ).text())
```

<Card title="Guide: attaching files" icon="book-open" href="/sdk/guide#attaching-files">
  How paths resolve and when attachments are read.
</Card>
