forked from mvanhorn/printing-press-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtools-manifest.json
More file actions
554 lines (554 loc) · 17 KB
/
Copy pathtools-manifest.json
File metadata and controls
554 lines (554 loc) · 17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
{
"api_name": "safari-history",
"base_url": "",
"description": "Read-only tools over a local Safari history snapshot index.",
"mcp_ready": "full",
"http_transport": "standard",
"auth": {
"type": "none"
},
"required_headers": [],
"tools": [
{
"name": "search",
"description": "Full-text (FTS5) search over visited URLs, page titles, and search terms, ranked by relevance. Required: query. Optional: domain, device, since, limit. Returns matching visits with URL, title, visit time, and visit count. Prefer this for keyword lookups; use 'visited' when checking one specific URL/domain.",
"method": "GET",
"path": "/search",
"no_auth": true,
"params": [
{
"name": "query",
"type": "string",
"location": "query",
"description": "Search query",
"required": true
},
{
"name": "domain",
"type": "string",
"location": "query",
"description": "Domain filter"
},
{
"name": "device",
"type": "string",
"location": "query",
"description": "Device filter"
},
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "list",
"description": "List recent individual visits from the synced snapshot, newest first. Optional filters: since/until window, domain, device, transition, min_visits, limit. Returns per-visit URL, title, visit time, and visit count. Use 'domains' or 'report' for aggregates instead of raw rows.",
"method": "GET",
"path": "/list",
"no_auth": true,
"params": [
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "until",
"type": "string",
"location": "query",
"description": "Until window"
},
{
"name": "domain",
"type": "string",
"location": "query",
"description": "Domain filter"
},
{
"name": "device",
"type": "string",
"location": "query",
"description": "Device filter"
},
{
"name": "transition",
"type": "string",
"location": "query",
"description": "Transition filter"
},
{
"name": "min_visits",
"type": "int",
"location": "query",
"description": "Minimum visits"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "domains",
"description": "Rank the most-visited registrable domains over the --since window, with page counts, visit sums, and a productive/neutral/distracting category per domain. Optional: since, device, limit. Returns one ranked row per domain.",
"method": "GET",
"path": "/domains",
"no_auth": true,
"params": [
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "device",
"type": "string",
"location": "query",
"description": "Device filter"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "searches",
"description": "List the keyword search-engine queries the user ran over the --since window, optionally filtered by --domain. Optional: since, domain, device, limit. Returns each query term with its engine and visit time. Note: unavailable on Safari, which omits search terms from History.db (reports unavailable).",
"method": "GET",
"path": "/searches",
"no_auth": true,
"params": [
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "domain",
"type": "string",
"location": "query",
"description": "Domain filter"
},
{
"name": "device",
"type": "string",
"location": "query",
"description": "Device filter"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "downloads",
"description": "List downloaded files over the --since window with filename, size, MIME type, and download state. Optional: since, device, limit. Note: unavailable on Safari, which omits downloads from History.db (reports unavailable).",
"method": "GET",
"path": "/downloads",
"no_auth": true,
"params": [
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "device",
"type": "string",
"location": "query",
"description": "Device filter"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "visited",
"description": "Check whether a specific URL or domain was visited, returning first/last seen, total and typed visit counts, and referrer examples. Required: target (URL or domain). Optional: limit. Use 'search' for keyword lookups across many pages instead.",
"method": "GET",
"path": "/visited",
"no_auth": true,
"params": [
{
"name": "target",
"type": "string",
"location": "query",
"description": "URL or domain",
"required": true
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "report",
"description": "Summarize browsing activity over the --since window: per-day and per-hour visit counts, top domains, and a productive/neutral/distracting split. Optional: since, device, limit. Use 'profile' for a higher-level behavioral summary instead.",
"method": "GET",
"path": "/report",
"no_auth": true,
"params": [
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "device",
"type": "string",
"location": "query",
"description": "Device filter"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "heatmap",
"description": "Render a weekday-by-hour activity heatmap of visit counts over the --since window. Optional: since, device, limit. Returns a 7x24 grid of counts (request --json for the raw grid). Shows when during the week the user browses most.",
"method": "GET",
"path": "/heatmap",
"no_auth": true,
"params": [
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "device",
"type": "string",
"location": "query",
"description": "Device filter"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "journeys",
"description": "List the browser's own topic clusters (Journeys) over the --since window, with cluster labels and top pages. Optional: since, limit. Note: unavailable on Safari, which has no journeys tables (reports unavailable); use 'topic' for FTS-based topic grouping instead.",
"method": "GET",
"path": "/journeys",
"no_auth": true,
"params": [
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "timeline",
"description": "Reconstruct ordered browsing sessions for a date or since/until window, splitting into sessions on a --gap idle threshold (e.g. 30m). Optional: since, until, device, gap, limit. Returns sessions with their ordered page visits. Use for 'what was I doing on <day>' narratives.",
"method": "GET",
"path": "/timeline",
"no_auth": true,
"params": [
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window or date"
},
{
"name": "until",
"type": "string",
"location": "query",
"description": "Until date"
},
{
"name": "device",
"type": "string",
"location": "query",
"description": "Device filter"
},
{
"name": "gap",
"type": "string",
"location": "query",
"description": "Session gap"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "rabbitholes",
"description": "Find browsing sessions over the --since window that started on productive pages and drifted into distracting ones, split on a --gap idle threshold. Optional: since, device, gap, limit. Note: unavailable on Safari, which omits navigation transition types from History.db (reports unavailable).",
"method": "GET",
"path": "/rabbitholes",
"no_auth": true,
"params": [
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "device",
"type": "string",
"location": "query",
"description": "Device filter"
},
{
"name": "gap",
"type": "string",
"location": "query",
"description": "Session gap"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "dwell",
"description": "Estimate time-on-site per domain over the --since window by differencing consecutive visit timestamps, capping each visit's dwell at --gap (default 30m). Optional: since, device, gap, limit. Returns ranked domains with estimated total dwell. Note: an inference from visit gaps, not a precise measurement.",
"method": "GET",
"path": "/dwell",
"no_auth": true,
"params": [
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "device",
"type": "string",
"location": "query",
"description": "Device filter"
},
{
"name": "gap",
"type": "string",
"location": "query",
"description": "Dwell cap gap"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "graph",
"description": "Build a navigation graph of page nodes and referrer edges (which page led to which) over the --since window. Optional: since, domain, device, format (json|dot for Graphviz), limit. Note: edges are sparse on Safari, which lacks from_visit referrer links in History.db.",
"method": "GET",
"path": "/graph",
"no_auth": true,
"params": [
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "domain",
"type": "string",
"location": "query",
"description": "Domain filter"
},
{
"name": "device",
"type": "string",
"location": "query",
"description": "Device filter"
},
{
"name": "format",
"type": "string",
"location": "query",
"description": "json|dot"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "profile",
"description": "Summarize the user's browsing self over the --since window: peak hours, busiest weekday, top domains, and the productive/neutral/distracting split. Optional: since, device, limit. The highest-level behavioral summary; use 'report' for raw per-day/per-hour counts.",
"method": "GET",
"path": "/profile",
"no_auth": true,
"params": [
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "device",
"type": "string",
"location": "query",
"description": "Device filter"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "devices",
"description": "List visit-origin buckets (this-device vs synced) with visit counts, first/last seen, and top domains. Optional: limit. Note: Safari reports a single local origin and a synced bucket, with no per-device identity (unlike Chrome). Use the 'device' filter on other commands to scope by origin.",
"method": "GET",
"path": "/devices",
"no_auth": true,
"params": [
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "topic",
"description": "Gather everything the user browsed about a named topic over the --since window via full-text page matches, merging in the browser's Journeys clusters when the source has them. Required: name. Optional: since, limit. Returns the matching pages grouped under the topic.",
"method": "GET",
"path": "/topic",
"no_auth": true,
"params": [
{
"name": "name",
"type": "string",
"location": "query",
"description": "Topic name",
"required": true
},
{
"name": "since",
"type": "string",
"location": "query",
"description": "Since window"
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "sql",
"description": "Run a read-only SELECT query against the snapshot's history tables for custom analysis the other tools don't cover. Required: query (non-SELECT statements are rejected). Optional: limit. Returns the result rows as JSON. The connection is enforced read-only via PRAGMA query_only.",
"method": "GET",
"path": "/sql",
"no_auth": true,
"params": [
{
"name": "query",
"type": "string",
"location": "query",
"description": "SELECT query",
"required": true
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Row limit"
}
]
},
{
"name": "sync",
"description": "Snapshot the live Safari history DB into the local cache and rebuild the FTS index; run this first so the read tools have fresh data. Optional: profile, accumulate (pass true to also append into the durable archive). Writes local state (not read-only). Returns the synced page/visit counts.",
"method": "POST",
"path": "/sync",
"no_auth": true,
"params": [
{
"name": "profile",
"type": "string",
"location": "query",
"description": "Profile name"
}
]
},
{
"name": "doctor",
"description": "Health-check the Safari history source and the local snapshot: reports whether the source DB is reachable, snapshot freshness, row counts, and archive state. Optional: profile. Run this to diagnose empty results or 'db not found' errors before other tools.",
"method": "GET",
"path": "/doctor",
"no_auth": true,
"params": [
{
"name": "profile",
"type": "string",
"location": "query",
"description": "Profile name"
}
]
}
]
}