Workspace: Multi Edit
Apply multiple file edits atomically in the agent’s workspace
Apply multiple file edits atomically. Each edit uses the same exact-match semantics as Workspace: File Edit. If any edit fails, all changes are rolled back.Documentation Index
Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
Request Body
Response
ok).Example Request
Notes
- Edits are applied in the order provided. Later edits can operate on content produced by earlier edits in the same request.
- If any single edit fails (e.g.,
old_textnot found), the entire batch is rolled back so the workspace is not left in a half-applied state.
See Also
Authorizations
API Key for authentication
Path Parameters
Agent UUID
Body
Request body for applying multiple file edits atomically.
Ordered list of edits to apply atomically. If any edit fails, all changes are rolled back.
Response
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.

