---
title: "Get file from agent skill"
method: GET
path: "/agent_skills/{id}/file"
tags: ["agent_skills"]
---

# Get file from agent skill

`GET /agent_skills/{id}/file`

Get file content or download URL from agent skill. If the file is text-based (parseable), returns parsed content. Otherwise, returns a presigned download URL.

## Path parameters

- `id` string, required

## Query parameters

- `file_path` string, required
- `expire` integer

## Response `200`

OK

- object
  - `code` integer
  - `error` string
  - `msg` string
  - `data` ServiceGetFileOutput
    - `content` FileparserFileContent
      - `raw` string — Raw text content
      - `type` string — "text", "json", "csv", "code"
    - `mime` string
    - `path` string
    - `url` string — Material URL for binary files (works for both encrypted and non-encrypted)

## Changes

- **2025-12-30** `69c8b7c21807` — 1 info
  - endpoint added
- **2025-11-12** `a1c1bcb0e2ee` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/memodb-io/apis/acontext-api/changes/agent_skills/:id/file/get.md)

---

[API](https://skmtc.dev/memodb-io/apis/acontext-api.md) · [All operations](https://skmtc.dev/memodb-io/apis/acontext-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/memodb-io/acontext-api/revisions/c8775333b1ed/schema)
