debug
Write a heap snapshot
Changed onWrite a JavaScript heap snapshot of the server process into its log directory, or the requested directory, and return the server-local path once the file is complete. Pauses the server while the heap serializes and can temporarily increase its memory use. The snapshot can contain credentials, prompts, and file contents.
post/api/debug/heap-dump
Request
- Base URLhttps://opencode.ai (the document declares no server; this is the origin it was published from)
- URLhttps://opencode.ai/api/debug/heap-dump
- Authnone required
Query parameters
directorystring nullable
Absolute server-local directory to write the snapshot into, created when missing. Defaults to the server's log directory.
Response
Success
Changes
- info
added the required property
to the response with the status
- info
- info
endpoint added
- info