---
title: "code execution tool · RUAL Documentation"
description: "Let Claude run Python in a sandbox (data analysis, math, charts); Anthropic-hosted. Wire the tool output into a message block's tools pin."
canonical: https://docs.rual.nl/block-types/anthropic/anthropicconnection_tool_code_execution
language: en
---

# code execution tool

This block is part of the [`anthropic`](https://docs.rual.nl/block-types/anthropic) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

Let Claude run Python in a sandbox (data analysis, math, charts); Anthropic-hosted. Wire the tool output into a message block's tools pin.

- tool `anthropictool` The code execution tool; wire into a message block's tools pin.

| `code execution` |
| --- |
| `python` |
| `run code` |
| `sandbox` |
| `data analysis` |

A typical wiring for [code execution tool](https://docs.rual.nl/block-types/anthropic/anthropicconnection_tool_code_execution): the `tool` out pin feeds [send message](https://docs.rual.nl/block-types/anthropic/anthropicconnection_message).

![Studio canvas example for the code execution tool block: typical wiring for code execution tool.](https://docs.rual.nl/canvas-examples/anthropicconnection_tool_code_execution.png)

### Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).
