Tools

Code & skills

Run code in an isolated sandbox, and load and run the skills an agent carries.

ToolWhat it does
code_executionRuns a short Python or Node script the model writes, in a sandbox with no network and CPU, memory and time limits.
load_skillReads a skill's instructions when the agent needs them: first the body of its SKILL.md and a list of its files, then any one file on demand.
run_skill_scriptRuns one of a skill's declared entrypoint scripts in the sandbox, with arguments.
propose_skillDrafts a reusable SKILL.md from the conversation as a proposal in the Skill Workshop.

code_execution

Runs a short Python or Node script the model writes, in a sandbox with no network and CPU, memory and time limits. Files written to /out come back as downloadable artifacts.

How an agent gets it. Declare it in the agent's tools: list.

Arguments

ArgumentTypeRequiredMeaning
codestringyesProgram source to execute.
languageone of python, node

load_skill

Reads a skill's instructions when the agent needs them: first the body of its SKILL.md and a list of its files, then any one file on demand. Skills cost nothing until they are used.

How an agent gets it. Added automatically when the agent has at least one skill attached.

Arguments

ArgumentTypeRequiredMeaning
slugstringyes
pathstringOptional bundled file to read (e.g. references/style.md).

run_skill_script

Runs one of a skill's declared entrypoint scripts in the sandbox, with arguments.

How an agent gets it. Added automatically when the agent has at least one skill attached.

Arguments

ArgumentTypeRequiredMeaning
skillstringyes
entrypointstringyesDeclared entrypoint path.
argsarray of string

propose_skill

Drafts a reusable SKILL.md from the conversation as a proposal in the Skill Workshop. It is never applied automatically; a person reviews, revises and applies it.

How an agent gets it. Added automatically on chat and automation runs.

Arguments

ArgumentTypeRequiredMeaning
titlestringyes
draft_mdstringyes
proposal_idstring