kontexta 4.6.3 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
- package/bundle/standalone/apps/web/.next/app-build-manifest.json +45 -45
- package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +9 -9
- package/bundle/standalone/apps/web/.next/build-manifest.json +2 -2
- package/bundle/standalone/apps/web/.next/prerender-manifest.json +20 -20
- package/bundle/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/_not-found.html +1 -1
- package/bundle/standalone/apps/web/.next/server/app/_not-found.rsc +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/about/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/clip/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/folders/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/profile/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/version-check/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/welcome/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/page.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +2 -2
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +1 -1
- package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +9 -9
- package/bundle/standalone/apps/web/.next/server/pages/404.html +1 -1
- package/bundle/standalone/apps/web/.next/server/pages/500.html +1 -1
- package/bundle/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/{page-efac40829f44c8a7.js → page-67aff4652e571aa1.js} +1 -1
- package/bundle/standalone/apps/web/package.json +4 -4
- package/bundle/standalone/apps/web/src/lib/mcp-tools.json +128 -100
- package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +90 -90
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +22 -22
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +71 -71
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js +2 -2
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +6 -6
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/package.json +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-block.md +90 -90
- package/bundle/standalone/node_modules/kxta-core/package.json +1 -1
- package/bundle/standalone/node_modules/kxta-publish/package.json +2 -2
- package/bundle/standalone/package.json +1 -1
- package/package.json +1 -1
- /package/bundle/standalone/apps/web/.next/static/{iEp-Xd5BTnFksnopDKIQJ → Na5FCljVLhoIUnyjNShuM}/_buildManifest.js +0 -0
- /package/bundle/standalone/apps/web/.next/static/{iEp-Xd5BTnFksnopDKIQJ → Na5FCljVLhoIUnyjNShuM}/_ssgManifest.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-09-
|
|
2
|
+
"generatedAt": "2026-09-13T21:50:39.384Z",
|
|
3
3
|
"tools": [
|
|
4
4
|
{
|
|
5
|
-
"name": "refresh_session_context",
|
|
5
|
+
"name": "admin.refresh_session_context",
|
|
6
6
|
"description": "Re-read the session context (profile, upcoming events within 7d, conflicts, freshness nudge) as it stands NOW. Call this when the user just edited their profile or added/moved calendar events and you want the current picture instead of the snapshot taken at session start. Read-only; no side effects. Returns the same block Kontexta sent as MCP instructions at session start.",
|
|
7
7
|
"inputSchema": {
|
|
8
8
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"name": "
|
|
17
|
+
"name": "journal.append",
|
|
18
18
|
"description": "Append a timestamped text entry to today's daily journal file in the Knowledge Base. Creates the file if it doesn't already exist. Both calls on the same calendar day return the same file_id. Returns { file_id }.",
|
|
19
19
|
"inputSchema": {
|
|
20
20
|
"type": "object",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
"name": "
|
|
42
|
+
"name": "files.create",
|
|
43
43
|
"description": "Create a new markdown, mermaid, or HTML file in the knowledge base or project. This operation writes a new file to disk and adds it to the local SQLite FTS5 index. Destination can be 'knowledge' (global KB), 'project' (reference file inside a project repo), or 'kontexta' (internal Kontexta schema file). If destination is 'project' or 'kontexta', project_id is strictly required. If destination is 'knowledge', 'kind' is strictly required — pick 'dictionary' (authoritative source-of-truth) or 'note' (informational snapshot); see the kind param for the rubric. No external auth required. Rate limits do not apply (local operation). Returns the created file metadata including its new ID, path, and estimated tokens. If the destination directory does not exist, it will be created automatically. Use this tool to instantiate new contextual documents or notes. To modify an existing file, use 'update_file' instead. Parameters: 'destination' dictates required fields; if 'project' or 'kontexta', 'project_id' must be a valid integer; if 'knowledge', 'kind' must be 'dictionary' or 'note'. 'tags' and 'folder' are optional. Pass format='mmd' to create a Mermaid diagram file (.mmd) or format='html' for HTML reports; defaults to 'md'.",
|
|
44
44
|
"inputSchema": {
|
|
45
45
|
"type": "object",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
"name": "
|
|
110
|
+
"name": "resources.add_report",
|
|
111
111
|
"description": "Write an image or other binary resource into the shared reports/resources/ folder. Returns { filename, size, src, url } — embed the report's <img>/<a> tags with `src` exactly as given (e.g. `<img src=\"resources/chart.png\">`); it is the only form that resolves correctly both in the dashboard viewer and in PDF/PNG export. Do not use `url` inside report HTML — it only works in the dashboard. Bytes are passed base64-encoded.",
|
|
112
112
|
"inputSchema": {
|
|
113
113
|
"type": "object",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
|
-
"name": "
|
|
136
|
+
"name": "resources.list_reports",
|
|
137
137
|
"description": "List all files currently stored under reports/resources/. Returns filename, size in bytes, and served URL.",
|
|
138
138
|
"inputSchema": {
|
|
139
139
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -145,13 +145,14 @@
|
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
|
-
"name": "
|
|
148
|
+
"name": "resources.delete_report",
|
|
149
149
|
"description": "Delete a file from reports/resources/. No-op if it doesn't exist.",
|
|
150
150
|
"inputSchema": {
|
|
151
151
|
"type": "object",
|
|
152
152
|
"properties": {
|
|
153
153
|
"filename": {
|
|
154
|
-
"type": "string"
|
|
154
|
+
"type": "string",
|
|
155
|
+
"description": "Filename (relative) of the resource to delete from reports/resources/."
|
|
155
156
|
}
|
|
156
157
|
},
|
|
157
158
|
"required": [
|
|
@@ -165,13 +166,14 @@
|
|
|
165
166
|
}
|
|
166
167
|
},
|
|
167
168
|
{
|
|
168
|
-
"name": "export_report",
|
|
169
|
+
"name": "resources.export_report",
|
|
169
170
|
"description": "Export an existing HTML report as PDF or PNG. Returns { url } for the web-served download (requires an authenticated dashboard request) by default. Set inline_bytes=true to render in-process and get { bytes_base64 } instead — only available when running via the full `kontexta` CLI, not the standalone kontexta-mcp package; falls back to { url } with a note if unavailable.",
|
|
170
171
|
"inputSchema": {
|
|
171
172
|
"type": "object",
|
|
172
173
|
"properties": {
|
|
173
174
|
"id": {
|
|
174
|
-
"type": "number"
|
|
175
|
+
"type": "number",
|
|
176
|
+
"description": "File ID of the HTML report to export."
|
|
175
177
|
},
|
|
176
178
|
"format": {
|
|
177
179
|
"type": "string",
|
|
@@ -179,11 +181,13 @@
|
|
|
179
181
|
"pdf",
|
|
180
182
|
"png"
|
|
181
183
|
],
|
|
182
|
-
"default": "pdf"
|
|
184
|
+
"default": "pdf",
|
|
185
|
+
"description": "Output format: 'pdf' or 'png'."
|
|
183
186
|
},
|
|
184
187
|
"inline_bytes": {
|
|
185
188
|
"type": "boolean",
|
|
186
|
-
"default": false
|
|
189
|
+
"default": false,
|
|
190
|
+
"description": "If true, render in-process and return raw bytes (base64). Only available in the full kontexta CLI bundle; falls back to {url} otherwise."
|
|
187
191
|
}
|
|
188
192
|
},
|
|
189
193
|
"required": [
|
|
@@ -197,7 +201,7 @@
|
|
|
197
201
|
}
|
|
198
202
|
},
|
|
199
203
|
{
|
|
200
|
-
"name": "
|
|
204
|
+
"name": "files.read",
|
|
201
205
|
"description": "Read one file's full body and metadata by ID. Read-only; no side effects, auth, or rate limits. Returns title, path, content, tags, est_tokens (so you can budget context before opening more files), and timestamps. Throws if the ID is unknown. Use for a single known file. Prefer `describe_file` to inspect without paying body tokens; `read_files` for batches; `read_file_lines`/`read_section` for partial reads; `read_file_by_path` when you only have the absolute path.",
|
|
202
206
|
"inputSchema": {
|
|
203
207
|
"type": "object",
|
|
@@ -218,7 +222,7 @@
|
|
|
218
222
|
}
|
|
219
223
|
},
|
|
220
224
|
{
|
|
221
|
-
"name": "
|
|
225
|
+
"name": "files.read_many",
|
|
222
226
|
"description": "Batch read up to 200 files by ID in one call. Returns per-file annotated records, an aggregate `total_est_tokens`, and an isolated `errors[]` (one bad ID does NOT abort the batch). Read-only; no side effects, auth, or rate limits. Use instead of looping `read_file` to halve round-trips and get the combined token cost upfront. For >200 IDs, page yourself.",
|
|
223
227
|
"inputSchema": {
|
|
224
228
|
"type": "object",
|
|
@@ -244,7 +248,7 @@
|
|
|
244
248
|
}
|
|
245
249
|
},
|
|
246
250
|
{
|
|
247
|
-
"name": "
|
|
251
|
+
"name": "files.describe",
|
|
248
252
|
"description": "Return everything ABOUT a file without pulling its content (no token cost from the body). Tags, size, est_tokens, history depth, related-file ids, backlinks, project, folder, last edited. Operates locally with no auth or rate limits. Use this when you'd otherwise chain read_file + list_tags + get_history + find_related just to decide whether to actually read the file. Parameters: 'id' must be a valid integer file ID.",
|
|
249
253
|
"inputSchema": {
|
|
250
254
|
"type": "object",
|
|
@@ -265,7 +269,7 @@
|
|
|
265
269
|
}
|
|
266
270
|
},
|
|
267
271
|
{
|
|
268
|
-
"name": "
|
|
272
|
+
"name": "files.read_lines",
|
|
269
273
|
"description": "Return a 1-indexed inclusive line slice of a file. Out-of-range bounds clamp silently to the file's actual length; `to < from` throws. Read-only; no side effects, auth, or rate limits. Returns the snippet plus its size_bytes and est_tokens. Use to inspect a stack-trace region or a chunk of a large file without pulling the whole body. Prefer `read_section` if you know the heading, `grep_in_file` if you know a pattern but not the line number.",
|
|
270
274
|
"inputSchema": {
|
|
271
275
|
"type": "object",
|
|
@@ -298,7 +302,7 @@
|
|
|
298
302
|
}
|
|
299
303
|
},
|
|
300
304
|
{
|
|
301
|
-
"name": "
|
|
305
|
+
"name": "files.grep",
|
|
302
306
|
"description": "Match a JS regex against one file's lines and return matched lines with line numbers (capped: default 100, max 500). Catches what FTS misses: URLs, hyphenated terms, code identifiers. Read-only; no side effects, auth, or rate limits. Invalid regex throws `invalid regex`. Returns `{matches, match_count, truncated}`. Use after `read_file_outline` when you know the file but need a specific reference; for cross-file regex use `regex_search`; for keyword/concept search use `search`.",
|
|
303
307
|
"inputSchema": {
|
|
304
308
|
"type": "object",
|
|
@@ -334,7 +338,7 @@
|
|
|
334
338
|
}
|
|
335
339
|
},
|
|
336
340
|
{
|
|
337
|
-
"name": "regex_search",
|
|
341
|
+
"name": "files.regex_search",
|
|
338
342
|
"description": "Match a JS regex against the body of every file in scope (project, KB, or all) and return per-file hits with line numbers. Slower than FTS `search` because it reads each file's content; use only when FTS misses substrings, URLs, or code identifiers. Read-only; no side effects, auth, or rate limits. Capped at 500 files / 10 hits per file by default; the response reports `files_truncated` and per-file truncation so the agent can re-scope. `project_id: null` = KB only; omit = everywhere; `kind` narrows to one content class. Invalid regex throws.",
|
|
339
343
|
"inputSchema": {
|
|
340
344
|
"type": "object",
|
|
@@ -387,7 +391,7 @@
|
|
|
387
391
|
}
|
|
388
392
|
},
|
|
389
393
|
{
|
|
390
|
-
"name": "
|
|
394
|
+
"name": "files.update",
|
|
391
395
|
"description": "Update the entire content of an existing file by its ID. This replaces the file's content on disk and triggers an FTS5 re-index. Returns the updated file metadata including new estimated token counts. Operates locally with no external auth or rate limits. If you only need to modify a single section without replacing the entire file, use 'update_file_section' instead to save context budget. Parameters: 'id' must be a valid integer file ID. 'content' is the complete markdown string that will replace the file.",
|
|
392
396
|
"inputSchema": {
|
|
393
397
|
"type": "object",
|
|
@@ -413,7 +417,7 @@
|
|
|
413
417
|
}
|
|
414
418
|
},
|
|
415
419
|
{
|
|
416
|
-
"name": "
|
|
420
|
+
"name": "files.delete",
|
|
417
421
|
"description": "DESTRUCTIVE. Permanently delete one file by ID. KB files are unlinked from disk AND removed from the FTS5 index; project reference files only have their index entry removed (the file on disk is left alone so the watcher does not fight your editor). Not idempotent — deleting an unknown ID throws. No external auth or rate limits. Returns `{success: true}`. Use only when the file is truly obsolete; to deprioritise without losing data, untag (`remove_tags`) or unfavorite (`set_favorite`) instead. Bulk variant: `delete_files`.",
|
|
418
422
|
"inputSchema": {
|
|
419
423
|
"type": "object",
|
|
@@ -434,7 +438,7 @@
|
|
|
434
438
|
}
|
|
435
439
|
},
|
|
436
440
|
{
|
|
437
|
-
"name": "
|
|
441
|
+
"name": "files.list",
|
|
438
442
|
"description": "List file metadata with optional filters (project_id, tag, favorite, folder, untagged, kind) and pagination. Read-only; no side effects, auth, or rate limits. Each row is annotated with tags, est_tokens, size_bytes, and content_class; the response includes `total_est_tokens` so you can budget before reading bodies. `project_id: null` returns ONLY Knowledge Base files; omit the field to span everything; `kind` narrows to one content class. Use to browse known structure; for keyword/content lookup use `search`; for a denser whole-vault dump use `project_map`.",
|
|
439
443
|
"inputSchema": {
|
|
440
444
|
"type": "object",
|
|
@@ -489,7 +493,7 @@
|
|
|
489
493
|
}
|
|
490
494
|
},
|
|
491
495
|
{
|
|
492
|
-
"name": "search",
|
|
496
|
+
"name": "files.search",
|
|
493
497
|
"description": "Full-text (SQLite FTS5) keyword search across files. Returns ranked matches with inline match_excerpt and title_highlight (no follow-up `read_file` needed for snippets) plus tags, est_tokens, size_bytes, content_class, and aggregate `total_est_tokens`. Read-only; no side effects, auth, or rate limits. Ordering: dictionary hits sort above everything else for the same query (dictionary-wins on conflict), then BM25 rank. FTS is tokenised: it WILL miss URLs, hyphenated terms, and partial substrings — fall back to `regex_search` for those. `project_id: null` searches only the KB; omit the field to span everything; `tags[]` requires ALL listed tags to match; `kind` narrows to one content class. For prompt-ready bundled bodies use `bundle_search`.",
|
|
494
498
|
"inputSchema": {
|
|
495
499
|
"type": "object",
|
|
@@ -538,7 +542,7 @@
|
|
|
538
542
|
}
|
|
539
543
|
},
|
|
540
544
|
{
|
|
541
|
-
"name": "bundle_search",
|
|
545
|
+
"name": "files.bundle_search",
|
|
542
546
|
"description": "Run an FTS search and concatenate matched bodies into a single prompt-ready bundle (XML `<document>` blocks or markdown headers + fences) capped at `max_tokens`. Files are added in rank order (dictionary-wins first, then BM25) until the next would exceed the budget; the rest go to `skipped[]`. Read-only; no side effects, auth, or rate limits. Use instead of `search` + N×`read_file` when you need several related files as one context blob. Defaults: format=xml, max_tokens=50000. `project_id: null` = KB only; `tags[]` requires ALL to match; `kind` narrows to one content class.",
|
|
543
547
|
"inputSchema": {
|
|
544
548
|
"type": "object",
|
|
@@ -602,7 +606,7 @@
|
|
|
602
606
|
}
|
|
603
607
|
},
|
|
604
608
|
{
|
|
605
|
-
"name": "
|
|
609
|
+
"name": "tags.add",
|
|
606
610
|
"description": "Append tags to ONE file. Additive — existing tags are preserved; re-adding an existing tag is a no-op (idempotent per tag). New tag names auto-create rows in the global `tags` table. Persists to local SQLite. No external auth or rate limits. Returns `{success: true}`; throws if file_id is unknown. Use to label a single file. To tag every file matching a query in one call use `tag_search_results`; to remove tags use `remove_tags`.",
|
|
607
611
|
"inputSchema": {
|
|
608
612
|
"type": "object",
|
|
@@ -631,7 +635,7 @@
|
|
|
631
635
|
}
|
|
632
636
|
},
|
|
633
637
|
{
|
|
634
|
-
"name": "
|
|
638
|
+
"name": "tags.remove",
|
|
635
639
|
"description": "Detach one or more tag IDs from ONE file. Destructive on the link only — does NOT delete the file or the global tag definition (orphan tags survive in `list_tags`). Idempotent: removing an already-absent tag is a no-op. No external auth or rate limits. Returns `{success: true}`. Note: takes tag IDs (integers), not names — fetch them via `list_tags`. To remove ALL tags from many files via a query, see `tag_search_results` (additive only) — there is no bulk-untag-by-query tool.",
|
|
636
640
|
"inputSchema": {
|
|
637
641
|
"type": "object",
|
|
@@ -660,7 +664,7 @@
|
|
|
660
664
|
}
|
|
661
665
|
},
|
|
662
666
|
{
|
|
663
|
-
"name": "set_favorite",
|
|
667
|
+
"name": "tags.set_favorite",
|
|
664
668
|
"description": "Set or clear the favorite flag on one file (idempotent — re-setting the same value is a no-op; not a toggle, you pass the desired state). Persists to local SQLite. No external auth or rate limits. Returns `{success: true}`. Use to curate quick-access pins; `list_files`/`search`/`bundle_search` accept `favorite: true` to filter to the pinned set.",
|
|
665
669
|
"inputSchema": {
|
|
666
670
|
"type": "object",
|
|
@@ -686,7 +690,7 @@
|
|
|
686
690
|
}
|
|
687
691
|
},
|
|
688
692
|
{
|
|
689
|
-
"name": "
|
|
693
|
+
"name": "tags.list",
|
|
690
694
|
"description": "List every tag in the global SQLite database with id, name, and applied count. Read-only; no side effects, auth, or rate limits. Returns the entire taxonomy (not paginated). Use to discover existing labels before tagging (so you reuse rather than fork) or to find tag IDs to feed into `remove_tags`. For tags on a specific file, use `describe_file`.",
|
|
691
695
|
"inputSchema": {
|
|
692
696
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -698,7 +702,7 @@
|
|
|
698
702
|
}
|
|
699
703
|
},
|
|
700
704
|
{
|
|
701
|
-
"name": "
|
|
705
|
+
"name": "projects.list",
|
|
702
706
|
"description": "List every registered project with id, name, absolute path, and a derived `has_hands` flag (true when the path exists on disk AND contains a `kontexta.json`). Read-only; no side effects, auth, or rate limits. Use to find the project_id to pass to scoped tools (`search`, `list_files`, `commit_backup`, `refresh_index`, etc.). To register a new project use `register_project`; to inspect its Hands tools use `list_hands`.",
|
|
703
707
|
"inputSchema": {
|
|
704
708
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -710,7 +714,7 @@
|
|
|
710
714
|
}
|
|
711
715
|
},
|
|
712
716
|
{
|
|
713
|
-
"name": "
|
|
717
|
+
"name": "projects.register",
|
|
714
718
|
"description": "Register a new project and link it to the Kontexta knowledge system.\n\nSIDE EFFECTS: Writes project metadata to disk (persisted in the Kontexta data directory). Scans the project root recursively to discover and index all markdown files into the local database. Registers any kontexta.json-declared Hands tools found in the project root. This operation is idempotent — re-registering an existing project updates its metadata without data loss.\n\nAUTH / RATE LIMITS: None. Operates entirely on the local file system.\n\nPARAMETERS:\n- name: Human-readable project name.\n- path: Absolute path to the project root. Required. DO NOT guess or assume the path based on the active editor workspace unless the user explicitly asks to register the \"current\" or \"open\" project. If the user provides a project name but no path, ask them for the absolute path before calling this tool. Fails with a descriptive error if the path does not exist or is inaccessible.\n- description: Optional free-text description stored with the project metadata.\n\nRETURNS: A JSON object containing:\n- project: { id, name, path, description, created_at }\n- discovered_files_count: number of markdown files indexed\n- discovered_files: array of { path, est_tokens, size_bytes } for each file\n- total_est_tokens: estimated total token cost of all discovered files\n- hands: { found, tools_registered, tools_disabled, warnings }\n- warnings: array of non-fatal issues (e.g. scan failures, token budget exceeded)\n\nERROR CONDITIONS: Returns isError=true if path is missing or unresolvable. Scan failures are non-fatal and reported in warnings rather than as errors.",
|
|
715
719
|
"inputSchema": {
|
|
716
720
|
"type": "object",
|
|
@@ -740,7 +744,7 @@
|
|
|
740
744
|
}
|
|
741
745
|
},
|
|
742
746
|
{
|
|
743
|
-
"name": "onboard_agent",
|
|
747
|
+
"name": "admin.onboard_agent",
|
|
744
748
|
"description": "Write or update the kontexta workflow rules block in a project's agent context file(s). Idempotent — uses fenced markers + version to skip no-op writes.\n\nMANDATORY: This tool modifies project configuration files. You MUST seek explicit user consent before calling this tool. Set 'confirm: true' only after the user has agreed.\n\nPARAMETERS:\n- project_id: number, required.\n- confirm: boolean, required. Must be true to proceed.\n- files: string[], optional. Paths relative to project root. For update mode, defaults to recommendation.target_files. Ignored when files is empty AND target_agent is provided (create mode).\n- target_agent: enum claude-code | codex | gemini | cursor | continue | aider | cline | copilot | generic. Required when files is empty AND no context file currently exists. Picks the canonical filename and the starter scaffold.\n\nRETURNS: { written: [{ path, action: created|updated|skipped, version }], skipped: [{ path, reason }] }",
|
|
745
749
|
"inputSchema": {
|
|
746
750
|
"type": "object",
|
|
@@ -789,7 +793,7 @@
|
|
|
789
793
|
}
|
|
790
794
|
},
|
|
791
795
|
{
|
|
792
|
-
"name": "transfer_agent_context",
|
|
796
|
+
"name": "admin.transfer_agent_context",
|
|
793
797
|
"description": "COPY existing agent context files (CLAUDE.md, AGENTS.md, .cursor/rules/*.mdc, etc.) from a project's repo into Kontexta's per-project knowledge base so they're indexed by FTS5 and can be git-synced through Kontexta's own backup engine.\n\nThis tool ONLY COPIES. It never deletes or modifies the originals in your repo. After a successful transfer, the response includes the list of source paths so the user can manually remove them if desired. No tool argument, no flag, and no code path in this tool ever calls a destructive filesystem operation against `project.path`.\n\nMANDATORY: This tool writes new files into Kontexta's data dir. You MUST seek explicit user consent before calling. Set 'confirm: true' only after the user has agreed.\n\nPARAMETERS:\n- project_id: number, required. Project ID returned from register_project.\n- confirm: boolean, required. Must be true.\n- files: string[], optional. Project-relative paths to transfer. Omit or pass [] to transfer all detected agent context files (uses the same detection list as register_project / onboard_agent).\n\nRETURNS: { transferred: [{ source_path, kb_id, kb_path, est_tokens }], skipped: [{ source_path, reason }], next_action }\nSkip reasons: \"missing\" | \"symlink\" | \"outside_project\" | \"already_transferred_same_content\" | \"read_error\" | \"write_error\".\n\nIDEMPOTENT: re-running with the same files copies nothing if the content is unchanged — duplicate transfers are detected via SHA-256 hash comparison against existing project KB rows.",
|
|
794
798
|
"inputSchema": {
|
|
795
799
|
"type": "object",
|
|
@@ -822,7 +826,7 @@
|
|
|
822
826
|
}
|
|
823
827
|
},
|
|
824
828
|
{
|
|
825
|
-
"name": "commit_backup",
|
|
829
|
+
"name": "admin.commit_backup",
|
|
826
830
|
"description": "SIDE-EFFECTFUL — TOUCHES THE NETWORK. Sync the project's KB data into its git backup directory, create a commit, and `git push` to `origin`. AUTH: relies on the local user's git credentials (SSH agent, credential helper, etc.) — there is no in-server auth. Kontexta does not rate-limit, but the remote may. Idempotent in steady state: a no-op commit is skipped, but the push still runs. Throws if the project has no configured backup repo or if push fails (network, auth, conflict). Returns `{success, copied_files_count, copied_paths}`. Use after a batch of KB writes to get changes off-machine.",
|
|
827
831
|
"inputSchema": {
|
|
828
832
|
"type": "object",
|
|
@@ -843,7 +847,7 @@
|
|
|
843
847
|
}
|
|
844
848
|
},
|
|
845
849
|
{
|
|
846
|
-
"name": "clip_url",
|
|
850
|
+
"name": "resources.clip_url",
|
|
847
851
|
"description": "SIDE-EFFECTFUL — fetches an EXTERNAL URL and writes a NEW KB file. Downloads the page, extracts the main article via Readability, converts to markdown, and saves it under `knowledge/urlclips/`. Auto-classified as content_class='dictionary' (clipped external references are treated as authoritative reference material). NOT idempotent / no de-dup — re-clipping the same URL creates a second file. AUTH: anonymous by default; pass `headers` (e.g. `{Cookie: 'session=...'}` or `{Authorization: 'Bearer ...'}`) to clip behind logins. Kontexta does not rate-limit but the upstream may throttle. On auth-required pages returns isError with `code: AUTH_REQUIRED`, optional `login_url`, and a hint to retry with `headers`. Returns `{file_id, path, title, source}`. Use to ingest external docs into the KB.",
|
|
848
852
|
"inputSchema": {
|
|
849
853
|
"type": "object",
|
|
@@ -876,7 +880,7 @@
|
|
|
876
880
|
}
|
|
877
881
|
},
|
|
878
882
|
{
|
|
879
|
-
"name": "get_history",
|
|
883
|
+
"name": "files.get_history",
|
|
880
884
|
"description": "Return the git commit history for one file (newest first), each entry with hash, message, date, and author. Reads the file's owning repo: the project's git repo for project files, the KB backup repo for KB files. Read-only; no side effects, auth, or rate limits. Returns `{file_id, path, history}`; an empty array means the file has not been committed yet. Use to understand a file's evolution before editing or restoring. Pair with `get_diff` to see exact line changes; use `restore_file` to roll back.",
|
|
881
885
|
"inputSchema": {
|
|
882
886
|
"type": "object",
|
|
@@ -897,7 +901,7 @@
|
|
|
897
901
|
}
|
|
898
902
|
},
|
|
899
903
|
{
|
|
900
|
-
"name": "get_diff",
|
|
904
|
+
"name": "files.get_diff",
|
|
901
905
|
"description": "Return the unified diff of one file between two commit hashes (typically obtained from `get_history` for the same file). Read-only; no side effects, auth, or rate limits. Order matters — `commit_a` is treated as the earlier side; reversing the args inverts the diff. Throws if either hash is unknown to the file's repo. Use after `get_history` to see WHAT changed, not just THAT it changed.",
|
|
902
906
|
"inputSchema": {
|
|
903
907
|
"type": "object",
|
|
@@ -928,7 +932,7 @@
|
|
|
928
932
|
}
|
|
929
933
|
},
|
|
930
934
|
{
|
|
931
|
-
"name": "
|
|
935
|
+
"name": "files.restore",
|
|
932
936
|
"description": "DESTRUCTIVE. Overwrite a file's current on-disk content with the version recorded at a specific git commit, then re-index FTS. The hash MUST come from `get_history` for THIS file (foreign hashes throw). The current uncommitted content is lost unless it was already committed elsewhere. The file watcher may also pick up the change before this returns. No external auth or rate limits. Returns `{file_id, path, hash, success, message}`. Use only to undo accidental edits or recover a known-good version.",
|
|
933
937
|
"inputSchema": {
|
|
934
938
|
"type": "object",
|
|
@@ -954,7 +958,7 @@
|
|
|
954
958
|
}
|
|
955
959
|
},
|
|
956
960
|
{
|
|
957
|
-
"name": "
|
|
961
|
+
"name": "files.read_outline",
|
|
958
962
|
"description": "Return a flat list of markdown headings for one file (level, text, line, byteStart, byteEnd). Read-only; no side effects, auth, or rate limits. Use as a cheap probe before `read_section` or `update_file_section` so you don't spend tokens on the full body just to learn what sections exist. Empty outline means the file has no markdown headings (it may still have content — fall back to `read_file` or `read_file_lines`).",
|
|
959
963
|
"inputSchema": {
|
|
960
964
|
"type": "object",
|
|
@@ -975,7 +979,7 @@
|
|
|
975
979
|
}
|
|
976
980
|
},
|
|
977
981
|
{
|
|
978
|
-
"name": "read_section",
|
|
982
|
+
"name": "files.read_section",
|
|
979
983
|
"description": "Return the body of ONE heading (the heading line itself is excluded) plus level, line, size_bytes, and est_tokens. Heading match is case-insensitive but exact-string after trim — fuzzy / partial matches do NOT resolve. Returns isError if the heading is absent. Read-only; no side effects, auth, or rate limits. Pair with `read_file_outline` when you are unsure which headings exist; for non-heading line ranges use `read_file_lines`.",
|
|
980
984
|
"inputSchema": {
|
|
981
985
|
"type": "object",
|
|
@@ -1001,7 +1005,7 @@
|
|
|
1001
1005
|
}
|
|
1002
1006
|
},
|
|
1003
1007
|
{
|
|
1004
|
-
"name": "
|
|
1008
|
+
"name": "files.update_section",
|
|
1005
1009
|
"description": "Surgical write — replace the body of ONE heading without touching siblings. The heading line itself is preserved verbatim; only its body is rewritten. Persists via the same path as `update_file` (writes to disk → FTS reindex → git commit). Throws if the heading does not exist (this tool will NOT create a new section — append the section text via `update_file` first). Heading match is case-insensitive exact-string. No external auth or rate limits. Returns the updated file metadata. Use to make targeted edits without re-sending the whole body; for full-file replacement use `update_file`.",
|
|
1006
1010
|
"inputSchema": {
|
|
1007
1011
|
"type": "object",
|
|
@@ -1032,7 +1036,7 @@
|
|
|
1032
1036
|
}
|
|
1033
1037
|
},
|
|
1034
1038
|
{
|
|
1035
|
-
"name": "
|
|
1039
|
+
"name": "folders.list",
|
|
1036
1040
|
"description": "List folder paths under a project root (or the Knowledge Base when `project_id` is null/omitted). Returns `{folders: string[], base_path}` where `folders` are RELATIVE to `base_path`. Read-only; no side effects, auth, or rate limits. Throws if `project_id` references an unknown project. Use to discover where to drop a new file via `create_file`'s `folder` argument or to navigate vault structure; to actually create one use `create_folder`.",
|
|
1037
1041
|
"inputSchema": {
|
|
1038
1042
|
"type": "object",
|
|
@@ -1053,7 +1057,7 @@
|
|
|
1053
1057
|
}
|
|
1054
1058
|
},
|
|
1055
1059
|
{
|
|
1056
|
-
"name": "
|
|
1060
|
+
"name": "folders.create",
|
|
1057
1061
|
"description": "Create a folder under a project root or the KB. Idempotent — creating an existing folder succeeds. Nested paths like `notes/inbox` create intermediates. REJECTS: empty names, null bytes, leading path separators, and any segment equal to `..` (the call returns isError, no folder is touched). Side effect: a directory is mkdir'd on disk; no DB rows are written until a file lands inside. No external auth or rate limits. Returns `{path, base_path}`.",
|
|
1058
1062
|
"inputSchema": {
|
|
1059
1063
|
"type": "object",
|
|
@@ -1081,7 +1085,7 @@
|
|
|
1081
1085
|
}
|
|
1082
1086
|
},
|
|
1083
1087
|
{
|
|
1084
|
-
"name": "
|
|
1088
|
+
"name": "folders.delete",
|
|
1085
1089
|
"description": "DESTRUCTIVE — recursively delete a folder under the KB AND every file inside it (disk + FTS rows). REFUSES (returns isError) when `project_id` is supplied: deleting inside a registered project would race the file watcher and re-ingest the contents — remove project content via your editor instead. Same name validation as `create_folder`. Not recoverable from Kontexta after the call (only the git backup, if configured, retains it). No external auth or rate limits. Returns `{success: true}`.",
|
|
1086
1090
|
"inputSchema": {
|
|
1087
1091
|
"type": "object",
|
|
@@ -1109,7 +1113,7 @@
|
|
|
1109
1113
|
}
|
|
1110
1114
|
},
|
|
1111
1115
|
{
|
|
1112
|
-
"name": "
|
|
1116
|
+
"name": "files.move",
|
|
1113
1117
|
"description": "Move/rename a file. Destination 'new_path' must be absolute and resolve INSIDE the file's owning project or global knowledge directory. Cross-project moves are rejected. Alternative: pass `kind='dictionary'|'note'` (with no `new_path`) to move a KB file into the mirrored path in the other class tree — subfolder path is preserved. Operates locally with no auth or limits.",
|
|
1114
1118
|
"inputSchema": {
|
|
1115
1119
|
"type": "object",
|
|
@@ -1142,7 +1146,7 @@
|
|
|
1142
1146
|
}
|
|
1143
1147
|
},
|
|
1144
1148
|
{
|
|
1145
|
-
"name": "find_related",
|
|
1149
|
+
"name": "files.find_related",
|
|
1146
1150
|
"description": "Find other files sharing tags with the given file, ranked by `shared_tag_count` descending. Read-only; no side effects, auth, or rate limits. Returns annotated file rows with `shared_tag_count` and `shared_tags`. Empty result means the file has no tags or no other file shares them — try `search`/`regex_search` for content-based discovery, or `suggest_tags` to bootstrap labels first. `kind` narrows to one content class. Default limit 10.",
|
|
1147
1151
|
"inputSchema": {
|
|
1148
1152
|
"type": "object",
|
|
@@ -1177,7 +1181,7 @@
|
|
|
1177
1181
|
}
|
|
1178
1182
|
},
|
|
1179
1183
|
{
|
|
1180
|
-
"name": "
|
|
1184
|
+
"name": "files.create_many",
|
|
1181
1185
|
"description": "Batch variant of `create_file` — create up to 200 markdown, mermaid, or HTML files in one call. Each item follows the same rules: `project_id` required if `destination` is `project`/`kontexta`; `kind` ('dictionary' or 'note') required if `destination` is `knowledge`. SIDE EFFECTS: writes new files to disk and inserts FTS5 rows; missing folders are mkdir'd. Per-item failures are isolated to `errors[]` and the rest of the batch still commits — partial success is the norm, always inspect `error_count`. No external auth or rate limits. Returns `{created_count, error_count, created, errors}`. Use for bulk ingestion; for >200 items, page yourself. Pass format='mmd' on an item to create a Mermaid diagram file (.mmd) or 'html' for HTML reports; defaults to 'md'.",
|
|
1182
1186
|
"inputSchema": {
|
|
1183
1187
|
"type": "object",
|
|
@@ -1188,10 +1192,12 @@
|
|
|
1188
1192
|
"type": "object",
|
|
1189
1193
|
"properties": {
|
|
1190
1194
|
"title": {
|
|
1191
|
-
"type": "string"
|
|
1195
|
+
"type": "string",
|
|
1196
|
+
"description": "File title."
|
|
1192
1197
|
},
|
|
1193
1198
|
"content": {
|
|
1194
|
-
"type": "string"
|
|
1199
|
+
"type": "string",
|
|
1200
|
+
"description": "File body content (markdown, mermaid, or HTML depending on format)."
|
|
1195
1201
|
},
|
|
1196
1202
|
"destination": {
|
|
1197
1203
|
"type": "string",
|
|
@@ -1199,19 +1205,23 @@
|
|
|
1199
1205
|
"knowledge",
|
|
1200
1206
|
"project",
|
|
1201
1207
|
"kontexta"
|
|
1202
|
-
]
|
|
1208
|
+
],
|
|
1209
|
+
"description": "Storage destination: 'knowledge' for KB, 'project' for a project, 'kontexta' for app-internal."
|
|
1203
1210
|
},
|
|
1204
1211
|
"project_id": {
|
|
1205
|
-
"type": "number"
|
|
1212
|
+
"type": "number",
|
|
1213
|
+
"description": "Project ID — required when destination is 'project' or 'kontexta'."
|
|
1206
1214
|
},
|
|
1207
1215
|
"folder": {
|
|
1208
|
-
"type": "string"
|
|
1216
|
+
"type": "string",
|
|
1217
|
+
"description": "Relative folder path within the destination (e.g. 'notes/daily')."
|
|
1209
1218
|
},
|
|
1210
1219
|
"tags": {
|
|
1211
1220
|
"type": "array",
|
|
1212
1221
|
"items": {
|
|
1213
1222
|
"type": "string"
|
|
1214
|
-
}
|
|
1223
|
+
},
|
|
1224
|
+
"description": "Tags to apply to this file."
|
|
1215
1225
|
},
|
|
1216
1226
|
"format": {
|
|
1217
1227
|
"type": "string",
|
|
@@ -1219,7 +1229,8 @@
|
|
|
1219
1229
|
"md",
|
|
1220
1230
|
"mmd",
|
|
1221
1231
|
"html"
|
|
1222
|
-
]
|
|
1232
|
+
],
|
|
1233
|
+
"description": "File format: 'md' (default), 'mmd' (Mermaid diagram), or 'html' (report)."
|
|
1223
1234
|
},
|
|
1224
1235
|
"kind": {
|
|
1225
1236
|
"type": "string",
|
|
@@ -1253,7 +1264,7 @@
|
|
|
1253
1264
|
}
|
|
1254
1265
|
},
|
|
1255
1266
|
{
|
|
1256
|
-
"name": "
|
|
1267
|
+
"name": "files.delete_many",
|
|
1257
1268
|
"description": "DESTRUCTIVE batch — delete up to 500 files by ID in one call. Same physical-deletion rules as `delete_file` (KB files unlinked from disk; project reference files only de-indexed). Per-ID failures isolated to `errors[]`; the batch keeps going — partial success is the norm. Not idempotent — unknown IDs surface as per-item errors. No external auth or rate limits. Returns `{deleted_count, error_count, deleted, errors}`. To preview the set before deleting, run `list_files` with the same filter and confirm the IDs.",
|
|
1258
1269
|
"inputSchema": {
|
|
1259
1270
|
"type": "object",
|
|
@@ -1279,7 +1290,7 @@
|
|
|
1279
1290
|
}
|
|
1280
1291
|
},
|
|
1281
1292
|
{
|
|
1282
|
-
"name": "
|
|
1293
|
+
"name": "tags.search",
|
|
1283
1294
|
"description": "Bulk-tag — run an FTS `search` and append `add_tags` to every matching file in one call. Side effect: each match gets `addTags` applied (additive, idempotent per tag); the matched files themselves are NOT modified beyond their tag links. Per-file failures isolated to `errors[]`. No external auth or rate limits. There is NO dry-run flag, so ALWAYS run `search` with the same query first to verify the match set before tagging. The `tags[]` filter requires existing tags to ALL match (it scopes the search; it does not control which tags get added). Returns `{matched_count, tagged_count, tags_applied, tagged_ids, errors}`.",
|
|
1284
1295
|
"inputSchema": {
|
|
1285
1296
|
"type": "object",
|
|
@@ -1300,7 +1311,8 @@
|
|
|
1300
1311
|
"type": [
|
|
1301
1312
|
"number",
|
|
1302
1313
|
"null"
|
|
1303
|
-
]
|
|
1314
|
+
],
|
|
1315
|
+
"description": "Scope search to a specific project. Pass null for KB-only results."
|
|
1304
1316
|
},
|
|
1305
1317
|
"tags": {
|
|
1306
1318
|
"type": "array",
|
|
@@ -1310,7 +1322,8 @@
|
|
|
1310
1322
|
"description": "Filter — only matches that already carry ALL of these tags"
|
|
1311
1323
|
},
|
|
1312
1324
|
"favorite": {
|
|
1313
|
-
"type": "boolean"
|
|
1325
|
+
"type": "boolean",
|
|
1326
|
+
"description": "If true, restrict to favorited files only."
|
|
1314
1327
|
}
|
|
1315
1328
|
},
|
|
1316
1329
|
"required": [
|
|
@@ -1325,7 +1338,7 @@
|
|
|
1325
1338
|
}
|
|
1326
1339
|
},
|
|
1327
1340
|
{
|
|
1328
|
-
"name": "
|
|
1341
|
+
"name": "files.read_by_path",
|
|
1329
1342
|
"description": "Look up a file by its absolute on-disk path and return the same shape as `read_file`. The path must EXACTLY match what Kontexta indexed — no symlink resolution, no path normalisation beyond what the OS does, no trailing-slash tolerance. Returns isError if no row matches (the file may exist on disk but not be indexed — try `refresh_index`). Read-only; no side effects, auth, or rate limits. Use when an agent has a path from its working directory but no file ID; if you have the ID, prefer `read_file`.",
|
|
1330
1343
|
"inputSchema": {
|
|
1331
1344
|
"type": "object",
|
|
@@ -1346,7 +1359,7 @@
|
|
|
1346
1359
|
}
|
|
1347
1360
|
},
|
|
1348
1361
|
{
|
|
1349
|
-
"name": "stats",
|
|
1362
|
+
"name": "admin.stats",
|
|
1350
1363
|
"description": "Aggregate counts for a scope: `file_count`, `untagged_count`, `favorite_count`, `top_tags`. With `project_id` omitted (everything), also returns `by_project` breakdown. `include_token_total: true` stat()s every matching file on disk to compute a body-size estimate — measurably slower on large vaults; default false. `project_id: null` = KB only; omit = all. Read-only; no side effects, auth, or rate limits. Use as a cheap dashboard or to spot untagged content for cleanup; for live disk-vs-index drift use `diff_against_disk`.",
|
|
1351
1364
|
"inputSchema": {
|
|
1352
1365
|
"type": "object",
|
|
@@ -1377,7 +1390,7 @@
|
|
|
1377
1390
|
}
|
|
1378
1391
|
},
|
|
1379
1392
|
{
|
|
1380
|
-
"name": "
|
|
1393
|
+
"name": "tags.suggest",
|
|
1381
1394
|
"description": "Propose tags for a file by mining the existing tag corpus via FTS — picks distinctive terms from the file (≥4 chars, stopword-filtered) and returns tags applied to other files that score high on those terms. No LLM, no network. Already-applied tags are excluded so the suggestions are net-new. Read-only; no side effects, auth, or rate limits. Returns `{file_id, path, existing_tags, suggestions: [{tag, score, sources}]}`. Empty suggestions = no distinctive terms or no overlap with the existing taxonomy yet — bootstrap with `add_tags` first. Default limit 10, max 50. Suggestions are NOT auto-applied.",
|
|
1382
1395
|
"inputSchema": {
|
|
1383
1396
|
"type": "object",
|
|
@@ -1404,7 +1417,7 @@
|
|
|
1404
1417
|
}
|
|
1405
1418
|
},
|
|
1406
1419
|
{
|
|
1407
|
-
"name": "diff_against_disk",
|
|
1420
|
+
"name": "files.diff_against_disk",
|
|
1408
1421
|
"description": "Diagnose drift between one file's disk content and its FTS index. Status is one of `in_sync`, `diverged`, `disk_unreadable`, or `no_index_row`. On divergence returns sizes, line counts, the first divergent line number, and the disk vs index sample for that line — NOT a full diff (use `get_diff` for full diffs between commits). Read-only; no side effects, auth, or rate limits. Use when search results look stale; if status is `diverged` or `no_index_row`, run `refresh_index` to fix.",
|
|
1409
1422
|
"inputSchema": {
|
|
1410
1423
|
"type": "object",
|
|
@@ -1425,7 +1438,7 @@
|
|
|
1425
1438
|
}
|
|
1426
1439
|
},
|
|
1427
1440
|
{
|
|
1428
|
-
"name": "refresh_index",
|
|
1441
|
+
"name": "projects.refresh_index",
|
|
1429
1442
|
"description": "Reconcile the FTS index against disk. For a project (`project_id` set), re-runs `discoverFiles`. For the KB (`project_id` null/omitted), walks `knowledge/`, ingests new .md files, reindexes any whose content hash drifted, and PRUNES rows for files no longer on disk. SIDE-EFFECTFUL: writes/updates/deletes file and FTS rows (the prune is destructive on stale index rows but never deletes files from disk). Idempotent — running twice is a near no-op. Skips files >5MB and standard junk dirs (`node_modules`, `.git`, `dist`, `build`, etc.). No external auth or rate limits. Returns `{scope, newly_indexed, refreshed, pruned}`. Use after editing files outside Kontexta, or when `diff_against_disk` reports drift.",
|
|
1430
1443
|
"inputSchema": {
|
|
1431
1444
|
"type": "object",
|
|
@@ -1446,7 +1459,7 @@
|
|
|
1446
1459
|
}
|
|
1447
1460
|
},
|
|
1448
1461
|
{
|
|
1449
|
-
"name": "whats_new",
|
|
1462
|
+
"name": "admin.whats_new",
|
|
1450
1463
|
"description": "List files created or modified since a checkpoint. `since` accepts ISO-8601 (`2025-01-15T00:00:00Z`) or relative durations (`1h`, `7d`, `2w`); invalid formats throw. Read-only; no side effects, auth, or rate limits. Returns annotated rows plus aggregate `total_est_tokens` so you can decide what to read next. CAVEAT: hard-deleted files are NOT surfaced — only mtime-driven changes. Defaults: include_tags=true, limit=200. `project_id: null` = KB only; omit = everything. Use at session start to catch up.",
|
|
1451
1464
|
"inputSchema": {
|
|
1452
1465
|
"type": "object",
|
|
@@ -1482,7 +1495,7 @@
|
|
|
1482
1495
|
}
|
|
1483
1496
|
},
|
|
1484
1497
|
{
|
|
1485
|
-
"name": "
|
|
1498
|
+
"name": "projects.map",
|
|
1486
1499
|
"description": "Return a compact indented outline of folders, file titles, tags, and IDs in a single dense block — substantially fewer tokens than the equivalent `list_files` JSON for the same scope. Read-only; no side effects, auth, or rate limits. Capped at `max_lines` (default 5000); the response reports `est_tokens` and emits a `warning` field if it exceeds `KONTEXTA_PROJECT_TOKEN_WARN`. `project_id: null` = KB only; omit = everything. Defaults: include_tags=true, show_titles=true. Use to orient yourself in an unfamiliar vault or project; for keyword lookup use `search`.",
|
|
1487
1500
|
"inputSchema": {
|
|
1488
1501
|
"type": "object",
|
|
@@ -1515,7 +1528,7 @@
|
|
|
1515
1528
|
}
|
|
1516
1529
|
},
|
|
1517
1530
|
{
|
|
1518
|
-
"name": "
|
|
1531
|
+
"name": "hands.list",
|
|
1519
1532
|
"description": "List every Hands command tool currently registered, with project scope, tool name, danger level, confirmation flag, and description. Hands tools come from per-project `kontexta.json` files loaded at register time. Read-only; no side effects, auth, or rate limits. Use to discover what side-effectful project commands the agent is permitted to run; for the `kontexta.json` schema see `describe_hands_schema`; reload after editing one with `reload_hands`.",
|
|
1520
1533
|
"inputSchema": {
|
|
1521
1534
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -1527,7 +1540,7 @@
|
|
|
1527
1540
|
}
|
|
1528
1541
|
},
|
|
1529
1542
|
{
|
|
1530
|
-
"name": "
|
|
1543
|
+
"name": "hands.reload",
|
|
1531
1544
|
"description": "Re-scan every registered project's `kontexta.json` and rebuild the live Hands tool registry — newly-declared tools become callable immediately, removed tools disappear from `tools/list`. SIDE EFFECT is on the running MCP session's tool inventory only (no disk writes). Idempotent. No external auth or rate limits. Takes no parameters. Returns per-project load results (counts of registered/disabled tools and any validation warnings). Use after editing a `kontexta.json` mid-session; for the schema see `describe_hands_schema`.",
|
|
1532
1545
|
"inputSchema": {
|
|
1533
1546
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -1539,7 +1552,7 @@
|
|
|
1539
1552
|
}
|
|
1540
1553
|
},
|
|
1541
1554
|
{
|
|
1542
|
-
"name": "
|
|
1555
|
+
"name": "hands.confirm",
|
|
1543
1556
|
"description": "Approve and EXECUTE a previously-issued Hands invocation by its single-use approval token. The token is returned by any confirm-required Hands tool; tokens expire after 60 seconds and CANNOT be reused. Side effect equals whatever the underlying Hand does — this can be highly destructive (running arbitrary shell commands, modifying files, etc.), so only call when the user has authorised the pending action. The token IS the auth (no external auth, no rate limits). Invalid, expired, or already-consumed tokens return an inert text response, NOT an error.",
|
|
1544
1557
|
"inputSchema": {
|
|
1545
1558
|
"type": "object",
|
|
@@ -1560,7 +1573,7 @@
|
|
|
1560
1573
|
}
|
|
1561
1574
|
},
|
|
1562
1575
|
{
|
|
1563
|
-
"name": "
|
|
1576
|
+
"name": "hands.describe_schema",
|
|
1564
1577
|
"description": "Return the complete authoring reference for `kontexta.json`: JSON schema, validation rules, security guarantees, limitations, and an annotated example. Static document — does not read any project file or DB row. Read-only; no side effects, auth, or rate limits. Takes no parameters. Use when helping a user write or fix a `kontexta.json`; to see the loaded tools themselves use `list_hands`; to apply edits use `reload_hands`.",
|
|
1565
1578
|
"inputSchema": {
|
|
1566
1579
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -1572,7 +1585,7 @@
|
|
|
1572
1585
|
}
|
|
1573
1586
|
},
|
|
1574
1587
|
{
|
|
1575
|
-
"name": "get_profile",
|
|
1588
|
+
"name": "admin.get_profile",
|
|
1576
1589
|
"description": "Return the user profile stored in the Knowledge Base. The profile helps AI agents understand the user's context, role, preferences, and goals. Read-only; no side effects, auth, or rate limits. Returns existence status, full content, list of missing required sections, and a hint for new users. Use at session start to understand who you're working with.",
|
|
1577
1590
|
"inputSchema": {
|
|
1578
1591
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -1584,7 +1597,7 @@
|
|
|
1584
1597
|
}
|
|
1585
1598
|
},
|
|
1586
1599
|
{
|
|
1587
|
-
"name": "
|
|
1600
|
+
"name": "journal.note",
|
|
1588
1601
|
"description": "Record a free-form decision/abandonment/observation note in the current project's journal. Stored as an `agent_note` event in Layer 1; surfaces in distilled task entries.",
|
|
1589
1602
|
"inputSchema": {
|
|
1590
1603
|
"type": "object",
|
|
@@ -1613,7 +1626,7 @@
|
|
|
1613
1626
|
}
|
|
1614
1627
|
},
|
|
1615
1628
|
{
|
|
1616
|
-
"name": "
|
|
1629
|
+
"name": "journal.intent",
|
|
1617
1630
|
"description": "Record a topic/intent pivot. Use when the user redirects what you're working on; the distillation step uses this to split task buckets correctly.",
|
|
1618
1631
|
"inputSchema": {
|
|
1619
1632
|
"type": "object",
|
|
@@ -1635,18 +1648,20 @@
|
|
|
1635
1648
|
}
|
|
1636
1649
|
},
|
|
1637
1650
|
{
|
|
1638
|
-
"name": "
|
|
1651
|
+
"name": "journal.distill",
|
|
1639
1652
|
"description": "Run the distillation pipeline: read raw events since the high-water mark, group by topic, write mechanical markdown entries, advance high-water. Idempotent. Auto-provisions a project row for orphan slugs (e.g. `default`) that have no registered project yet.",
|
|
1640
1653
|
"inputSchema": {
|
|
1641
1654
|
"type": "object",
|
|
1642
1655
|
"properties": {
|
|
1643
1656
|
"project_slug": {
|
|
1644
|
-
"type": "string"
|
|
1657
|
+
"type": "string",
|
|
1658
|
+
"description": "Project slug to distill. Defaults to the current active project."
|
|
1645
1659
|
},
|
|
1646
1660
|
"max_events": {
|
|
1647
1661
|
"type": "integer",
|
|
1648
1662
|
"exclusiveMinimum": 0,
|
|
1649
|
-
"maximum": 2000
|
|
1663
|
+
"maximum": 2000,
|
|
1664
|
+
"description": "Maximum raw events to process per run (default 200, max 2000)."
|
|
1650
1665
|
}
|
|
1651
1666
|
},
|
|
1652
1667
|
"additionalProperties": false,
|
|
@@ -1657,13 +1672,14 @@
|
|
|
1657
1672
|
}
|
|
1658
1673
|
},
|
|
1659
1674
|
{
|
|
1660
|
-
"name": "
|
|
1675
|
+
"name": "journal.status",
|
|
1661
1676
|
"description": "Report the journal backlog and high-water mark for a project.",
|
|
1662
1677
|
"inputSchema": {
|
|
1663
1678
|
"type": "object",
|
|
1664
1679
|
"properties": {
|
|
1665
1680
|
"project_slug": {
|
|
1666
|
-
"type": "string"
|
|
1681
|
+
"type": "string",
|
|
1682
|
+
"description": "Project slug to check. Defaults to the current active project."
|
|
1667
1683
|
}
|
|
1668
1684
|
},
|
|
1669
1685
|
"additionalProperties": false,
|
|
@@ -1674,7 +1690,7 @@
|
|
|
1674
1690
|
}
|
|
1675
1691
|
},
|
|
1676
1692
|
{
|
|
1677
|
-
"name": "
|
|
1693
|
+
"name": "journal.commit_upgrades",
|
|
1678
1694
|
"description": "After dispatching subagents to upgrade mechanical journal entries to LLM-narrative, call this with the affected task slugs. Updates journal_meta.status_latest to mark the entries as upgraded.",
|
|
1679
1695
|
"inputSchema": {
|
|
1680
1696
|
"type": "object",
|
|
@@ -1699,13 +1715,14 @@
|
|
|
1699
1715
|
}
|
|
1700
1716
|
},
|
|
1701
1717
|
{
|
|
1702
|
-
"name": "
|
|
1718
|
+
"name": "journal.housekeep",
|
|
1703
1719
|
"description": "Run journal retention/archival for a project. Idempotent. Prunes old raw .jsonl files and archives cold tasks per the configured retention policy.",
|
|
1704
1720
|
"inputSchema": {
|
|
1705
1721
|
"type": "object",
|
|
1706
1722
|
"properties": {
|
|
1707
1723
|
"project_slug": {
|
|
1708
|
-
"type": "string"
|
|
1724
|
+
"type": "string",
|
|
1725
|
+
"description": "Project slug to housekeep. Defaults to the current active project."
|
|
1709
1726
|
}
|
|
1710
1727
|
},
|
|
1711
1728
|
"additionalProperties": false,
|
|
@@ -1716,7 +1733,7 @@
|
|
|
1716
1733
|
}
|
|
1717
1734
|
},
|
|
1718
1735
|
{
|
|
1719
|
-
"name": "
|
|
1736
|
+
"name": "calendar.entities.add",
|
|
1720
1737
|
"description": "SIDE-EFFECTFUL. Create a new tracked entity — any named thing you schedule events against (a server, a delivery van, a store location, a piece of equipment, a room, etc.). Not idempotent: a duplicate name (case-insensitive) throws. Returns `{entity}`. Use `calendar_link_entities` afterwards to record dependencies for conflict detection.",
|
|
1721
1738
|
"inputSchema": {
|
|
1722
1739
|
"type": "object",
|
|
@@ -1750,7 +1767,7 @@
|
|
|
1750
1767
|
}
|
|
1751
1768
|
},
|
|
1752
1769
|
{
|
|
1753
|
-
"name": "
|
|
1770
|
+
"name": "calendar.entities.update",
|
|
1754
1771
|
"description": "SIDE-EFFECTFUL. Patch an existing entity's fields, including `active` (set false to soft-retire it without losing its history). Idempotent per patch. Returns `{entity}`. For a hard delete see `calendar_delete_entity`.",
|
|
1755
1772
|
"inputSchema": {
|
|
1756
1773
|
"type": "object",
|
|
@@ -1761,28 +1778,33 @@
|
|
|
1761
1778
|
},
|
|
1762
1779
|
"name": {
|
|
1763
1780
|
"type": "string",
|
|
1764
|
-
"minLength": 1
|
|
1781
|
+
"minLength": 1,
|
|
1782
|
+
"description": "New display name for the entity."
|
|
1765
1783
|
},
|
|
1766
1784
|
"kind": {
|
|
1767
1785
|
"type": [
|
|
1768
1786
|
"string",
|
|
1769
1787
|
"null"
|
|
1770
|
-
]
|
|
1788
|
+
],
|
|
1789
|
+
"description": "Freeform category, e.g. 'server', 'vehicle', 'location'."
|
|
1771
1790
|
},
|
|
1772
1791
|
"notes": {
|
|
1773
1792
|
"type": [
|
|
1774
1793
|
"string",
|
|
1775
1794
|
"null"
|
|
1776
|
-
]
|
|
1795
|
+
],
|
|
1796
|
+
"description": "Freeform notes."
|
|
1777
1797
|
},
|
|
1778
1798
|
"timezone": {
|
|
1779
1799
|
"type": [
|
|
1780
1800
|
"string",
|
|
1781
1801
|
"null"
|
|
1782
|
-
]
|
|
1802
|
+
],
|
|
1803
|
+
"description": "IANA timezone for display purposes (e.g. 'Europe/Berlin')."
|
|
1783
1804
|
},
|
|
1784
1805
|
"active": {
|
|
1785
|
-
"type": "boolean"
|
|
1806
|
+
"type": "boolean",
|
|
1807
|
+
"description": "Set false to soft-retire the entity without losing history."
|
|
1786
1808
|
}
|
|
1787
1809
|
},
|
|
1788
1810
|
"required": [
|
|
@@ -1796,7 +1818,7 @@
|
|
|
1796
1818
|
}
|
|
1797
1819
|
},
|
|
1798
1820
|
{
|
|
1799
|
-
"name": "
|
|
1821
|
+
"name": "calendar.entities.delete",
|
|
1800
1822
|
"description": "DESTRUCTIVE. Permanently delete an entity AND cascade-delete every event and link attached to it. Not idempotent — deleting an unknown id throws. Returns `{success, deleted_events, deleted_links}`. To deactivate without losing history, use `calendar_update_entity` with `active: false` instead.",
|
|
1801
1823
|
"inputSchema": {
|
|
1802
1824
|
"type": "object",
|
|
@@ -1817,7 +1839,7 @@
|
|
|
1817
1839
|
}
|
|
1818
1840
|
},
|
|
1819
1841
|
{
|
|
1820
|
-
"name": "
|
|
1842
|
+
"name": "calendar.entities.list",
|
|
1821
1843
|
"description": "Read-only; no side effects, auth, or rate limits. List tracked entities, each annotated with its outgoing and incoming dependency links. Returns `{entities, count}`.",
|
|
1822
1844
|
"inputSchema": {
|
|
1823
1845
|
"type": "object",
|
|
@@ -1839,7 +1861,7 @@
|
|
|
1839
1861
|
}
|
|
1840
1862
|
},
|
|
1841
1863
|
{
|
|
1842
|
-
"name": "
|
|
1864
|
+
"name": "calendar.entities.link",
|
|
1843
1865
|
"description": "SIDE-EFFECTFUL. Create or update a directed dependency edge between two entities (e.g. \"A feeds B\"), or remove one with `remove: true`. Idempotent — upserts the label on repeat calls; removing an absent link is a no-op. Used by `calendar_conflicts`/`calendar_list_events` to flag overlaps across connected entities (one hop, either direction). Returns `{link}` or `{removed}`.",
|
|
1844
1866
|
"inputSchema": {
|
|
1845
1867
|
"type": "object",
|
|
@@ -1873,7 +1895,7 @@
|
|
|
1873
1895
|
}
|
|
1874
1896
|
},
|
|
1875
1897
|
{
|
|
1876
|
-
"name": "
|
|
1898
|
+
"name": "calendar.events.add",
|
|
1877
1899
|
"description": "SIDE-EFFECTFUL. Add a one-off time window (downtime, maintenance, a delivery, a shift, an inspection, etc.) to an entity. NOT idempotent — calling this twice creates two events. `starts_at`/`ends_at` must be ISO 8601 with an explicit timezone (`Z` or `±HH:MM`) — naive timestamps are rejected because their meaning would be ambiguous once stored as UTC. Returns `{event}`. Follow up with `calendar_conflicts` to check for overlaps.",
|
|
1878
1900
|
"inputSchema": {
|
|
1879
1901
|
"type": "object",
|
|
@@ -1901,7 +1923,8 @@
|
|
|
1901
1923
|
"description": "ISO 8601 timestamp with explicit timezone; must be after starts_at."
|
|
1902
1924
|
},
|
|
1903
1925
|
"notes": {
|
|
1904
|
-
"type": "string"
|
|
1926
|
+
"type": "string",
|
|
1927
|
+
"description": "Optional free-text notes about the event."
|
|
1905
1928
|
},
|
|
1906
1929
|
"original_timezone": {
|
|
1907
1930
|
"type": "string",
|
|
@@ -1927,7 +1950,7 @@
|
|
|
1927
1950
|
}
|
|
1928
1951
|
},
|
|
1929
1952
|
{
|
|
1930
|
-
"name": "
|
|
1953
|
+
"name": "calendar.events.update",
|
|
1931
1954
|
"description": "SIDE-EFFECTFUL. Patch an existing event (move it, retitle it, re-home it to a different entity, etc.). The merged result is re-validated — shrinking `ends_at` below `starts_at` throws. Returns `{event}`.",
|
|
1932
1955
|
"inputSchema": {
|
|
1933
1956
|
"type": "object",
|
|
@@ -1942,11 +1965,13 @@
|
|
|
1942
1965
|
},
|
|
1943
1966
|
"type": {
|
|
1944
1967
|
"type": "string",
|
|
1945
|
-
"minLength": 1
|
|
1968
|
+
"minLength": 1,
|
|
1969
|
+
"description": "Freeform event type, e.g. 'downtime', 'maintenance', 'delivery'."
|
|
1946
1970
|
},
|
|
1947
1971
|
"title": {
|
|
1948
1972
|
"type": "string",
|
|
1949
|
-
"minLength": 1
|
|
1973
|
+
"minLength": 1,
|
|
1974
|
+
"description": "Short title for the event."
|
|
1950
1975
|
},
|
|
1951
1976
|
"starts_at": {
|
|
1952
1977
|
"type": "string",
|
|
@@ -1960,19 +1985,22 @@
|
|
|
1960
1985
|
"type": [
|
|
1961
1986
|
"string",
|
|
1962
1987
|
"null"
|
|
1963
|
-
]
|
|
1988
|
+
],
|
|
1989
|
+
"description": "Optional free-text notes."
|
|
1964
1990
|
},
|
|
1965
1991
|
"original_timezone": {
|
|
1966
1992
|
"type": [
|
|
1967
1993
|
"string",
|
|
1968
1994
|
"null"
|
|
1969
|
-
]
|
|
1995
|
+
],
|
|
1996
|
+
"description": "IANA timezone the window was originally communicated in, for display."
|
|
1970
1997
|
},
|
|
1971
1998
|
"source": {
|
|
1972
1999
|
"type": [
|
|
1973
2000
|
"string",
|
|
1974
2001
|
"null"
|
|
1975
|
-
]
|
|
2002
|
+
],
|
|
2003
|
+
"description": "Freeform provenance, e.g. 'email from ops team'."
|
|
1976
2004
|
}
|
|
1977
2005
|
},
|
|
1978
2006
|
"required": [
|
|
@@ -1986,7 +2014,7 @@
|
|
|
1986
2014
|
}
|
|
1987
2015
|
},
|
|
1988
2016
|
{
|
|
1989
|
-
"name": "
|
|
2017
|
+
"name": "calendar.events.delete",
|
|
1990
2018
|
"description": "DESTRUCTIVE. Delete one event by id. Idempotent — deleting an already-absent id is a no-op. Returns `{success, existed}`.",
|
|
1991
2019
|
"inputSchema": {
|
|
1992
2020
|
"type": "object",
|
|
@@ -2007,7 +2035,7 @@
|
|
|
2007
2035
|
}
|
|
2008
2036
|
},
|
|
2009
2037
|
{
|
|
2010
|
-
"name": "
|
|
2038
|
+
"name": "calendar.events.list",
|
|
2011
2039
|
"description": "Read-only; no side effects, auth, or rate limits. List events overlapping a window (half-open — an event ending exactly at `from` is excluded), optionally filtered by entity/type. Set `include_conflicts` to also run conflict detection over the same window and attach it. Returns `{events, count, conflicts?}`. For conflicts alone, prefer `calendar_conflicts`.",
|
|
2012
2040
|
"inputSchema": {
|
|
2013
2041
|
"type": "object",
|
|
@@ -2046,7 +2074,7 @@
|
|
|
2046
2074
|
}
|
|
2047
2075
|
},
|
|
2048
2076
|
{
|
|
2049
|
-
"name": "
|
|
2077
|
+
"name": "calendar.events.conflicts",
|
|
2050
2078
|
"description": "Read-only; no side effects, auth, or rate limits. Report scheduling conflicts in a window: overlaps on the same entity (`overlap`), overlaps between linked entities one hop apart (`linked_overlap`), and gaps smaller than a minimum buffer (`insufficient_buffer`). Computed on demand — nothing is persisted. Buffer defaults to the `calendar.min_buffer_minutes` setting (0 = off); pass `buffer_minutes` to override for this call. Returns `{conflicts, count, buffer_minutes, events_considered}`. See also `calendar_list_events` with `include_conflicts`.",
|
|
2051
2079
|
"inputSchema": {
|
|
2052
2080
|
"type": "object",
|
|
@@ -2081,7 +2109,7 @@
|
|
|
2081
2109
|
}
|
|
2082
2110
|
},
|
|
2083
2111
|
{
|
|
2084
|
-
"name": "
|
|
2112
|
+
"name": "calendar.export_ics",
|
|
2085
2113
|
"description": "Read-only; no side effects, auth, or rate limits. Export events in a window as an RFC 5545 ICS calendar (UTC times, no VTIMEZONE needed) for import into Outlook/Calendar apps. Returns `{ics, event_count}` with the calendar text as a JSON string field.",
|
|
2086
2114
|
"inputSchema": {
|
|
2087
2115
|
"type": "object",
|