get_visit
For a Live Visit Feed site: one visit's last feed event, read from the edge while the visit is in progress and from the store after it ends. Pass the visit_id a feed event, list_live_visits or list_agent_visits carries. It needs an API key from the developer console, which holds the visits permission, and the feed turned on for the site; a conversion site's credential is refused with not_feed_site. A visit in progress is readable from the moment it opens its feed, and the answer says live: true: the event was read from the edge, which still holds the visit. Otherwise the stored event is returned, with live: false. An event is stored at an exit signal, at a conversion and when the visit ends. So if the edge cannot be reached, a visit in progress shows a stored event that can be minutes old, or answers not_found when none was stored yet. as_of says when the event was built. A very long narrative keeps its last 2,000 characters. preview_score is a score trained on purchases, not on the site's goals, and is null unless the site turned scoring on. When a model has cleared its quality gate for the site (its own, or until then the starting model pooled across sites, model.site = pooled), interest is that model's score for the visit, 0 to 1, with model naming the model, under the same consent, and preview_score is null; interest and model are null otherwise. control_group: true marks the permanent holdout: Cromanion never acts on those visits, and the feed still describes them. A visit later judged a bot keeps the event it was sent. 60 calls an hour per key, shared with get_page_attention and list_agent_visits; every call is on the developer's record before it runs.
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": {
"visit_id": "<visit_id>"
},
"name": "get_visit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| visit_id | Yes | The `vis_…` id from a feed event, from list_live_visits or from list_agent_visits. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| live | Yes | true: the event was read from the edge, which still holds the visit. false: it is the stored copy. | |
| as_of | Yes | ISO. When the event was built, on the edge's clock. | |
| event | Yes | The feed event: type (visit.started · visit.moment · visit.converted · visit.ended), event_id, site, visit_id, elapsed_s, control_group, moment `{kind, page}`, interest, model, preview_score, visitor, narrative, attention, signals, goal. | |
| read_me | Yes |