generate_alert_download_code
Generate code to download ZTF alert packets for multiple sources, providing full alert history including cutouts and previous detections. Get alert-level data beyond forced photometry.
Instructions
Generate code to download ZTF alert packets for multiple sources.
This tool generates code that downloads raw ZTF alert packets, which contain the full alert history including candidate info, cutouts, and previous detections.
Use Case: When you need complete alert history or want to access alert-level data that isn't available in forced photometry.
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": {
"sources": "<sources>"
},
"name": "generate_alert_download_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | Yes | Comma-separated ZTF source names or JSON array Example: "ZTF24aaaaaaa,ZTF24aaaaaab" | |
| with_cutouts | No | Download cutout images (science, ref, diff) (default: True) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |