agents

Atomically write a text file in the agent workspace.

Changed on
put/api/agent/{agentName}/fs/file

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/agent/{agentName}/fs/file
  • Auth: HTTP bearer

Path parameters

agentNamestring required

Agent name.

Request body

pathstring required
contentstring required
expected_versionstring required
overwriteboolean

Response

File written.

pathstring required
sizeinteger required
media_typestring required
modified_atstring date-time required
versionstring required
type'file' | 'directory' required

Changes