code-interpreter
Installation
SKILL.md
Code Interpreter
A general-purpose code execution environment powered by AWS Bedrock AgentCore Code Interpreter. Run code, execute shell commands, and manage files in a secure sandbox.
Available Tools
- execute_code(code, language, output_filename): Execute Python, JavaScript, or TypeScript code.
- execute_command(command): Execute shell commands.
- file_operations(operation, paths, content): Read, write, list, or remove files in the mounted session workspace.
Tool Parameters
execute_code
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
code |
string | Yes | Code to execute. Use print() for text output. |
|
language |
string | No | "python" |
"python", "javascript", or "typescript" |
output_filename |
string | No | "" |
File to publish as a durable session file. Code must save a file with this exact name. |