# fs/tmp-dir Per-process scratch directory `/tmp/deft-<pid>/`. Created on first call. Use for ephemeral files (editor snapshots, MCP transport, debug dumps). ## Syntax
[fs/tmp-dir]
## Examples
set dir [fs/tmp-dir]
[fs/write [fs/join $dir "debug.log"] $msg]
## Returns String path to the scratch directory. ## See Also `fs/tmp-path`, `fs/tempdir`