---
title: "Open File"
method: PATCH
path: "/v1/agents/{agent_id}/files/{file_id}/open"
tags: ["agents"]
---

# Open File

`PATCH /v1/agents/{agent_id}/files/{file_id}/open`

Opens a specific file for a given agent.

This endpoint marks a specific file as open in the agent's file state.
The file will be included in the agent's working memory view.
Returns a list of file names that were closed due to LRU eviction.

## Path parameters

- `agent_id` string, required
- `file_id` string, required

## Response `200`

Successful Response

- string[]

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/yu-code666/apis/letta-api.md) · [All operations](https://skmtc.dev/yu-code666/apis/letta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/yu-code666/letta-api/revisions/6cec99480c13/schema)
