Read a file from the agent’s workspace filesystem
ok).encoding appropriately or use Workspace: File Share to retrieve the file via a public URL.API Key for authentication
Agent UUID
Request body for reading a file from the agent workspace.
Path to the file relative to the workspace root.
"config.yaml"
1-based line number to start reading from. Optional; reads from the beginning when omitted.
x >= 11-based line number to stop reading at (inclusive). Optional; reads to the end when omitted.
x >= 1Text encoding used to decode the file contents.
Successful Response
Generic response wrapper returned by agent workspace endpoints. Not every field is populated for every tool.
Result status of the workspace operation.
"ok"
Standard output captured from the workspace command. Present for bash.
Standard error captured from the workspace command. Present for bash.
Process exit code returned by the workspace. Present for bash.
File contents. Present for file_read.
File path affected by the operation. Present for file_write, file_edit, multi_edit, file_share.
Match results. Present for glob and grep.
Public CDN URL. Present for file_share.
Error message when the operation fails.