ExportTimeSheetReportTool
Exports a timesheet report in JSON, CSV or PDF, the same content as the time sheet export in the app. Filters (companies, projects, workers, date range) are scoped to the authenticated user's role. Summary: per project hours and price (totals), human_hours, human_price, ai_hours, ai_price (the parts priced at the human and the AI hourly rate; they add up to the totals), currency and not_invoiced_hours; price fields are empty where the user may not read the project's prices. Nested and by_day: every effort carries rate_kind (human or ai).
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": {
"account_code": "<account_code>",
"from": "<from>",
"to": "<to>"
},
"name": "ExportTimeSheetReportTool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End date in ISO format (YYYY-MM-DD) | |
| from | Yes | Start date in ISO format (YYYY-MM-DD) | |
| type | No | Report layout: nested, by_day or summary | |
| format | No | Export format: json, csv or pdf | |
| company_id | No | Company database ID; omit to include all allowed companies | |
| project_id | No | Project database ID; omit to include all allowed projects | |
| account_code | Yes | Account code (e.g., "bcp", "jchsoft") |