---
title: "Write a file on the agent's machine"
method: PUT
path: "/agents/{agent_id}/fs"
tags: ["Agent work"]
---

# Write a file on the agent's machine

`PUT /agents/{agent_id}/fs`

## Request

- Base URL: `https://api-docs.jackhamr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.jackhamr.ai/agents/{agent_id}/fs`
- Auth: none declared

## Path parameters

- `agent_id` string, required

## Request body

- WriteBody
  - `path` string, required
  - `content` string, nullable
  - `content_base64` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jackhamr/apis/jackhamr-api.md) · [All operations](https://skmtc.dev/jackhamr/apis/jackhamr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/jackhamr/apis/jackhamr-api/revisions/f75d221481d8?raw)
