Import gig from a link
import_event_from_urlSave an event link as a gig, or attach it to a gig that already exists. Without event_id: a new link creates a DRAFT gig; a link imported before updates that same gig, overwriting its title, date, times, venue, notes, cover and run of show with the values passed, and keeps its status (title and event_date required). Confirm with the user before re-importing a link that already has a gig (existing_event_id from preview_event_from_url). With event_id: attaches the page to that existing gig (made by hand, from a template or another import) or refreshes the page it has; pass in event only the fields the user chose to overwrite (omitted fields keep their value; times without event_date land on the gig's current day), and the gig type is never changed. Passing location or location_name replaces the gig's venue link. A gig keeps one event page, and a page another gig holds is refused with existing_event_id. With event_id and remove_page: true, removes the gig's event page link and keeps everything it filled in. Pass the event fields from preview_event_from_url, edited as the user asked, and only the preview sections the user kept: run_of_show is written to the gig run of show, venue is linked, organizer becomes a show contact, requirements become tasks, links become gig links (with the event page), image_url becomes the gig cover, capacity fills an empty guest count, suggested_gig_type sets the type of a new gig. Confirmation-gated only when event_id is set and event changes the date, times or venue, because the gig's invited crew get a schedule-change notification. Every other call applies on the first call, including a re-import that overwrites the gig the link made, so get the user's approval before it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "import_event_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | the same event link passed to preview_event_from_url; not needed with remove_page | |
| event | No | event fields, usually the preview event object; with event_id only the ones to overwrite | |
| links | No | added to the gig notes under Links | |
| venue | No | links an existing venue with the same name or creates one; online events link none | |
| capacity | No | saved as the guest count when the gig has none | |
| event_id | No | an existing gig to attach the page to; omit to create or update by link | |
| image_url | No | page image from the preview; stored as the gig cover unless someone set one by hand | |
| organizer | No | saved as an Organizer show contact; links the matching client | |
| doors_time | No | door time, 24-hour HH:MM; added as the first run of show item | |
| remove_page | No | with event_id: remove the gig's event page link instead of saving one | |
| run_of_show | No | agenda items from the preview; replaces the items an earlier import of this link wrote | |
| requirements | No | what to bring; saved as gig tasks | |
| ticket_price | No | added to the gig notes | |
| organization_id | No | organization to act in, an id from get_me; omit to use your active organization | |
| confirmation_token | No | only when event_id is set and event changes event_date, end_date, start_time, end_time, location or location_name: leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token | |
| suggested_gig_type | No | one of the workspace gig types from the preview |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | when the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: a new gig from a link: { event_id, created, source_url, applied { run_of_show_items, run_of_show_target, run_of_show_skipped, venue_id, venue_created, client_id, organizer_contact, tasks_created, and 8 more fields } }; a link attached to an existing gig: { event_id, source_url, applied { run_of_show_items, run_of_show_target, run_of_show_skipped, venue_id, venue_created, client_id, organizer_contact, tasks_created, and 8 more fields } }; remove_page: { event_id, removed } } | |
| error | No | when ok is false |