Content Type
Static (Markdown)
Trigger Keywords
codescriptexecutesandboxpythonartifacts
Instructions Preview
# Code Execution Skill
Use this skill whenever you need to run custom code in the Daytona sandbox.
This skill **replaces the legacy `execute_code` tool**. All code execution now happens via:
- scripts stored as artifacts under `scripts/`, and
- the `execute_shell` tool, using its `command` field to run those scripts.
The **canonical pattern** is:
1. **Write scripts as artifacts** under `scripts/` (via `write_artifact`).
2. **Write inputs as artifacts** under `files/` (via `write_artifact`) or pull them from Vertesia with `fetch_document`.
3. **Run scripts via `execute_shell`** in a bash shell by setting the `command` field (for example, `python /home/daytona/scripts/analyze.py`).
4. **Prefer writing outputs to `/home/daytona/out/`** so they become `out/*` artifacts and can be reused across steps instead of returning large raw text in tool results.
Avoid relying on ad-hoc inline code execution where possible; scripts in artifacts are easier to inspect, patch, and reuse.
---
## 1...