Agent Filesystem API
Read, write, and manage files in an agent’s persistent workspace.Read File
Get the contents of a file.Endpoint
Authentication
Requires JWT token or Platform API key.Path Parameters
| Parameter | Type | Description |
|---|---|---|
agentId | string | Agent UUID |
path | string | File path in workspace |
Example Request
Response
Create File
Create a new file in the workspace.Endpoint
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
content | string | Yes | File content |
encoding | string | No | Content encoding (utf-8 or base64) |
Example Request
Response
Update File
Update an existing file.Endpoint
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
content | string | Yes | New file content |
encoding | string | No | Content encoding |

