run_modal_app
Executes a Modal function or local entrypoint once and collects its output, URLs, and truncation status for testing on Modal compute before publishing.
Instructions
Run a Modal function or local entrypoint once and collect its output (`modal run`).
Use this to test on Modal compute; use deploy_modal_app to publish.
Args:
absolute_path_to_app: Absolute path to the app file. Its directory must use `uv`
and have `modal` installed in its virtualenv.
function_name: Function/entrypoint name, e.g. "main". Omit if the module has
exactly one.
env: Modal environment to target.
detach: Keep the run alive on Modal past this call (`--detach`) — for long jobs.
timeout_seconds: Max seconds to collect output. Default 120.
profile: Modal profile for this call only. Defaults to the active profile.
Returns: {output, urls, truncated (still running at the timeout), output_capped}.
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": {
"absolute_path_to_app": "<absolute_path_to_app>"
},
"name": "run_modal_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| detach | No | ||
| profile | No | ||
| function_name | No | ||
| timeout_seconds | No | ||
| absolute_path_to_app | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |