Skip to main content

Parameters

target_file
string
required
Absolute path of the file to edit.
instructions
string
required
A single sentence written in the first person describing what you’re changing. Used to help disambiguate uncertainty in the edit.
code_edit
string
required
Specify ONLY the precise lines of code that you wish to edit. Use // … existing code … for unchanged sections.
device
string
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.
zapp
string
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.