modal_run
Run a Modal function or local entrypoint by providing the script path, with options for environment and detach.
Instructions
Run a Modal function or local entrypoint.
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": {
"appRef": "<appRef>"
},
"name": "modal_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment to interact with | |
| appRef | Yes | Path to script or module (e.g. my_script.py) | |
| detach | No | Run the app in detached mode |