initialSetup
"History Messages".InitialSetupRequest
Configures initial history system settings.
Types:
{
"locale": "en",
"env": "production",
"platform": {
"name": "macos"
}
}
getRanges
"History Messages".GetRangesRequest
Retrieves available time ranges for history filtering.
Types:
{
"ranges": [
{
"id": "today",
"count": 13
},
{
"id": "yesterday",
"count": 10
},
{
"id": "monday",
"count": 2
},
{
"id": "older",
"count": 120
}
]
}
query
"History Messages".QueryRequest
Queries history items with filtering and pagination.
Types:
params for a query: (note: can be an empty string!)
{
"query": {
"term": "example.com"
},
"offset": 0,
"limit": 50,
"source": "initial"
}
params for a range, note: the values here will match what you returned from getRanges
{
"query": {
"range": "today"
},
"offset": 0,
"limit": 50,
"source": "initial"
}
Response, note: always return the same query I sent:
{
"info": {
"finished": false,
"query": {
"term": "example.com"
}
},
"value": [
{
"id": "12345",
"dateRelativeDay": "Today - Wednesday 15 January 2025",
"dateShort": "15 Jan 2025",
"dateTimeOfDay": "11:01",
"domain": "example.com",
"etldPlusOne": "example.com",
"title": "Example Website",
"url": "https://example.com/page",
"favicon": {
"src": "...",
"maxAvailableSize": 64
}
}
]
}
deleteRange
{ action: 'delete' }
{ action: 'none' }
params
{
"range": "today"
}
response
{
"action": "delete"
}
deleteDomain
{ action: 'delete' }
{ action: 'none' }
params
{
"domain": "youtube.com"
}
response
{
"action": "delete"
}
deleteTerm
{ action: 'delete' }
{ action: 'none' }
params
{
"term": "youtube"
}
response
{
"action": "delete"
}
response, if deleted
{
"action": "delete"
}
response, otherwise
{
"action": "none"
}
entries_menu
"History Messages".EntriesMenuRequest
Sent when a right-click is issued on a section title (or when the three-dots button is clicked)
Types:
params
{
"ids": ["abc", "def"]
}
response, if deleted
{
"action": "delete"
}
response, to trigger a domain search
{
"action": "domain-search"
}
response, otherwise
{
"action": "none"
}
entries_delete
"History Messages".EntriesDeleteRequest "History Messages".EntriesDeleteRequest
Sent when the delete key is pressed on an item, or a group of items
Types:
Note: if a single id
is sent, no modal/confirmation should be shown - but you must
still reply with an "History Messages".ActionResponse when the action was completed.
If multiple id
s are sent, then present a modal window for confirmation, eventually
responding to the message with "History Messages".ActionResponse
open
example payload
{
"url": "https://example.com/path",
"target": "same-tab"
}
{
"url": "https://example.com/path",
"target": "new-tab"
}
reportInitException
"History Messages".ReportInitExceptionNotification
Reports initialization errors in the history system.
{
"message": "Failed to initialize history database"
}
reportPageException
"History Messages".ReportPageExceptionNotification
Reports errors during page history operations.
{
"message": "Failed to load page history"
}