modal_container_exec
Run a command inside a specific Modal container by providing the container ID and the command string. Executes directly within the target container.
Instructions
Execute a command in a container.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"containerId": "<containerId>",
"command": "<command>"
},
"name": "modal_container_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command to execute | |
| containerId | Yes | ID of the container (e.g. ta-123456) |