set_dag_paused
Pause or unpause a DAG to control execution. New DAGs start paused, so set paused=False to enable triggered runs to actually run.
Instructions
Pause or unpause a DAG.
Locally, newly added DAGs are paused by default, so trigger_dag will queue a run
that never executes until the DAG is unpaused. Call this with paused=False to enable it.
Args: dag_id: DAG identifier. paused: True to pause, False to unpause.
Returns: DagInfo reflecting the updated state.
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": {
"dag_id": "<dag_id>",
"paused": "<paused>"
},
"name": "set_dag_paused"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | ||
| paused | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| dag_id | No | ||
| fileloc | No | ||
| is_active | No | ||
| is_paused | No | ||
| description | No | ||
| next_dagrun | No | ||
| last_parsed_time | No | ||
| has_import_errors | No |