Files
Edit file fast
Edit a text file using a fast apply LLM.
Parameters#
target_filestringrequiredAbsolute path of the file to edit.
code_editstringrequiredSpecify ONLY the precise lines of code that you wish to edit. Use // ... existing code ... for unchanged sections.
instructionsstringdefault: ""Optional. A single sentence in the first person describing what you're changing (e.g. 'I am adding error handling to the fetch call'). Helps disambiguate the edit; omit it for unambiguous edits.
devicestringdefault: ""Optional fleet device name or id. When set, edits the file inside that running device's container instead of the host. The device must be started first. Requires the 'devices:manage' scope.
zappstringdefault: ""Optional Zo App slug or id. When set, edits the file inside that Zo App's sandbox instead of the host (the app server is /zo-app/server.ts; private/user data goes under /user-data so the app stays cleanly shareable). Mutually exclusive with 'device'. Requires the 'apps:shell' scope.