工具描述:Bash(沙箱 — 临时目录)
Tool Description: Bash (sandbox — tmpdir)
v2.1.53Use $TMPDIR for temporary files in sandbox mode
模板变量 / Template Variables
SANDBOX_TMPDIR_FN
对于临时文件,请始终使用 $TMPDIR 环境变量(或使用 ${SANDBOX_TMPDIR_FN()} 作为备用方案)。在 sandbox 模式下,TMPDIR 会自动设置为正确的 sandbox 可写目录。请勿直接使用 /tmp,而应使用 $TMPDIR 或 ${SANDBOX_TMPDIR_FN()}。
英文原文 / English Original
For temporary files, always use the $TMPDIR environment variable (or ${SANDBOX_TMPDIR_FN()} as a fallback). TMPDIR is automatically set to the correct sandbox-writable directory in sandbox mode. Do NOT use /tmp directly - use $TMPDIR or ${SANDBOX_TMPDIR_FN()} instead.