kontexta 4.6.4 → 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.
Files changed (95) hide show
  1. package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
  2. package/bundle/standalone/apps/web/.next/app-build-manifest.json +40 -40
  3. package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +12 -12
  4. package/bundle/standalone/apps/web/.next/build-manifest.json +2 -2
  5. package/bundle/standalone/apps/web/.next/prerender-manifest.json +3 -3
  6. package/bundle/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  7. package/bundle/standalone/apps/web/.next/server/app/_not-found.html +1 -1
  8. package/bundle/standalone/apps/web/.next/server/app/_not-found.rsc +1 -1
  9. package/bundle/standalone/apps/web/.next/server/app/api/about/route_client-reference-manifest.js +1 -1
  10. package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  11. package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  12. package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route_client-reference-manifest.js +1 -1
  13. package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  14. package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route_client-reference-manifest.js +1 -1
  15. package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route_client-reference-manifest.js +1 -1
  16. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route_client-reference-manifest.js +1 -1
  17. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route_client-reference-manifest.js +1 -1
  18. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route_client-reference-manifest.js +1 -1
  19. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route_client-reference-manifest.js +1 -1
  20. package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route_client-reference-manifest.js +1 -1
  21. package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route_client-reference-manifest.js +1 -1
  22. package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route_client-reference-manifest.js +1 -1
  23. package/bundle/standalone/apps/web/.next/server/app/api/clip/route_client-reference-manifest.js +1 -1
  24. package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route_client-reference-manifest.js +1 -1
  25. package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route_client-reference-manifest.js +1 -1
  26. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route_client-reference-manifest.js +1 -1
  27. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route_client-reference-manifest.js +1 -1
  28. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route_client-reference-manifest.js +1 -1
  29. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route_client-reference-manifest.js +1 -1
  30. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route_client-reference-manifest.js +1 -1
  31. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route_client-reference-manifest.js +1 -1
  32. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route_client-reference-manifest.js +1 -1
  33. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route_client-reference-manifest.js +1 -1
  34. package/bundle/standalone/apps/web/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
  35. package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route_client-reference-manifest.js +1 -1
  36. package/bundle/standalone/apps/web/.next/server/app/api/folders/route_client-reference-manifest.js +1 -1
  37. package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route_client-reference-manifest.js +1 -1
  38. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route_client-reference-manifest.js +1 -1
  39. package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route_client-reference-manifest.js +1 -1
  40. package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route_client-reference-manifest.js +1 -1
  41. package/bundle/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  42. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route_client-reference-manifest.js +1 -1
  43. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js +1 -1
  44. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route_client-reference-manifest.js +1 -1
  45. package/bundle/standalone/apps/web/.next/server/app/api/profile/route_client-reference-manifest.js +1 -1
  46. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route_client-reference-manifest.js +1 -1
  47. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -1
  48. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -1
  49. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -1
  50. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -1
  51. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
  52. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -1
  53. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -1
  54. package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  55. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -1
  56. package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -1
  57. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -1
  58. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -1
  59. package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route_client-reference-manifest.js +1 -1
  60. package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  61. package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  62. package/bundle/standalone/apps/web/.next/server/app/api/version-check/route_client-reference-manifest.js +1 -1
  63. package/bundle/standalone/apps/web/.next/server/app/api/welcome/route_client-reference-manifest.js +1 -1
  64. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -1
  65. package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -1
  66. package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
  67. package/bundle/standalone/apps/web/.next/server/app/page.js +1 -1
  68. package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
  69. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -1
  70. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +2 -2
  71. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +1 -1
  72. package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +12 -12
  73. package/bundle/standalone/apps/web/.next/server/pages/404.html +1 -1
  74. package/bundle/standalone/apps/web/.next/server/pages/500.html +1 -1
  75. package/bundle/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
  76. package/bundle/standalone/apps/web/.next/static/chunks/app/{page-13de59eac88531ec.js → page-67aff4652e571aa1.js} +1 -1
  77. package/bundle/standalone/apps/web/package.json +4 -4
  78. package/bundle/standalone/apps/web/src/lib/mcp-tools.json +72 -72
  79. package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +90 -90
  80. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +11 -11
  81. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -1
  82. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +59 -59
  83. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
  84. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js +1 -1
  85. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js.map +1 -1
  86. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js +1 -1
  87. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +4 -4
  88. package/bundle/standalone/node_modules/kontexta-mcp/package.json +1 -1
  89. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-block.md +90 -90
  90. package/bundle/standalone/node_modules/kxta-core/package.json +1 -1
  91. package/bundle/standalone/node_modules/kxta-publish/package.json +2 -2
  92. package/bundle/standalone/package.json +1 -1
  93. package/package.json +1 -1
  94. /package/bundle/standalone/apps/web/.next/static/{MXXlMwjGdgGdSqB6SehZ3 → Na5FCljVLhoIUnyjNShuM}/_buildManifest.js +0 -0
  95. /package/bundle/standalone/apps/web/.next/static/{MXXlMwjGdgGdSqB6SehZ3 → Na5FCljVLhoIUnyjNShuM}/_ssgManifest.js +0 -0
@@ -1,8 +1,8 @@
1
1
  {
2
- "generatedAt": "2026-09-13T20:59:14.090Z",
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": "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,7 +39,7 @@
39
39
  }
40
40
  },
41
41
  {
42
- "name": "create_file",
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": "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,7 +201,7 @@
201
201
  }
202
202
  },
203
203
  {
204
- "name": "read_file",
204
+ "name": "files.read",
205
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.",
206
206
  "inputSchema": {
207
207
  "type": "object",
@@ -222,7 +222,7 @@
222
222
  }
223
223
  },
224
224
  {
225
- "name": "read_files",
225
+ "name": "files.read_many",
226
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.",
227
227
  "inputSchema": {
228
228
  "type": "object",
@@ -248,7 +248,7 @@
248
248
  }
249
249
  },
250
250
  {
251
- "name": "describe_file",
251
+ "name": "files.describe",
252
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.",
253
253
  "inputSchema": {
254
254
  "type": "object",
@@ -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,7 +302,7 @@
302
302
  }
303
303
  },
304
304
  {
305
- "name": "grep_in_file",
305
+ "name": "files.grep",
306
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`.",
307
307
  "inputSchema": {
308
308
  "type": "object",
@@ -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",
@@ -391,7 +391,7 @@
391
391
  }
392
392
  },
393
393
  {
394
- "name": "update_file",
394
+ "name": "files.update",
395
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.",
396
396
  "inputSchema": {
397
397
  "type": "object",
@@ -417,7 +417,7 @@
417
417
  }
418
418
  },
419
419
  {
420
- "name": "delete_file",
420
+ "name": "files.delete",
421
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`.",
422
422
  "inputSchema": {
423
423
  "type": "object",
@@ -438,7 +438,7 @@
438
438
  }
439
439
  },
440
440
  {
441
- "name": "list_files",
441
+ "name": "files.list",
442
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`.",
443
443
  "inputSchema": {
444
444
  "type": "object",
@@ -493,7 +493,7 @@
493
493
  }
494
494
  },
495
495
  {
496
- "name": "search",
496
+ "name": "files.search",
497
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`.",
498
498
  "inputSchema": {
499
499
  "type": "object",
@@ -542,7 +542,7 @@
542
542
  }
543
543
  },
544
544
  {
545
- "name": "bundle_search",
545
+ "name": "files.bundle_search",
546
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.",
547
547
  "inputSchema": {
548
548
  "type": "object",
@@ -606,7 +606,7 @@
606
606
  }
607
607
  },
608
608
  {
609
- "name": "add_tags",
609
+ "name": "tags.add",
610
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`.",
611
611
  "inputSchema": {
612
612
  "type": "object",
@@ -635,7 +635,7 @@
635
635
  }
636
636
  },
637
637
  {
638
- "name": "remove_tags",
638
+ "name": "tags.remove",
639
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.",
640
640
  "inputSchema": {
641
641
  "type": "object",
@@ -664,7 +664,7 @@
664
664
  }
665
665
  },
666
666
  {
667
- "name": "set_favorite",
667
+ "name": "tags.set_favorite",
668
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.",
669
669
  "inputSchema": {
670
670
  "type": "object",
@@ -690,7 +690,7 @@
690
690
  }
691
691
  },
692
692
  {
693
- "name": "list_tags",
693
+ "name": "tags.list",
694
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`.",
695
695
  "inputSchema": {
696
696
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -702,7 +702,7 @@
702
702
  }
703
703
  },
704
704
  {
705
- "name": "list_projects",
705
+ "name": "projects.list",
706
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`.",
707
707
  "inputSchema": {
708
708
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -714,7 +714,7 @@
714
714
  }
715
715
  },
716
716
  {
717
- "name": "register_project",
717
+ "name": "projects.register",
718
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.",
719
719
  "inputSchema": {
720
720
  "type": "object",
@@ -744,7 +744,7 @@
744
744
  }
745
745
  },
746
746
  {
747
- "name": "onboard_agent",
747
+ "name": "admin.onboard_agent",
748
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 }] }",
749
749
  "inputSchema": {
750
750
  "type": "object",
@@ -793,7 +793,7 @@
793
793
  }
794
794
  },
795
795
  {
796
- "name": "transfer_agent_context",
796
+ "name": "admin.transfer_agent_context",
797
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.",
798
798
  "inputSchema": {
799
799
  "type": "object",
@@ -826,7 +826,7 @@
826
826
  }
827
827
  },
828
828
  {
829
- "name": "commit_backup",
829
+ "name": "admin.commit_backup",
830
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.",
831
831
  "inputSchema": {
832
832
  "type": "object",
@@ -847,7 +847,7 @@
847
847
  }
848
848
  },
849
849
  {
850
- "name": "clip_url",
850
+ "name": "resources.clip_url",
851
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.",
852
852
  "inputSchema": {
853
853
  "type": "object",
@@ -880,7 +880,7 @@
880
880
  }
881
881
  },
882
882
  {
883
- "name": "get_history",
883
+ "name": "files.get_history",
884
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.",
885
885
  "inputSchema": {
886
886
  "type": "object",
@@ -901,7 +901,7 @@
901
901
  }
902
902
  },
903
903
  {
904
- "name": "get_diff",
904
+ "name": "files.get_diff",
905
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.",
906
906
  "inputSchema": {
907
907
  "type": "object",
@@ -932,7 +932,7 @@
932
932
  }
933
933
  },
934
934
  {
935
- "name": "restore_file",
935
+ "name": "files.restore",
936
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.",
937
937
  "inputSchema": {
938
938
  "type": "object",
@@ -958,7 +958,7 @@
958
958
  }
959
959
  },
960
960
  {
961
- "name": "read_file_outline",
961
+ "name": "files.read_outline",
962
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`).",
963
963
  "inputSchema": {
964
964
  "type": "object",
@@ -979,7 +979,7 @@
979
979
  }
980
980
  },
981
981
  {
982
- "name": "read_section",
982
+ "name": "files.read_section",
983
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`.",
984
984
  "inputSchema": {
985
985
  "type": "object",
@@ -1005,7 +1005,7 @@
1005
1005
  }
1006
1006
  },
1007
1007
  {
1008
- "name": "update_file_section",
1008
+ "name": "files.update_section",
1009
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`.",
1010
1010
  "inputSchema": {
1011
1011
  "type": "object",
@@ -1036,7 +1036,7 @@
1036
1036
  }
1037
1037
  },
1038
1038
  {
1039
- "name": "list_folders",
1039
+ "name": "folders.list",
1040
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`.",
1041
1041
  "inputSchema": {
1042
1042
  "type": "object",
@@ -1057,7 +1057,7 @@
1057
1057
  }
1058
1058
  },
1059
1059
  {
1060
- "name": "create_folder",
1060
+ "name": "folders.create",
1061
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}`.",
1062
1062
  "inputSchema": {
1063
1063
  "type": "object",
@@ -1085,7 +1085,7 @@
1085
1085
  }
1086
1086
  },
1087
1087
  {
1088
- "name": "delete_folder",
1088
+ "name": "folders.delete",
1089
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}`.",
1090
1090
  "inputSchema": {
1091
1091
  "type": "object",
@@ -1113,7 +1113,7 @@
1113
1113
  }
1114
1114
  },
1115
1115
  {
1116
- "name": "move_file",
1116
+ "name": "files.move",
1117
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.",
1118
1118
  "inputSchema": {
1119
1119
  "type": "object",
@@ -1146,7 +1146,7 @@
1146
1146
  }
1147
1147
  },
1148
1148
  {
1149
- "name": "find_related",
1149
+ "name": "files.find_related",
1150
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.",
1151
1151
  "inputSchema": {
1152
1152
  "type": "object",
@@ -1181,7 +1181,7 @@
1181
1181
  }
1182
1182
  },
1183
1183
  {
1184
- "name": "create_files",
1184
+ "name": "files.create_many",
1185
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'.",
1186
1186
  "inputSchema": {
1187
1187
  "type": "object",
@@ -1264,7 +1264,7 @@
1264
1264
  }
1265
1265
  },
1266
1266
  {
1267
- "name": "delete_files",
1267
+ "name": "files.delete_many",
1268
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.",
1269
1269
  "inputSchema": {
1270
1270
  "type": "object",
@@ -1290,7 +1290,7 @@
1290
1290
  }
1291
1291
  },
1292
1292
  {
1293
- "name": "tag_search_results",
1293
+ "name": "tags.search",
1294
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}`.",
1295
1295
  "inputSchema": {
1296
1296
  "type": "object",
@@ -1338,7 +1338,7 @@
1338
1338
  }
1339
1339
  },
1340
1340
  {
1341
- "name": "read_file_by_path",
1341
+ "name": "files.read_by_path",
1342
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`.",
1343
1343
  "inputSchema": {
1344
1344
  "type": "object",
@@ -1359,7 +1359,7 @@
1359
1359
  }
1360
1360
  },
1361
1361
  {
1362
- "name": "stats",
1362
+ "name": "admin.stats",
1363
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`.",
1364
1364
  "inputSchema": {
1365
1365
  "type": "object",
@@ -1390,7 +1390,7 @@
1390
1390
  }
1391
1391
  },
1392
1392
  {
1393
- "name": "suggest_tags",
1393
+ "name": "tags.suggest",
1394
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.",
1395
1395
  "inputSchema": {
1396
1396
  "type": "object",
@@ -1417,7 +1417,7 @@
1417
1417
  }
1418
1418
  },
1419
1419
  {
1420
- "name": "diff_against_disk",
1420
+ "name": "files.diff_against_disk",
1421
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.",
1422
1422
  "inputSchema": {
1423
1423
  "type": "object",
@@ -1438,7 +1438,7 @@
1438
1438
  }
1439
1439
  },
1440
1440
  {
1441
- "name": "refresh_index",
1441
+ "name": "projects.refresh_index",
1442
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.",
1443
1443
  "inputSchema": {
1444
1444
  "type": "object",
@@ -1459,7 +1459,7 @@
1459
1459
  }
1460
1460
  },
1461
1461
  {
1462
- "name": "whats_new",
1462
+ "name": "admin.whats_new",
1463
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.",
1464
1464
  "inputSchema": {
1465
1465
  "type": "object",
@@ -1495,7 +1495,7 @@
1495
1495
  }
1496
1496
  },
1497
1497
  {
1498
- "name": "project_map",
1498
+ "name": "projects.map",
1499
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`.",
1500
1500
  "inputSchema": {
1501
1501
  "type": "object",
@@ -1528,7 +1528,7 @@
1528
1528
  }
1529
1529
  },
1530
1530
  {
1531
- "name": "list_hands",
1531
+ "name": "hands.list",
1532
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`.",
1533
1533
  "inputSchema": {
1534
1534
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -1540,7 +1540,7 @@
1540
1540
  }
1541
1541
  },
1542
1542
  {
1543
- "name": "reload_hands",
1543
+ "name": "hands.reload",
1544
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`.",
1545
1545
  "inputSchema": {
1546
1546
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -1552,7 +1552,7 @@
1552
1552
  }
1553
1553
  },
1554
1554
  {
1555
- "name": "confirm_hand",
1555
+ "name": "hands.confirm",
1556
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.",
1557
1557
  "inputSchema": {
1558
1558
  "type": "object",
@@ -1573,7 +1573,7 @@
1573
1573
  }
1574
1574
  },
1575
1575
  {
1576
- "name": "describe_hands_schema",
1576
+ "name": "hands.describe_schema",
1577
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`.",
1578
1578
  "inputSchema": {
1579
1579
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -1585,7 +1585,7 @@
1585
1585
  }
1586
1586
  },
1587
1587
  {
1588
- "name": "get_profile",
1588
+ "name": "admin.get_profile",
1589
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.",
1590
1590
  "inputSchema": {
1591
1591
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -1597,7 +1597,7 @@
1597
1597
  }
1598
1598
  },
1599
1599
  {
1600
- "name": "journal_note",
1600
+ "name": "journal.note",
1601
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.",
1602
1602
  "inputSchema": {
1603
1603
  "type": "object",
@@ -1626,7 +1626,7 @@
1626
1626
  }
1627
1627
  },
1628
1628
  {
1629
- "name": "journal_intent",
1629
+ "name": "journal.intent",
1630
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.",
1631
1631
  "inputSchema": {
1632
1632
  "type": "object",
@@ -1648,7 +1648,7 @@
1648
1648
  }
1649
1649
  },
1650
1650
  {
1651
- "name": "distill_journal",
1651
+ "name": "journal.distill",
1652
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.",
1653
1653
  "inputSchema": {
1654
1654
  "type": "object",
@@ -1672,7 +1672,7 @@
1672
1672
  }
1673
1673
  },
1674
1674
  {
1675
- "name": "journal_status",
1675
+ "name": "journal.status",
1676
1676
  "description": "Report the journal backlog and high-water mark for a project.",
1677
1677
  "inputSchema": {
1678
1678
  "type": "object",
@@ -1690,7 +1690,7 @@
1690
1690
  }
1691
1691
  },
1692
1692
  {
1693
- "name": "distill_journal_commit_upgrades",
1693
+ "name": "journal.commit_upgrades",
1694
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.",
1695
1695
  "inputSchema": {
1696
1696
  "type": "object",
@@ -1715,7 +1715,7 @@
1715
1715
  }
1716
1716
  },
1717
1717
  {
1718
- "name": "housekeep_journal",
1718
+ "name": "journal.housekeep",
1719
1719
  "description": "Run journal retention/archival for a project. Idempotent. Prunes old raw .jsonl files and archives cold tasks per the configured retention policy.",
1720
1720
  "inputSchema": {
1721
1721
  "type": "object",
@@ -1733,7 +1733,7 @@
1733
1733
  }
1734
1734
  },
1735
1735
  {
1736
- "name": "calendar_add_entity",
1736
+ "name": "calendar.entities.add",
1737
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.",
1738
1738
  "inputSchema": {
1739
1739
  "type": "object",
@@ -1767,7 +1767,7 @@
1767
1767
  }
1768
1768
  },
1769
1769
  {
1770
- "name": "calendar_update_entity",
1770
+ "name": "calendar.entities.update",
1771
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`.",
1772
1772
  "inputSchema": {
1773
1773
  "type": "object",
@@ -1818,7 +1818,7 @@
1818
1818
  }
1819
1819
  },
1820
1820
  {
1821
- "name": "calendar_delete_entity",
1821
+ "name": "calendar.entities.delete",
1822
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.",
1823
1823
  "inputSchema": {
1824
1824
  "type": "object",
@@ -1839,7 +1839,7 @@
1839
1839
  }
1840
1840
  },
1841
1841
  {
1842
- "name": "calendar_list_entities",
1842
+ "name": "calendar.entities.list",
1843
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}`.",
1844
1844
  "inputSchema": {
1845
1845
  "type": "object",
@@ -1861,7 +1861,7 @@
1861
1861
  }
1862
1862
  },
1863
1863
  {
1864
- "name": "calendar_link_entities",
1864
+ "name": "calendar.entities.link",
1865
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}`.",
1866
1866
  "inputSchema": {
1867
1867
  "type": "object",
@@ -1895,7 +1895,7 @@
1895
1895
  }
1896
1896
  },
1897
1897
  {
1898
- "name": "calendar_add_event",
1898
+ "name": "calendar.events.add",
1899
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.",
1900
1900
  "inputSchema": {
1901
1901
  "type": "object",
@@ -1950,7 +1950,7 @@
1950
1950
  }
1951
1951
  },
1952
1952
  {
1953
- "name": "calendar_update_event",
1953
+ "name": "calendar.events.update",
1954
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}`.",
1955
1955
  "inputSchema": {
1956
1956
  "type": "object",
@@ -2014,7 +2014,7 @@
2014
2014
  }
2015
2015
  },
2016
2016
  {
2017
- "name": "calendar_delete_event",
2017
+ "name": "calendar.events.delete",
2018
2018
  "description": "DESTRUCTIVE. Delete one event by id. Idempotent — deleting an already-absent id is a no-op. Returns `{success, existed}`.",
2019
2019
  "inputSchema": {
2020
2020
  "type": "object",
@@ -2035,7 +2035,7 @@
2035
2035
  }
2036
2036
  },
2037
2037
  {
2038
- "name": "calendar_list_events",
2038
+ "name": "calendar.events.list",
2039
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`.",
2040
2040
  "inputSchema": {
2041
2041
  "type": "object",
@@ -2074,7 +2074,7 @@
2074
2074
  }
2075
2075
  },
2076
2076
  {
2077
- "name": "calendar_conflicts",
2077
+ "name": "calendar.events.conflicts",
2078
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`.",
2079
2079
  "inputSchema": {
2080
2080
  "type": "object",
@@ -2109,7 +2109,7 @@
2109
2109
  }
2110
2110
  },
2111
2111
  {
2112
- "name": "calendar_export_ics",
2112
+ "name": "calendar.export_ics",
2113
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.",
2114
2114
  "inputSchema": {
2115
2115
  "type": "object",