debug

Write a heap snapshot

Changed on

Write 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 URL
    https://opencode.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://opencode.ai/api/debug/heap-dump
  • Auth
    none 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

pathstring required
pidinteger required

Changes