export_area_metrics
Export area metrics as CSV or JSON over a custom date range, turning daily note metadata into trend-ready data for external analysis.
Instructions
Export area metrics as CSV or JSON for trend analysis.
Dumps daily note metadata for the area's criteria fields over a date range. Useful for plotting trends externally.
Args: area: Area name or ID (e.g. 'health', 'HEA'). format: Output format ('csv' or 'json'). from_date: Start date in YYYY-MM-DD format. Defaults to 30 days ago. to_date: End date in YYYY-MM-DD format. Defaults to today.
Returns: CSV or JSON string with daily values for each criterion field.
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": {
"area": "<area>"
},
"name": "export_area_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | ||
| format | No | csv | |
| to_date | No | ||
| from_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |