createCalendar
Create a calendar item as a task or appointment. Specify type, content, lead ID, time zone, and start/end times. For tasks, set method and assigned role; for appointments, provide address.
Instructions
Create a calendar item (v2 API). type: TASK | APPOINTMENT. For TASK provide taskWay and assignedRole; for APPOINTMENT provide address.
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": {
"type": "<type>",
"content": "<content>",
"leadId": "<leadId>",
"timeZoneCode": "<timeZoneCode>"
},
"name": "createCalendar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Calendar item type | |
| content | Yes | Description | |
| leadId | Yes | Lead ID | |
| timeZoneCode | Yes | IANA time zone code | |
| startAt | No | Start time (ISO 8601) | |
| endAt | No | End time (ISO 8601) | |
| startAtMs | No | Start time as ms epoch | |
| endAtMs | No | End time as ms epoch | |
| taskWay | No | Task method (TASK only) | |
| assignedRole | No | Assigned role (TASK only) | |
| address | No | Location address (APPOINTMENT only) |