visits_create
Book a visit to a job at a time, optionally with the workers going (assignee_ids, a saved crew_id, or both). Overlaps for those workers come back in conflicts.
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": {
"job_id": "<job_id>",
"starts_at": "<starts_at>",
"ends_at": "<ends_at>"
},
"name": "visits_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| title | No | ||
| job_id | Yes | ||
| crew_id | No | ||
| ends_at | Yes | ||
| priority | No | normal (default), urgent or emergency. Urgent and emergency visits send visit.priority_set and can use dispatch.suggest. | |
| starts_at | Yes | ||
| assignee_ids | No | ||
| arrival_window_minutes | No | Arrival window in minutes: the customer is told the worker arrives between starts_at and starts_at plus this. Defaults to the shop's setting (schedule.setRules). |