get_task
Fetch a Mechanic task by handle or ID, returning its full payload including script, options, and subscriptions for Shopify automation.
Instructions
Tasks only: fetch by handle/id with full payload (script, options, subscriptions).
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": {
"id": "<id>"
},
"name": "get_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| name | Yes | ||
| tags | Yes | ||
| handle | Yes | ||
| script | No | ||
| options | No | ||
| subscriptions | Yes | ||
| subscriptions_template | No | ||
| online_store_javascript | No | ||
| order_status_javascript | No |