kontexta 4.6.4 → 4.7.1

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.
Files changed (114) hide show
  1. package/bundle/standalone/CHANGELOG.md +15 -0
  2. package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
  3. package/bundle/standalone/apps/web/.next/app-build-manifest.json +50 -50
  4. package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +13 -13
  5. package/bundle/standalone/apps/web/.next/build-manifest.json +2 -2
  6. package/bundle/standalone/apps/web/.next/prerender-manifest.json +13 -13
  7. package/bundle/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  8. package/bundle/standalone/apps/web/.next/server/app/_not-found.html +1 -1
  9. package/bundle/standalone/apps/web/.next/server/app/_not-found.rsc +1 -1
  10. package/bundle/standalone/apps/web/.next/server/app/api/about/route_client-reference-manifest.js +1 -1
  11. package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  12. package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  13. package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route_client-reference-manifest.js +1 -1
  14. package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  15. package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route_client-reference-manifest.js +1 -1
  16. package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route_client-reference-manifest.js +1 -1
  17. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route_client-reference-manifest.js +1 -1
  18. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route_client-reference-manifest.js +1 -1
  19. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route_client-reference-manifest.js +1 -1
  20. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route_client-reference-manifest.js +1 -1
  21. package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route_client-reference-manifest.js +1 -1
  22. package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route_client-reference-manifest.js +1 -1
  23. package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route_client-reference-manifest.js +1 -1
  24. package/bundle/standalone/apps/web/.next/server/app/api/clip/route_client-reference-manifest.js +1 -1
  25. package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route_client-reference-manifest.js +1 -1
  26. package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route_client-reference-manifest.js +1 -1
  27. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route_client-reference-manifest.js +1 -1
  28. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route_client-reference-manifest.js +1 -1
  29. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route_client-reference-manifest.js +1 -1
  30. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route_client-reference-manifest.js +1 -1
  31. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route_client-reference-manifest.js +1 -1
  32. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route_client-reference-manifest.js +1 -1
  33. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route_client-reference-manifest.js +1 -1
  34. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route_client-reference-manifest.js +1 -1
  35. package/bundle/standalone/apps/web/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
  36. package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route_client-reference-manifest.js +1 -1
  37. package/bundle/standalone/apps/web/.next/server/app/api/folders/route_client-reference-manifest.js +1 -1
  38. package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route_client-reference-manifest.js +1 -1
  39. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route_client-reference-manifest.js +1 -1
  40. package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route_client-reference-manifest.js +1 -1
  41. package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route_client-reference-manifest.js +1 -1
  42. package/bundle/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  43. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js +1 -1
  44. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route_client-reference-manifest.js +1 -1
  45. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js +1 -1
  46. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route_client-reference-manifest.js +1 -1
  47. package/bundle/standalone/apps/web/.next/server/app/api/profile/route_client-reference-manifest.js +1 -1
  48. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route_client-reference-manifest.js +1 -1
  49. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -1
  50. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -1
  51. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -1
  52. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -1
  53. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
  54. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -1
  55. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -1
  56. package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  57. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -1
  58. package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -1
  59. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -1
  60. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -1
  61. package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route_client-reference-manifest.js +1 -1
  62. package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  63. package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  64. package/bundle/standalone/apps/web/.next/server/app/api/version-check/route_client-reference-manifest.js +1 -1
  65. package/bundle/standalone/apps/web/.next/server/app/api/welcome/route_client-reference-manifest.js +1 -1
  66. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -1
  67. package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -1
  68. package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
  69. package/bundle/standalone/apps/web/.next/server/app/page.js +2 -2
  70. package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
  71. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -1
  72. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +2 -2
  73. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +1 -1
  74. package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +13 -13
  75. package/bundle/standalone/apps/web/.next/server/pages/404.html +1 -1
  76. package/bundle/standalone/apps/web/.next/server/pages/500.html +1 -1
  77. package/bundle/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
  78. package/bundle/standalone/apps/web/.next/static/chunks/app/{page-13de59eac88531ec.js → page-eccc7438c998fcce.js} +1 -1
  79. package/bundle/standalone/apps/web/package.json +4 -4
  80. package/bundle/standalone/apps/web/src/lib/mcp-tools.json +104 -103
  81. package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +90 -90
  82. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +12 -12
  83. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -1
  84. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +63 -63
  85. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
  86. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js +1 -1
  87. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js.map +1 -1
  88. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js +1 -1
  89. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +4 -4
  90. package/bundle/standalone/node_modules/kontexta-mcp/package.json +1 -1
  91. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js +3 -3
  92. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js.map +1 -1
  93. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-block.md +90 -90
  94. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.d.ts.map +1 -1
  95. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js +8 -1
  96. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js.map +1 -1
  97. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.d.ts.map +1 -1
  98. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js +6 -0
  99. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js.map +1 -1
  100. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js +2 -2
  101. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js.map +1 -1
  102. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.d.ts.map +1 -1
  103. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js +8 -2
  104. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js.map +1 -1
  105. package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.d.ts.map +1 -1
  106. package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js +10 -2
  107. package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js.map +1 -1
  108. package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.js +1 -1
  109. package/bundle/standalone/node_modules/kxta-core/package.json +1 -1
  110. package/bundle/standalone/node_modules/kxta-publish/package.json +2 -2
  111. package/bundle/standalone/package.json +1 -1
  112. package/package.json +1 -1
  113. /package/bundle/standalone/apps/web/.next/static/{MXXlMwjGdgGdSqB6SehZ3 → DWDlM7S8dTnMlrhKW9K_X}/_buildManifest.js +0 -0
  114. /package/bundle/standalone/apps/web/.next/static/{MXXlMwjGdgGdSqB6SehZ3 → DWDlM7S8dTnMlrhKW9K_X}/_ssgManifest.js +0 -0
@@ -1,8 +1,8 @@
1
1
  {
2
- "generatedAt": "2026-09-13T20:59:14.090Z",
2
+ "generatedAt": "2026-09-13T22:30:10.828Z",
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": "journal_append",
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,8 +39,8 @@
39
39
  }
40
40
  },
41
41
  {
42
- "name": "create_file",
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'.",
42
+ "name": "files.create",
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 'files.update' 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",
46
46
  "properties": {
@@ -107,7 +107,7 @@
107
107
  }
108
108
  },
109
109
  {
110
- "name": "add_report_resource",
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": "list_report_resources",
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,7 +145,7 @@
145
145
  }
146
146
  },
147
147
  {
148
- "name": "delete_report_resource",
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",
@@ -166,7 +166,7 @@
166
166
  }
167
167
  },
168
168
  {
169
- "name": "export_report",
169
+ "name": "resources.export_report",
170
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.",
171
171
  "inputSchema": {
172
172
  "type": "object",
@@ -201,8 +201,8 @@
201
201
  }
202
202
  },
203
203
  {
204
- "name": "read_file",
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.",
204
+ "name": "files.read",
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 `files.describe` to inspect without paying body tokens; `files.read_many` for batches; `files.read_lines`/`files.read_section` for partial reads; `files.read_by_path` when you only have the absolute path.",
206
206
  "inputSchema": {
207
207
  "type": "object",
208
208
  "properties": {
@@ -222,8 +222,8 @@
222
222
  }
223
223
  },
224
224
  {
225
- "name": "read_files",
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.",
225
+ "name": "files.read_many",
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 `files.read` to halve round-trips and get the combined token cost upfront. For >200 IDs, page yourself.",
227
227
  "inputSchema": {
228
228
  "type": "object",
229
229
  "properties": {
@@ -248,8 +248,8 @@
248
248
  }
249
249
  },
250
250
  {
251
- "name": "describe_file",
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.",
251
+ "name": "files.describe",
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 files.read + tags.list + files.get_history + files.find_related just to decide whether to actually read the file. Parameters: 'id' must be a valid integer file ID.",
253
253
  "inputSchema": {
254
254
  "type": "object",
255
255
  "properties": {
@@ -269,7 +269,7 @@
269
269
  }
270
270
  },
271
271
  {
272
- "name": "read_file_lines",
272
+ "name": "files.read_lines",
273
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.",
274
274
  "inputSchema": {
275
275
  "type": "object",
@@ -302,8 +302,8 @@
302
302
  }
303
303
  },
304
304
  {
305
- "name": "grep_in_file",
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`.",
305
+ "name": "files.grep",
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 `files.read_outline` when you know the file but need a specific reference; for cross-file regex use `files.regex_search`; for keyword/concept search use `files.search`.",
307
307
  "inputSchema": {
308
308
  "type": "object",
309
309
  "properties": {
@@ -338,7 +338,7 @@
338
338
  }
339
339
  },
340
340
  {
341
- "name": "regex_search",
341
+ "name": "files.regex_search",
342
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.",
343
343
  "inputSchema": {
344
344
  "type": "object",
@@ -355,7 +355,8 @@
355
355
  "description": "Scope to one project, null for KB-only, omit for everything"
356
356
  },
357
357
  "case_insensitive": {
358
- "type": "boolean"
358
+ "type": "boolean",
359
+ "description": "If true, match pattern case-insensitively (RegExp 'i' flag). Default false."
359
360
  },
360
361
  "max_files": {
361
362
  "type": "integer",
@@ -391,8 +392,8 @@
391
392
  }
392
393
  },
393
394
  {
394
- "name": "update_file",
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.",
395
+ "name": "files.update",
396
+ "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 'files.update_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.",
396
397
  "inputSchema": {
397
398
  "type": "object",
398
399
  "properties": {
@@ -417,8 +418,8 @@
417
418
  }
418
419
  },
419
420
  {
420
- "name": "delete_file",
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`.",
421
+ "name": "files.delete",
422
+ "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 (`tags.remove`) or unfavorite (`tags.set_favorite`) instead. Bulk variant: `files.delete_many`.",
422
423
  "inputSchema": {
423
424
  "type": "object",
424
425
  "properties": {
@@ -438,7 +439,7 @@
438
439
  }
439
440
  },
440
441
  {
441
- "name": "list_files",
442
+ "name": "files.list",
442
443
  "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`.",
443
444
  "inputSchema": {
444
445
  "type": "object",
@@ -493,8 +494,8 @@
493
494
  }
494
495
  },
495
496
  {
496
- "name": "search",
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`.",
497
+ "name": "files.search",
498
+ "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 `files.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 `files.bundle_search`.",
498
499
  "inputSchema": {
499
500
  "type": "object",
500
501
  "properties": {
@@ -542,8 +543,8 @@
542
543
  }
543
544
  },
544
545
  {
545
- "name": "bundle_search",
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.",
546
+ "name": "files.bundle_search",
547
+ "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 `files.search` + N×`files.read` 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.",
547
548
  "inputSchema": {
548
549
  "type": "object",
549
550
  "properties": {
@@ -606,7 +607,7 @@
606
607
  }
607
608
  },
608
609
  {
609
- "name": "add_tags",
610
+ "name": "tags.add",
610
611
  "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`.",
611
612
  "inputSchema": {
612
613
  "type": "object",
@@ -635,7 +636,7 @@
635
636
  }
636
637
  },
637
638
  {
638
- "name": "remove_tags",
639
+ "name": "tags.remove",
639
640
  "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.",
640
641
  "inputSchema": {
641
642
  "type": "object",
@@ -664,7 +665,7 @@
664
665
  }
665
666
  },
666
667
  {
667
- "name": "set_favorite",
668
+ "name": "tags.set_favorite",
668
669
  "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.",
669
670
  "inputSchema": {
670
671
  "type": "object",
@@ -690,7 +691,7 @@
690
691
  }
691
692
  },
692
693
  {
693
- "name": "list_tags",
694
+ "name": "tags.list",
694
695
  "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`.",
695
696
  "inputSchema": {
696
697
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -702,7 +703,7 @@
702
703
  }
703
704
  },
704
705
  {
705
- "name": "list_projects",
706
+ "name": "projects.list",
706
707
  "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`.",
707
708
  "inputSchema": {
708
709
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -714,7 +715,7 @@
714
715
  }
715
716
  },
716
717
  {
717
- "name": "register_project",
718
+ "name": "projects.register",
718
719
  "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.",
719
720
  "inputSchema": {
720
721
  "type": "object",
@@ -744,7 +745,7 @@
744
745
  }
745
746
  },
746
747
  {
747
- "name": "onboard_agent",
748
+ "name": "admin.onboard_agent",
748
749
  "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 }] }",
749
750
  "inputSchema": {
750
751
  "type": "object",
@@ -793,7 +794,7 @@
793
794
  }
794
795
  },
795
796
  {
796
- "name": "transfer_agent_context",
797
+ "name": "admin.transfer_agent_context",
797
798
  "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.",
798
799
  "inputSchema": {
799
800
  "type": "object",
@@ -826,7 +827,7 @@
826
827
  }
827
828
  },
828
829
  {
829
- "name": "commit_backup",
830
+ "name": "admin.commit_backup",
830
831
  "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.",
831
832
  "inputSchema": {
832
833
  "type": "object",
@@ -847,7 +848,7 @@
847
848
  }
848
849
  },
849
850
  {
850
- "name": "clip_url",
851
+ "name": "resources.clip_url",
851
852
  "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.",
852
853
  "inputSchema": {
853
854
  "type": "object",
@@ -880,7 +881,7 @@
880
881
  }
881
882
  },
882
883
  {
883
- "name": "get_history",
884
+ "name": "files.get_history",
884
885
  "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.",
885
886
  "inputSchema": {
886
887
  "type": "object",
@@ -901,7 +902,7 @@
901
902
  }
902
903
  },
903
904
  {
904
- "name": "get_diff",
905
+ "name": "files.get_diff",
905
906
  "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.",
906
907
  "inputSchema": {
907
908
  "type": "object",
@@ -932,7 +933,7 @@
932
933
  }
933
934
  },
934
935
  {
935
- "name": "restore_file",
936
+ "name": "files.restore",
936
937
  "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.",
937
938
  "inputSchema": {
938
939
  "type": "object",
@@ -958,7 +959,7 @@
958
959
  }
959
960
  },
960
961
  {
961
- "name": "read_file_outline",
962
+ "name": "files.read_outline",
962
963
  "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`).",
963
964
  "inputSchema": {
964
965
  "type": "object",
@@ -979,7 +980,7 @@
979
980
  }
980
981
  },
981
982
  {
982
- "name": "read_section",
983
+ "name": "files.read_section",
983
984
  "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`.",
984
985
  "inputSchema": {
985
986
  "type": "object",
@@ -1005,7 +1006,7 @@
1005
1006
  }
1006
1007
  },
1007
1008
  {
1008
- "name": "update_file_section",
1009
+ "name": "files.update_section",
1009
1010
  "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`.",
1010
1011
  "inputSchema": {
1011
1012
  "type": "object",
@@ -1036,7 +1037,7 @@
1036
1037
  }
1037
1038
  },
1038
1039
  {
1039
- "name": "list_folders",
1040
+ "name": "folders.list",
1040
1041
  "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`.",
1041
1042
  "inputSchema": {
1042
1043
  "type": "object",
@@ -1057,7 +1058,7 @@
1057
1058
  }
1058
1059
  },
1059
1060
  {
1060
- "name": "create_folder",
1061
+ "name": "folders.create",
1061
1062
  "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}`.",
1062
1063
  "inputSchema": {
1063
1064
  "type": "object",
@@ -1085,7 +1086,7 @@
1085
1086
  }
1086
1087
  },
1087
1088
  {
1088
- "name": "delete_folder",
1089
+ "name": "folders.delete",
1089
1090
  "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}`.",
1090
1091
  "inputSchema": {
1091
1092
  "type": "object",
@@ -1113,7 +1114,7 @@
1113
1114
  }
1114
1115
  },
1115
1116
  {
1116
- "name": "move_file",
1117
+ "name": "files.move",
1117
1118
  "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.",
1118
1119
  "inputSchema": {
1119
1120
  "type": "object",
@@ -1146,8 +1147,8 @@
1146
1147
  }
1147
1148
  },
1148
1149
  {
1149
- "name": "find_related",
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.",
1150
+ "name": "files.find_related",
1151
+ "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 `files.search`/`files.regex_search` for content-based discovery, or `tags.suggest` to bootstrap labels first. `kind` narrows to one content class. Default limit 10.",
1151
1152
  "inputSchema": {
1152
1153
  "type": "object",
1153
1154
  "properties": {
@@ -1181,8 +1182,8 @@
1181
1182
  }
1182
1183
  },
1183
1184
  {
1184
- "name": "create_files",
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'.",
1185
+ "name": "files.create_many",
1186
+ "description": "Batch variant of `files.create` — 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'.",
1186
1187
  "inputSchema": {
1187
1188
  "type": "object",
1188
1189
  "properties": {
@@ -1238,7 +1239,7 @@
1238
1239
  "dictionary",
1239
1240
  "note"
1240
1241
  ],
1241
- "description": "REQUIRED per-item for destination='knowledge'. See create_file for the dictionary/note rubric."
1242
+ "description": "REQUIRED per-item for destination='knowledge'. See files.create for the dictionary/note rubric."
1242
1243
  }
1243
1244
  },
1244
1245
  "required": [
@@ -1264,8 +1265,8 @@
1264
1265
  }
1265
1266
  },
1266
1267
  {
1267
- "name": "delete_files",
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.",
1268
+ "name": "files.delete_many",
1269
+ "description": "DESTRUCTIVE batch — delete up to 500 files by ID in one call. Same physical-deletion rules as `files.delete` (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 `files.list` with the same filter and confirm the IDs.",
1269
1270
  "inputSchema": {
1270
1271
  "type": "object",
1271
1272
  "properties": {
@@ -1290,8 +1291,8 @@
1290
1291
  }
1291
1292
  },
1292
1293
  {
1293
- "name": "tag_search_results",
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}`.",
1294
+ "name": "tags.search",
1295
+ "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 `files.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}`.",
1295
1296
  "inputSchema": {
1296
1297
  "type": "object",
1297
1298
  "properties": {
@@ -1338,8 +1339,8 @@
1338
1339
  }
1339
1340
  },
1340
1341
  {
1341
- "name": "read_file_by_path",
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`.",
1342
+ "name": "files.read_by_path",
1343
+ "description": "Look up a file by its absolute on-disk path and return the same shape as `files.read`. 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 `projects.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 `files.read`.",
1343
1344
  "inputSchema": {
1344
1345
  "type": "object",
1345
1346
  "properties": {
@@ -1359,8 +1360,8 @@
1359
1360
  }
1360
1361
  },
1361
1362
  {
1362
- "name": "stats",
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`.",
1363
+ "name": "admin.stats",
1364
+ "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 `files.diff_against_disk`.",
1364
1365
  "inputSchema": {
1365
1366
  "type": "object",
1366
1367
  "properties": {
@@ -1390,8 +1391,8 @@
1390
1391
  }
1391
1392
  },
1392
1393
  {
1393
- "name": "suggest_tags",
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.",
1394
+ "name": "tags.suggest",
1395
+ "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 `tags.add` first. Default limit 10, max 50. Suggestions are NOT auto-applied.",
1395
1396
  "inputSchema": {
1396
1397
  "type": "object",
1397
1398
  "properties": {
@@ -1417,8 +1418,8 @@
1417
1418
  }
1418
1419
  },
1419
1420
  {
1420
- "name": "diff_against_disk",
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.",
1421
+ "name": "files.diff_against_disk",
1422
+ "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 `files.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 `projects.refresh_index` to fix.",
1422
1423
  "inputSchema": {
1423
1424
  "type": "object",
1424
1425
  "properties": {
@@ -1438,8 +1439,8 @@
1438
1439
  }
1439
1440
  },
1440
1441
  {
1441
- "name": "refresh_index",
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.",
1442
+ "name": "projects.refresh_index",
1443
+ "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 `files.diff_against_disk` reports drift.",
1443
1444
  "inputSchema": {
1444
1445
  "type": "object",
1445
1446
  "properties": {
@@ -1459,7 +1460,7 @@
1459
1460
  }
1460
1461
  },
1461
1462
  {
1462
- "name": "whats_new",
1463
+ "name": "admin.whats_new",
1463
1464
  "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.",
1464
1465
  "inputSchema": {
1465
1466
  "type": "object",
@@ -1495,8 +1496,8 @@
1495
1496
  }
1496
1497
  },
1497
1498
  {
1498
- "name": "project_map",
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`.",
1499
+ "name": "projects.map",
1500
+ "description": "Return a compact indented outline of folders, file titles, tags, and IDs in a single dense block — substantially fewer tokens than the equivalent `files.list` 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 `files.search`.",
1500
1501
  "inputSchema": {
1501
1502
  "type": "object",
1502
1503
  "properties": {
@@ -1528,8 +1529,8 @@
1528
1529
  }
1529
1530
  },
1530
1531
  {
1531
- "name": "list_hands",
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`.",
1532
+ "name": "hands.list",
1533
+ "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 `hands.describe_schema`; reload after editing one with `hands.reload`.",
1533
1534
  "inputSchema": {
1534
1535
  "$schema": "http://json-schema.org/draft-07/schema#",
1535
1536
  "type": "object",
@@ -1540,8 +1541,8 @@
1540
1541
  }
1541
1542
  },
1542
1543
  {
1543
- "name": "reload_hands",
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`.",
1544
+ "name": "hands.reload",
1545
+ "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 `hands.describe_schema`.",
1545
1546
  "inputSchema": {
1546
1547
  "$schema": "http://json-schema.org/draft-07/schema#",
1547
1548
  "type": "object",
@@ -1552,7 +1553,7 @@
1552
1553
  }
1553
1554
  },
1554
1555
  {
1555
- "name": "confirm_hand",
1556
+ "name": "hands.confirm",
1556
1557
  "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.",
1557
1558
  "inputSchema": {
1558
1559
  "type": "object",
@@ -1573,8 +1574,8 @@
1573
1574
  }
1574
1575
  },
1575
1576
  {
1576
- "name": "describe_hands_schema",
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`.",
1577
+ "name": "hands.describe_schema",
1578
+ "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 `hands.list`; to apply edits use `hands.reload`.",
1578
1579
  "inputSchema": {
1579
1580
  "$schema": "http://json-schema.org/draft-07/schema#",
1580
1581
  "type": "object",
@@ -1585,7 +1586,7 @@
1585
1586
  }
1586
1587
  },
1587
1588
  {
1588
- "name": "get_profile",
1589
+ "name": "admin.get_profile",
1589
1590
  "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.",
1590
1591
  "inputSchema": {
1591
1592
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -1597,7 +1598,7 @@
1597
1598
  }
1598
1599
  },
1599
1600
  {
1600
- "name": "journal_note",
1601
+ "name": "journal.note",
1601
1602
  "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.",
1602
1603
  "inputSchema": {
1603
1604
  "type": "object",
@@ -1626,7 +1627,7 @@
1626
1627
  }
1627
1628
  },
1628
1629
  {
1629
- "name": "journal_intent",
1630
+ "name": "journal.intent",
1630
1631
  "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.",
1631
1632
  "inputSchema": {
1632
1633
  "type": "object",
@@ -1648,7 +1649,7 @@
1648
1649
  }
1649
1650
  },
1650
1651
  {
1651
- "name": "distill_journal",
1652
+ "name": "journal.distill",
1652
1653
  "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.",
1653
1654
  "inputSchema": {
1654
1655
  "type": "object",
@@ -1672,7 +1673,7 @@
1672
1673
  }
1673
1674
  },
1674
1675
  {
1675
- "name": "journal_status",
1676
+ "name": "journal.status",
1676
1677
  "description": "Report the journal backlog and high-water mark for a project.",
1677
1678
  "inputSchema": {
1678
1679
  "type": "object",
@@ -1690,7 +1691,7 @@
1690
1691
  }
1691
1692
  },
1692
1693
  {
1693
- "name": "distill_journal_commit_upgrades",
1694
+ "name": "journal.commit_upgrades",
1694
1695
  "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.",
1695
1696
  "inputSchema": {
1696
1697
  "type": "object",
@@ -1715,7 +1716,7 @@
1715
1716
  }
1716
1717
  },
1717
1718
  {
1718
- "name": "housekeep_journal",
1719
+ "name": "journal.housekeep",
1719
1720
  "description": "Run journal retention/archival for a project. Idempotent. Prunes old raw .jsonl files and archives cold tasks per the configured retention policy.",
1720
1721
  "inputSchema": {
1721
1722
  "type": "object",
@@ -1733,7 +1734,7 @@
1733
1734
  }
1734
1735
  },
1735
1736
  {
1736
- "name": "calendar_add_entity",
1737
+ "name": "calendar.entities.add",
1737
1738
  "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.",
1738
1739
  "inputSchema": {
1739
1740
  "type": "object",
@@ -1767,14 +1768,14 @@
1767
1768
  }
1768
1769
  },
1769
1770
  {
1770
- "name": "calendar_update_entity",
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`.",
1771
+ "name": "calendar.entities.update",
1772
+ "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.entities.delete`.",
1772
1773
  "inputSchema": {
1773
1774
  "type": "object",
1774
1775
  "properties": {
1775
1776
  "id": {
1776
1777
  "type": "integer",
1777
- "description": "Entity id (from `calendar_add_entity` or `calendar_list_entities`)."
1778
+ "description": "Entity id (from `calendar.entities.add` or `calendar.entities.list`)."
1778
1779
  },
1779
1780
  "name": {
1780
1781
  "type": "string",
@@ -1818,8 +1819,8 @@
1818
1819
  }
1819
1820
  },
1820
1821
  {
1821
- "name": "calendar_delete_entity",
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.",
1822
+ "name": "calendar.entities.delete",
1823
+ "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.entities.update` with `active: false` instead.",
1823
1824
  "inputSchema": {
1824
1825
  "type": "object",
1825
1826
  "properties": {
@@ -1839,7 +1840,7 @@
1839
1840
  }
1840
1841
  },
1841
1842
  {
1842
- "name": "calendar_list_entities",
1843
+ "name": "calendar.entities.list",
1843
1844
  "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}`.",
1844
1845
  "inputSchema": {
1845
1846
  "type": "object",
@@ -1861,8 +1862,8 @@
1861
1862
  }
1862
1863
  },
1863
1864
  {
1864
- "name": "calendar_link_entities",
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}`.",
1865
+ "name": "calendar.entities.link",
1866
+ "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.events.conflicts`/`calendar.events.list` to flag overlaps across connected entities (one hop, either direction). Returns `{link}` or `{removed}`.",
1866
1867
  "inputSchema": {
1867
1868
  "type": "object",
1868
1869
  "properties": {
@@ -1895,8 +1896,8 @@
1895
1896
  }
1896
1897
  },
1897
1898
  {
1898
- "name": "calendar_add_event",
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.",
1899
+ "name": "calendar.events.add",
1900
+ "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.events.conflicts` to check for overlaps.",
1900
1901
  "inputSchema": {
1901
1902
  "type": "object",
1902
1903
  "properties": {
@@ -1950,7 +1951,7 @@
1950
1951
  }
1951
1952
  },
1952
1953
  {
1953
- "name": "calendar_update_event",
1954
+ "name": "calendar.events.update",
1954
1955
  "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}`.",
1955
1956
  "inputSchema": {
1956
1957
  "type": "object",
@@ -2014,7 +2015,7 @@
2014
2015
  }
2015
2016
  },
2016
2017
  {
2017
- "name": "calendar_delete_event",
2018
+ "name": "calendar.events.delete",
2018
2019
  "description": "DESTRUCTIVE. Delete one event by id. Idempotent — deleting an already-absent id is a no-op. Returns `{success, existed}`.",
2019
2020
  "inputSchema": {
2020
2021
  "type": "object",
@@ -2035,8 +2036,8 @@
2035
2036
  }
2036
2037
  },
2037
2038
  {
2038
- "name": "calendar_list_events",
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`.",
2039
+ "name": "calendar.events.list",
2040
+ "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.events.conflicts`.",
2040
2041
  "inputSchema": {
2041
2042
  "type": "object",
2042
2043
  "properties": {
@@ -2074,8 +2075,8 @@
2074
2075
  }
2075
2076
  },
2076
2077
  {
2077
- "name": "calendar_conflicts",
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`.",
2078
+ "name": "calendar.events.conflicts",
2079
+ "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.events.list` with `include_conflicts`.",
2079
2080
  "inputSchema": {
2080
2081
  "type": "object",
2081
2082
  "properties": {
@@ -2109,7 +2110,7 @@
2109
2110
  }
2110
2111
  },
2111
2112
  {
2112
- "name": "calendar_export_ics",
2113
+ "name": "calendar.export_ics",
2113
2114
  "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.",
2114
2115
  "inputSchema": {
2115
2116
  "type": "object",