kontexta 4.7.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/standalone/CHANGELOG.md +44 -0
- package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
- package/bundle/standalone/apps/web/.next/app-build-manifest.json +45 -45
- package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +12 -12
- package/bundle/standalone/apps/web/.next/build-manifest.json +2 -2
- package/bundle/standalone/apps/web/.next/prerender-manifest.json +3 -3
- package/bundle/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/_not-found.html +1 -1
- package/bundle/standalone/apps/web/.next/server/app/_not-found.rsc +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/about/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/about/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/clip/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/clip/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/folders/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/health/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/profile/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/profile/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/refresh/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reindex/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/search/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/tags/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/version-check/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/welcome/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/welcome/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/calendar/page.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/login/page.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/page.js +3 -3
- package/bundle/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +2 -2
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +1 -1
- package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +12 -12
- package/bundle/standalone/apps/web/.next/server/pages/404.html +1 -1
- package/bundle/standalone/apps/web/.next/server/pages/500.html +1 -1
- package/bundle/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/page-98057182511ba7e4.js +1 -0
- package/bundle/standalone/apps/web/package.json +5 -5
- package/bundle/standalone/apps/web/src/lib/mcp-tools.json +249 -557
- package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +22 -35
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +8 -8
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +458 -481
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +1 -27
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/package.json +2 -2
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js +3 -3
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-block.md +22 -35
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.js +16 -4
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js +3 -7
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js +2 -7
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js +2 -2
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js +8 -2
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js +64 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js +4 -11
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.js +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js +16 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/package.json +2 -2
- package/bundle/standalone/node_modules/kxta-publish/package.json +3 -3
- package/bundle/standalone/package.json +2 -2
- package/package.json +2 -2
- package/bundle/standalone/apps/web/.next/static/chunks/app/page-67aff4652e571aa1.js +0 -1
- /package/bundle/standalone/apps/web/.next/static/{Na5FCljVLhoIUnyjNShuM → hUyNKiBOk3HaC0S0gE_N8}/_buildManifest.js +0 -0
- /package/bundle/standalone/apps/web/.next/static/{Na5FCljVLhoIUnyjNShuM → hUyNKiBOk3HaC0S0gE_N8}/_ssgManifest.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-09-
|
|
2
|
+
"generatedAt": "2026-09-14T17:27:08.871Z",
|
|
3
3
|
"tools": [
|
|
4
4
|
{
|
|
5
5
|
"name": "admin.refresh_session_context",
|
|
@@ -14,22 +14,42 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"name": "journal.
|
|
18
|
-
"description": "
|
|
17
|
+
"name": "journal.write",
|
|
18
|
+
"description": "Write one event to the current project's journal. `kind: 'append'` = timestamped entry in today's daily journal file in the Knowledge Base (creates the file if it doesn't exist; both calls on the same calendar day return the same file_id; returns `{file_id}`). `kind: 'note'` = free-form decision/abandonment/observation, stored as an `agent_note` event in Layer 1 (surfaces in distilled task entries; returns `{ok, recorded_at}`). `kind: 'intent'` = topic/intent pivot — use when the user redirects what you're working on so the distillation step splits task buckets correctly (returns `{ok, recorded_at}`). Required fields depend on `kind`: 'append'/'note' need `text`; 'intent' needs `summary`.",
|
|
19
19
|
"inputSchema": {
|
|
20
20
|
"type": "object",
|
|
21
21
|
"properties": {
|
|
22
|
+
"kind": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"append",
|
|
26
|
+
"note",
|
|
27
|
+
"intent"
|
|
28
|
+
],
|
|
29
|
+
"description": "Event kind. Selects which body fields are required and how the event is stored."
|
|
30
|
+
},
|
|
22
31
|
"text": {
|
|
23
32
|
"type": "string",
|
|
24
|
-
"description": "
|
|
33
|
+
"description": "Required for kind='append' or kind='note'. Body of the entry."
|
|
34
|
+
},
|
|
35
|
+
"summary": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Required for kind='intent'. One-line summary of the new intent."
|
|
38
|
+
},
|
|
39
|
+
"tags": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"description": "Optional for kind='note'. Tags for the note."
|
|
25
45
|
},
|
|
26
46
|
"project_id": {
|
|
27
47
|
"type": "number",
|
|
28
|
-
"description": "Optional
|
|
48
|
+
"description": "Optional for kind='append'. Project ID context."
|
|
29
49
|
}
|
|
30
50
|
},
|
|
31
51
|
"required": [
|
|
32
|
-
"
|
|
52
|
+
"kind"
|
|
33
53
|
],
|
|
34
54
|
"additionalProperties": false,
|
|
35
55
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -40,64 +60,79 @@
|
|
|
40
60
|
},
|
|
41
61
|
{
|
|
42
62
|
"name": "files.create",
|
|
43
|
-
"description": "Create
|
|
63
|
+
"description": "Create one or more markdown, mermaid, or HTML files in the knowledge base or project (up to 200 per call). Pass a single-element `files` array for the one-file case. This operation writes each 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 for md files — 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). Per-item failures are isolated to `errors[]` — the rest of the batch still commits; a single-item call still reports its failure the same way. Returns `{created_count, error_count, created, errors}`. If a destination directory does not exist, it will be created automatically. To modify an existing file, use 'files.update' instead. Pass format='mmd' on an item to create a Mermaid diagram file (.mmd) — for destination='knowledge' it's auto-routed to the KB's `mermaid/` bucket (`kind` ignored, not required); for destination='project' it's written wherever `folder` says, same as any project file. Pass format='html' for an HTML report — `destination` MUST be 'knowledge' (html reports are auto-routed to the KB's `html/` bucket; `kind` is ignored and not required for html). Format defaults to 'md'.",
|
|
44
64
|
"inputSchema": {
|
|
45
65
|
"type": "object",
|
|
46
66
|
"properties": {
|
|
47
|
-
"
|
|
48
|
-
"type": "string",
|
|
49
|
-
"description": "Title of the file"
|
|
50
|
-
},
|
|
51
|
-
"content": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"description": "Content of the file"
|
|
54
|
-
},
|
|
55
|
-
"destination": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"enum": [
|
|
58
|
-
"knowledge",
|
|
59
|
-
"project",
|
|
60
|
-
"kontexta"
|
|
61
|
-
],
|
|
62
|
-
"description": "Destination type"
|
|
63
|
-
},
|
|
64
|
-
"project_id": {
|
|
65
|
-
"type": "number",
|
|
66
|
-
"description": "Project ID (required for project/kontexta destinations)"
|
|
67
|
-
},
|
|
68
|
-
"folder": {
|
|
69
|
-
"type": "string",
|
|
70
|
-
"description": "Optional folder path"
|
|
71
|
-
},
|
|
72
|
-
"tags": {
|
|
67
|
+
"files": {
|
|
73
68
|
"type": "array",
|
|
74
69
|
"items": {
|
|
75
|
-
"type": "
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"title": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"description": "Title of the file"
|
|
75
|
+
},
|
|
76
|
+
"content": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "Content of the file"
|
|
79
|
+
},
|
|
80
|
+
"destination": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"enum": [
|
|
83
|
+
"knowledge",
|
|
84
|
+
"project",
|
|
85
|
+
"kontexta"
|
|
86
|
+
],
|
|
87
|
+
"description": "Destination type"
|
|
88
|
+
},
|
|
89
|
+
"project_id": {
|
|
90
|
+
"type": "number",
|
|
91
|
+
"description": "Project ID (required for project/kontexta destinations)"
|
|
92
|
+
},
|
|
93
|
+
"folder": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "Optional folder path"
|
|
96
|
+
},
|
|
97
|
+
"tags": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
"description": "Optional array of tags"
|
|
103
|
+
},
|
|
104
|
+
"format": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"enum": [
|
|
107
|
+
"md",
|
|
108
|
+
"mmd",
|
|
109
|
+
"html"
|
|
110
|
+
],
|
|
111
|
+
"description": "File extension to write. Defaults to 'md'. Use 'html' for HTML reports."
|
|
112
|
+
},
|
|
113
|
+
"kind": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"enum": [
|
|
116
|
+
"dictionary",
|
|
117
|
+
"note"
|
|
118
|
+
],
|
|
119
|
+
"description": "REQUIRED for destination='knowledge'. 'dictionary' = source of truth (mappings, glossaries, runbooks, PR templates). 'note' = snapshot (meeting notes, sprint reviews, PR findings, post-mortems). Test: if this file disagreed with the code, who wins? File wins → dictionary; file loses → note. Ignored for destination='project' or 'kontexta'."
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": [
|
|
123
|
+
"title",
|
|
124
|
+
"content",
|
|
125
|
+
"destination"
|
|
126
|
+
],
|
|
127
|
+
"additionalProperties": false
|
|
76
128
|
},
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"type": "string",
|
|
81
|
-
"enum": [
|
|
82
|
-
"md",
|
|
83
|
-
"mmd",
|
|
84
|
-
"html"
|
|
85
|
-
],
|
|
86
|
-
"description": "File extension to write. Defaults to 'md'. Use 'html' for HTML reports."
|
|
87
|
-
},
|
|
88
|
-
"kind": {
|
|
89
|
-
"type": "string",
|
|
90
|
-
"enum": [
|
|
91
|
-
"dictionary",
|
|
92
|
-
"note"
|
|
93
|
-
],
|
|
94
|
-
"description": "REQUIRED for destination='knowledge'. 'dictionary' = source of truth (mappings, glossaries, runbooks, PR templates). 'note' = snapshot (meeting notes, sprint reviews, PR findings, post-mortems). Test: if this file disagreed with the code, who wins? File wins → dictionary; file loses → note. Ignored for destination='project' or 'kontexta'."
|
|
129
|
+
"minItems": 1,
|
|
130
|
+
"maxItems": 200,
|
|
131
|
+
"description": "Files to create. Single-element array = one-file case. Max 200 per call."
|
|
95
132
|
}
|
|
96
133
|
},
|
|
97
134
|
"required": [
|
|
98
|
-
"
|
|
99
|
-
"content",
|
|
100
|
-
"destination"
|
|
135
|
+
"files"
|
|
101
136
|
],
|
|
102
137
|
"additionalProperties": false,
|
|
103
138
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -202,31 +237,19 @@
|
|
|
202
237
|
},
|
|
203
238
|
{
|
|
204
239
|
"name": "files.read",
|
|
205
|
-
"description": "Read one
|
|
240
|
+
"description": "Read one or more files, in full or in part. Modes: single-by-id (`id`), single-by-path (`path`, absolute on-disk path — must be exactly as indexed), batch-by-id (`ids`, up to 200), partial-by-heading (`id`+`section`), partial-by-line-range (`id`+`lines`). Exactly one of `id`/`path`/`ids` is required. `section` and `lines` are mutually exclusive and only valid with `id` (not `ids` or `path`). Read-only; no side effects, auth, or rate limits. Response shape: a single file object (with `content`, tags, est_tokens) for `id`/`path`; a partial-content object for `section`/`lines`; `{files, total_est_tokens, error_count, errors}` for `ids` (per-ID failures isolated, batch never partial-throws). Prefer `files.describe` to inspect without paying body tokens.",
|
|
206
241
|
"inputSchema": {
|
|
207
242
|
"type": "object",
|
|
208
243
|
"properties": {
|
|
209
244
|
"id": {
|
|
210
|
-
"type": "
|
|
211
|
-
"
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
219
|
-
},
|
|
220
|
-
"execution": {
|
|
221
|
-
"taskSupport": "forbidden"
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
{
|
|
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 `read_file` to halve round-trips and get the combined token cost upfront. For >200 IDs, page yourself.",
|
|
227
|
-
"inputSchema": {
|
|
228
|
-
"type": "object",
|
|
229
|
-
"properties": {
|
|
245
|
+
"type": "integer",
|
|
246
|
+
"exclusiveMinimum": 0,
|
|
247
|
+
"description": "Single file by ID."
|
|
248
|
+
},
|
|
249
|
+
"path": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"description": "Single file by absolute on-disk path (must match exactly what Kontexta indexed)."
|
|
252
|
+
},
|
|
230
253
|
"ids": {
|
|
231
254
|
"type": "array",
|
|
232
255
|
"items": {
|
|
@@ -234,66 +257,34 @@
|
|
|
234
257
|
},
|
|
235
258
|
"minItems": 1,
|
|
236
259
|
"maxItems": 200,
|
|
237
|
-
"description": "
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
"required": [
|
|
241
|
-
"ids"
|
|
242
|
-
],
|
|
243
|
-
"additionalProperties": false,
|
|
244
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
245
|
-
},
|
|
246
|
-
"execution": {
|
|
247
|
-
"taskSupport": "forbidden"
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
{
|
|
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 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
|
-
"inputSchema": {
|
|
254
|
-
"type": "object",
|
|
255
|
-
"properties": {
|
|
256
|
-
"id": {
|
|
257
|
-
"type": "number",
|
|
258
|
-
"description": "File ID"
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
"required": [
|
|
262
|
-
"id"
|
|
263
|
-
],
|
|
264
|
-
"additionalProperties": false,
|
|
265
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
266
|
-
},
|
|
267
|
-
"execution": {
|
|
268
|
-
"taskSupport": "forbidden"
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"name": "files.read_lines",
|
|
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
|
-
"inputSchema": {
|
|
275
|
-
"type": "object",
|
|
276
|
-
"properties": {
|
|
277
|
-
"id": {
|
|
278
|
-
"type": "number",
|
|
279
|
-
"description": "File ID"
|
|
260
|
+
"description": "Batch mode: multiple file IDs (max 200 per call); returns an array plus aggregate token cost."
|
|
280
261
|
},
|
|
281
|
-
"
|
|
282
|
-
"type": "
|
|
283
|
-
"
|
|
284
|
-
"description": "First line (1-indexed, inclusive)"
|
|
262
|
+
"section": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"description": "Partial read: return only this heading's body (case-insensitive exact-string after trim). Requires `id`; mutually exclusive with `lines`."
|
|
285
265
|
},
|
|
286
|
-
"
|
|
287
|
-
"type": "
|
|
288
|
-
"
|
|
289
|
-
|
|
266
|
+
"lines": {
|
|
267
|
+
"type": "object",
|
|
268
|
+
"properties": {
|
|
269
|
+
"from": {
|
|
270
|
+
"type": "integer",
|
|
271
|
+
"exclusiveMinimum": 0,
|
|
272
|
+
"description": "First line (1-indexed, inclusive)"
|
|
273
|
+
},
|
|
274
|
+
"to": {
|
|
275
|
+
"type": "integer",
|
|
276
|
+
"exclusiveMinimum": 0,
|
|
277
|
+
"description": "Last line (1-indexed, inclusive)"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"required": [
|
|
281
|
+
"from",
|
|
282
|
+
"to"
|
|
283
|
+
],
|
|
284
|
+
"additionalProperties": false,
|
|
285
|
+
"description": "Partial read: 1-indexed inclusive line range. Requires `id`; mutually exclusive with `section`."
|
|
290
286
|
}
|
|
291
287
|
},
|
|
292
|
-
"required": [
|
|
293
|
-
"id",
|
|
294
|
-
"from",
|
|
295
|
-
"to"
|
|
296
|
-
],
|
|
297
288
|
"additionalProperties": false,
|
|
298
289
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
299
290
|
},
|
|
@@ -302,33 +293,18 @@
|
|
|
302
293
|
}
|
|
303
294
|
},
|
|
304
295
|
{
|
|
305
|
-
"name": "files.
|
|
306
|
-
"description": "
|
|
296
|
+
"name": "files.describe",
|
|
297
|
+
"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.",
|
|
307
298
|
"inputSchema": {
|
|
308
299
|
"type": "object",
|
|
309
300
|
"properties": {
|
|
310
301
|
"id": {
|
|
311
302
|
"type": "number",
|
|
312
303
|
"description": "File ID"
|
|
313
|
-
},
|
|
314
|
-
"pattern": {
|
|
315
|
-
"type": "string",
|
|
316
|
-
"description": "Pattern to match. Treated as a JavaScript RegExp source."
|
|
317
|
-
},
|
|
318
|
-
"case_insensitive": {
|
|
319
|
-
"type": "boolean",
|
|
320
|
-
"description": "Add the 'i' flag (default false)"
|
|
321
|
-
},
|
|
322
|
-
"max_matches": {
|
|
323
|
-
"type": "integer",
|
|
324
|
-
"exclusiveMinimum": 0,
|
|
325
|
-
"maximum": 500,
|
|
326
|
-
"description": "Cap on returned hits (default 100)"
|
|
327
304
|
}
|
|
328
305
|
},
|
|
329
306
|
"required": [
|
|
330
|
-
"id"
|
|
331
|
-
"pattern"
|
|
307
|
+
"id"
|
|
332
308
|
],
|
|
333
309
|
"additionalProperties": false,
|
|
334
310
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -339,7 +315,7 @@
|
|
|
339
315
|
},
|
|
340
316
|
{
|
|
341
317
|
"name": "files.regex_search",
|
|
342
|
-
"description": "Match a JS regex against
|
|
318
|
+
"description": "Match a JS regex against file bodies. Default mode scans every file in scope (project, KB, or all) and returns per-file hits with line numbers — slower than FTS `files.search` because it reads each file's content; use only when FTS misses substrings, URLs, or code identifiers. Pass `file_id` to instead scan just that one file (catches what FTS misses within a single known file); response shape changes to `{file_id, path, pattern, match_count, truncated, matches}`. Read-only; no side effects, auth, or rate limits. Multi-file mode capped at 500 files / 10 hits per file by default (`files_truncated` reports the cap); single-file mode capped at 100 hits by default, max 500. `project_id`/`kind` are ignored when `file_id` is set. Invalid regex throws.",
|
|
343
319
|
"inputSchema": {
|
|
344
320
|
"type": "object",
|
|
345
321
|
"properties": {
|
|
@@ -347,27 +323,38 @@
|
|
|
347
323
|
"type": "string",
|
|
348
324
|
"description": "JavaScript RegExp source"
|
|
349
325
|
},
|
|
326
|
+
"file_id": {
|
|
327
|
+
"type": "number",
|
|
328
|
+
"description": "Scan only this file instead of every file in scope. When set, `project_id`/`kind`/`max_files`/`max_matches_per_file` are ignored in favor of `max_matches`."
|
|
329
|
+
},
|
|
350
330
|
"project_id": {
|
|
351
331
|
"type": [
|
|
352
332
|
"number",
|
|
353
333
|
"null"
|
|
354
334
|
],
|
|
355
|
-
"description": "Scope to one project, null for KB-only, omit for everything"
|
|
335
|
+
"description": "Scope to one project, null for KB-only, omit for everything. Ignored when `file_id` is set."
|
|
356
336
|
},
|
|
357
337
|
"case_insensitive": {
|
|
358
|
-
"type": "boolean"
|
|
338
|
+
"type": "boolean",
|
|
339
|
+
"description": "If true, match pattern case-insensitively (RegExp 'i' flag). Default false."
|
|
359
340
|
},
|
|
360
341
|
"max_files": {
|
|
361
342
|
"type": "integer",
|
|
362
343
|
"exclusiveMinimum": 0,
|
|
363
344
|
"maximum": 2000,
|
|
364
|
-
"description": "Cap on files scanned (default 500)"
|
|
345
|
+
"description": "Cap on files scanned (default 500). Ignored when `file_id` is set."
|
|
365
346
|
},
|
|
366
347
|
"max_matches_per_file": {
|
|
367
348
|
"type": "integer",
|
|
368
349
|
"exclusiveMinimum": 0,
|
|
369
350
|
"maximum": 100,
|
|
370
|
-
"description": "Per-file hit cap (default 10)"
|
|
351
|
+
"description": "Per-file hit cap in multi-file mode (default 10). Ignored when `file_id` is set."
|
|
352
|
+
},
|
|
353
|
+
"max_matches": {
|
|
354
|
+
"type": "integer",
|
|
355
|
+
"exclusiveMinimum": 0,
|
|
356
|
+
"maximum": 500,
|
|
357
|
+
"description": "Cap on returned hits in single-file mode (default 100). Only used when `file_id` is set."
|
|
371
358
|
},
|
|
372
359
|
"kind": {
|
|
373
360
|
"type": "string",
|
|
@@ -377,7 +364,7 @@
|
|
|
377
364
|
"journal",
|
|
378
365
|
"project"
|
|
379
366
|
],
|
|
380
|
-
"description": "Filter by content class before scanning."
|
|
367
|
+
"description": "Filter by content class before scanning. Ignored when `file_id` is set."
|
|
381
368
|
}
|
|
382
369
|
},
|
|
383
370
|
"required": [
|
|
@@ -392,7 +379,7 @@
|
|
|
392
379
|
},
|
|
393
380
|
{
|
|
394
381
|
"name": "files.update",
|
|
395
|
-
"description": "
|
|
382
|
+
"description": "Rewrite a file. Default = full-body replacement: `content` becomes the entire file, triggering disk write + FTS5 re-index. Pass `section` to instead rewrite ONLY that heading's body (case-insensitive exact-string after trim; the heading line itself is preserved, siblings untouched) — saves context budget vs resending the whole file. Throws if `section` is set but the heading doesn't exist (this mode will NOT create a new section — append the section text via a full-body update first). Operates locally with no external auth or rate limits. Returns the updated file metadata including new estimated token counts.",
|
|
396
383
|
"inputSchema": {
|
|
397
384
|
"type": "object",
|
|
398
385
|
"properties": {
|
|
@@ -402,7 +389,11 @@
|
|
|
402
389
|
},
|
|
403
390
|
"content": {
|
|
404
391
|
"type": "string",
|
|
405
|
-
"description": "New content"
|
|
392
|
+
"description": "New content. With `section` set, this replaces just that heading's body; otherwise it becomes the entire file body."
|
|
393
|
+
},
|
|
394
|
+
"section": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"description": "Case-insensitive exact-string heading. When set, only this heading's body is rewritten instead of the whole file."
|
|
406
397
|
}
|
|
407
398
|
},
|
|
408
399
|
"required": [
|
|
@@ -418,17 +409,22 @@
|
|
|
418
409
|
},
|
|
419
410
|
{
|
|
420
411
|
"name": "files.delete",
|
|
421
|
-
"description": "DESTRUCTIVE. Permanently delete one
|
|
412
|
+
"description": "DESTRUCTIVE. Permanently delete one or more files by ID (up to 500 per call). Pass a single-element `ids` array for the one-file case. 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 surfaces as a per-item error. No external auth or rate limits. Per-ID failures are isolated to `errors[]` and the rest of the batch still commits — partial success is the norm, always inspect `error_count`. Returns `{deleted_count, error_count, deleted, errors}`. Use only when the file is truly obsolete; to deprioritise without losing data, untag (`tags.remove`) or unfavorite (`tags.set_favorite`) instead. To preview the set before deleting, run `files.list` with the same filter and confirm the IDs.",
|
|
422
413
|
"inputSchema": {
|
|
423
414
|
"type": "object",
|
|
424
415
|
"properties": {
|
|
425
|
-
"
|
|
426
|
-
"type": "
|
|
427
|
-
"
|
|
416
|
+
"ids": {
|
|
417
|
+
"type": "array",
|
|
418
|
+
"items": {
|
|
419
|
+
"type": "number"
|
|
420
|
+
},
|
|
421
|
+
"minItems": 1,
|
|
422
|
+
"maxItems": 500,
|
|
423
|
+
"description": "File IDs to delete. Single-element array = one-file case. Max 500 per call."
|
|
428
424
|
}
|
|
429
425
|
},
|
|
430
426
|
"required": [
|
|
431
|
-
"
|
|
427
|
+
"ids"
|
|
432
428
|
],
|
|
433
429
|
"additionalProperties": false,
|
|
434
430
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -439,7 +435,7 @@
|
|
|
439
435
|
},
|
|
440
436
|
{
|
|
441
437
|
"name": "files.list",
|
|
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 `
|
|
438
|
+
"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 `files.search`; for a denser whole-vault dump use `projects.map`.",
|
|
443
439
|
"inputSchema": {
|
|
444
440
|
"type": "object",
|
|
445
441
|
"properties": {
|
|
@@ -494,7 +490,7 @@
|
|
|
494
490
|
},
|
|
495
491
|
{
|
|
496
492
|
"name": "files.search",
|
|
497
|
-
"description": "Full-text (SQLite FTS5) keyword search across files.
|
|
493
|
+
"description": "Full-text (SQLite FTS5) keyword search across files. Default mode returns ranked matches with inline match_excerpt and title_highlight (no follow-up `files.read` needed for snippets) plus tags, est_tokens, size_bytes, content_class, and aggregate `total_est_tokens`. Pass `include_bodies: true` to instead get a single prompt-ready bundle: matched bodies concatenated into XML `<document>` blocks or markdown headers + fences (see `format`/`max_tokens`), capped at the token budget — files are added in rank order until the next would exceed it, the rest going to `meta.skipped[]`. Use `include_bodies` instead of `files.search` + N×`files.read` when you need several related files as one context blob. 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.",
|
|
498
494
|
"inputSchema": {
|
|
499
495
|
"type": "object",
|
|
500
496
|
"properties": {
|
|
@@ -529,45 +525,10 @@
|
|
|
529
525
|
"project"
|
|
530
526
|
],
|
|
531
527
|
"description": "Filter by content class. dictionary = authoritative KB (system IDs, mappings, glossaries), note = informational KB, journal = time-log, project = project file. Omit to see all classes with dictionary-first ordering."
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
"required": [
|
|
535
|
-
"query"
|
|
536
|
-
],
|
|
537
|
-
"additionalProperties": false,
|
|
538
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
539
|
-
},
|
|
540
|
-
"execution": {
|
|
541
|
-
"taskSupport": "forbidden"
|
|
542
|
-
}
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"name": "files.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.",
|
|
547
|
-
"inputSchema": {
|
|
548
|
-
"type": "object",
|
|
549
|
-
"properties": {
|
|
550
|
-
"query": {
|
|
551
|
-
"type": "string",
|
|
552
|
-
"description": "Full-text search query"
|
|
553
|
-
},
|
|
554
|
-
"project_id": {
|
|
555
|
-
"type": [
|
|
556
|
-
"number",
|
|
557
|
-
"null"
|
|
558
|
-
],
|
|
559
|
-
"description": "Filter by project ID. Pass null to bundle ONLY Knowledge Base files."
|
|
560
|
-
},
|
|
561
|
-
"tags": {
|
|
562
|
-
"type": "array",
|
|
563
|
-
"items": {
|
|
564
|
-
"type": "string"
|
|
565
|
-
},
|
|
566
|
-
"description": "Filter by tags (all must match)"
|
|
567
528
|
},
|
|
568
|
-
"
|
|
529
|
+
"include_bodies": {
|
|
569
530
|
"type": "boolean",
|
|
570
|
-
"description": "
|
|
531
|
+
"description": "If true, return a single prompt-ready bundle of matched bodies instead of a match list. Response shape changes to `{bundle, meta: {included, skipped, ...}}`. Default false."
|
|
571
532
|
},
|
|
572
533
|
"format": {
|
|
573
534
|
"type": "string",
|
|
@@ -575,24 +536,12 @@
|
|
|
575
536
|
"xml",
|
|
576
537
|
"markdown"
|
|
577
538
|
],
|
|
578
|
-
"
|
|
579
|
-
"description": "Bundle format. xml = Anthropic-recommended <document> tags; markdown = ## headers + fenced blocks"
|
|
539
|
+
"description": "Bundle format when `include_bodies` is true. xml = Anthropic-recommended <document> tags (default); markdown = ## headers + fenced blocks. Ignored otherwise."
|
|
580
540
|
},
|
|
581
541
|
"max_tokens": {
|
|
582
542
|
"type": "integer",
|
|
583
543
|
"exclusiveMinimum": 0,
|
|
584
|
-
"
|
|
585
|
-
"description": "Token budget. Files added in rank order until the next would exceed; remainder go to skipped[]"
|
|
586
|
-
},
|
|
587
|
-
"kind": {
|
|
588
|
-
"type": "string",
|
|
589
|
-
"enum": [
|
|
590
|
-
"dictionary",
|
|
591
|
-
"note",
|
|
592
|
-
"journal",
|
|
593
|
-
"project"
|
|
594
|
-
],
|
|
595
|
-
"description": "Filter by content class. dictionary = authoritative KB, note = informational KB, journal = time-log, project = project file."
|
|
544
|
+
"description": "Token budget when `include_bodies` is true (default 50000). Files added in rank order until the next would exceed; remainder go to `meta.skipped[]`. Ignored otherwise."
|
|
596
545
|
}
|
|
597
546
|
},
|
|
598
547
|
"required": [
|
|
@@ -607,7 +556,7 @@
|
|
|
607
556
|
},
|
|
608
557
|
{
|
|
609
558
|
"name": "tags.add",
|
|
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 `
|
|
559
|
+
"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 `tags.search`; to remove tags use `tags.remove`.",
|
|
611
560
|
"inputSchema": {
|
|
612
561
|
"type": "object",
|
|
613
562
|
"properties": {
|
|
@@ -636,7 +585,7 @@
|
|
|
636
585
|
},
|
|
637
586
|
{
|
|
638
587
|
"name": "tags.remove",
|
|
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 `
|
|
588
|
+
"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 `tags.list`). 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 `tags.list`. To remove ALL tags from many files via a query, see `tags.search` (additive only) — there is no bulk-untag-by-query tool.",
|
|
640
589
|
"inputSchema": {
|
|
641
590
|
"type": "object",
|
|
642
591
|
"properties": {
|
|
@@ -665,7 +614,7 @@
|
|
|
665
614
|
},
|
|
666
615
|
{
|
|
667
616
|
"name": "tags.set_favorite",
|
|
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; `
|
|
617
|
+
"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; `files.list` / `files.search` accept `favorite: true` to filter to the pinned set.",
|
|
669
618
|
"inputSchema": {
|
|
670
619
|
"type": "object",
|
|
671
620
|
"properties": {
|
|
@@ -691,7 +640,7 @@
|
|
|
691
640
|
},
|
|
692
641
|
{
|
|
693
642
|
"name": "tags.list",
|
|
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 `
|
|
643
|
+
"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 `tags.remove`. For tags on a specific file, use `files.describe`.",
|
|
695
644
|
"inputSchema": {
|
|
696
645
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
697
646
|
"type": "object",
|
|
@@ -703,7 +652,7 @@
|
|
|
703
652
|
},
|
|
704
653
|
{
|
|
705
654
|
"name": "projects.list",
|
|
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`, `
|
|
655
|
+
"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 (`files.search`, `files.list`, `admin.commit_backup`, `projects.refresh_index`, etc.). To register a new project use `projects.register`; to inspect its Hands tools use `hands.list`.",
|
|
707
656
|
"inputSchema": {
|
|
708
657
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
709
658
|
"type": "object",
|
|
@@ -870,59 +819,7 @@
|
|
|
870
819
|
}
|
|
871
820
|
},
|
|
872
821
|
"required": [
|
|
873
|
-
"url"
|
|
874
|
-
],
|
|
875
|
-
"additionalProperties": false,
|
|
876
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
877
|
-
},
|
|
878
|
-
"execution": {
|
|
879
|
-
"taskSupport": "forbidden"
|
|
880
|
-
}
|
|
881
|
-
},
|
|
882
|
-
{
|
|
883
|
-
"name": "files.get_history",
|
|
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
|
-
"inputSchema": {
|
|
886
|
-
"type": "object",
|
|
887
|
-
"properties": {
|
|
888
|
-
"file_id": {
|
|
889
|
-
"type": "number",
|
|
890
|
-
"description": "ID of the file"
|
|
891
|
-
}
|
|
892
|
-
},
|
|
893
|
-
"required": [
|
|
894
|
-
"file_id"
|
|
895
|
-
],
|
|
896
|
-
"additionalProperties": false,
|
|
897
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
898
|
-
},
|
|
899
|
-
"execution": {
|
|
900
|
-
"taskSupport": "forbidden"
|
|
901
|
-
}
|
|
902
|
-
},
|
|
903
|
-
{
|
|
904
|
-
"name": "files.get_diff",
|
|
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
|
-
"inputSchema": {
|
|
907
|
-
"type": "object",
|
|
908
|
-
"properties": {
|
|
909
|
-
"file_id": {
|
|
910
|
-
"type": "number",
|
|
911
|
-
"description": "ID of the file"
|
|
912
|
-
},
|
|
913
|
-
"commit_a": {
|
|
914
|
-
"type": "string",
|
|
915
|
-
"description": "Earlier commit hash (from get_history)"
|
|
916
|
-
},
|
|
917
|
-
"commit_b": {
|
|
918
|
-
"type": "string",
|
|
919
|
-
"description": "Later commit hash (from get_history)"
|
|
920
|
-
}
|
|
921
|
-
},
|
|
922
|
-
"required": [
|
|
923
|
-
"file_id",
|
|
924
|
-
"commit_a",
|
|
925
|
-
"commit_b"
|
|
822
|
+
"url"
|
|
926
823
|
],
|
|
927
824
|
"additionalProperties": false,
|
|
928
825
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -932,23 +829,18 @@
|
|
|
932
829
|
}
|
|
933
830
|
},
|
|
934
831
|
{
|
|
935
|
-
"name": "files.
|
|
936
|
-
"description": "
|
|
832
|
+
"name": "files.get_history",
|
|
833
|
+
"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 `files.get_diff` to see exact line changes; use `files.restore` to roll back.",
|
|
937
834
|
"inputSchema": {
|
|
938
835
|
"type": "object",
|
|
939
836
|
"properties": {
|
|
940
837
|
"file_id": {
|
|
941
838
|
"type": "number",
|
|
942
839
|
"description": "ID of the file"
|
|
943
|
-
},
|
|
944
|
-
"hash": {
|
|
945
|
-
"type": "string",
|
|
946
|
-
"description": "Commit hash to restore from (from get_history)"
|
|
947
840
|
}
|
|
948
841
|
},
|
|
949
842
|
"required": [
|
|
950
|
-
"file_id"
|
|
951
|
-
"hash"
|
|
843
|
+
"file_id"
|
|
952
844
|
],
|
|
953
845
|
"additionalProperties": false,
|
|
954
846
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -958,18 +850,28 @@
|
|
|
958
850
|
}
|
|
959
851
|
},
|
|
960
852
|
{
|
|
961
|
-
"name": "files.
|
|
962
|
-
"description": "Return
|
|
853
|
+
"name": "files.get_diff",
|
|
854
|
+
"description": "Return the unified diff of one file between two commit hashes (typically obtained from `files.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 `files.get_history` to see WHAT changed, not just THAT it changed.",
|
|
963
855
|
"inputSchema": {
|
|
964
856
|
"type": "object",
|
|
965
857
|
"properties": {
|
|
966
858
|
"file_id": {
|
|
967
859
|
"type": "number",
|
|
968
|
-
"description": "
|
|
860
|
+
"description": "ID of the file"
|
|
861
|
+
},
|
|
862
|
+
"commit_a": {
|
|
863
|
+
"type": "string",
|
|
864
|
+
"description": "Earlier commit hash (from get_history)"
|
|
865
|
+
},
|
|
866
|
+
"commit_b": {
|
|
867
|
+
"type": "string",
|
|
868
|
+
"description": "Later commit hash (from get_history)"
|
|
969
869
|
}
|
|
970
870
|
},
|
|
971
871
|
"required": [
|
|
972
|
-
"file_id"
|
|
872
|
+
"file_id",
|
|
873
|
+
"commit_a",
|
|
874
|
+
"commit_b"
|
|
973
875
|
],
|
|
974
876
|
"additionalProperties": false,
|
|
975
877
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -979,23 +881,23 @@
|
|
|
979
881
|
}
|
|
980
882
|
},
|
|
981
883
|
{
|
|
982
|
-
"name": "files.
|
|
983
|
-
"description": "
|
|
884
|
+
"name": "files.restore",
|
|
885
|
+
"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 `files.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.",
|
|
984
886
|
"inputSchema": {
|
|
985
887
|
"type": "object",
|
|
986
888
|
"properties": {
|
|
987
889
|
"file_id": {
|
|
988
890
|
"type": "number",
|
|
989
|
-
"description": "
|
|
891
|
+
"description": "ID of the file"
|
|
990
892
|
},
|
|
991
|
-
"
|
|
893
|
+
"hash": {
|
|
992
894
|
"type": "string",
|
|
993
|
-
"description": "
|
|
895
|
+
"description": "Commit hash to restore from (from get_history)"
|
|
994
896
|
}
|
|
995
897
|
},
|
|
996
898
|
"required": [
|
|
997
899
|
"file_id",
|
|
998
|
-
"
|
|
900
|
+
"hash"
|
|
999
901
|
],
|
|
1000
902
|
"additionalProperties": false,
|
|
1001
903
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -1005,28 +907,18 @@
|
|
|
1005
907
|
}
|
|
1006
908
|
},
|
|
1007
909
|
{
|
|
1008
|
-
"name": "files.
|
|
1009
|
-
"description": "
|
|
910
|
+
"name": "files.read_outline",
|
|
911
|
+
"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 `files.read({ id, section })` or `files.update({ file_id, section, content })` 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 `files.read` in full or `files.read({ id, lines })`).",
|
|
1010
912
|
"inputSchema": {
|
|
1011
913
|
"type": "object",
|
|
1012
914
|
"properties": {
|
|
1013
915
|
"file_id": {
|
|
1014
916
|
"type": "number",
|
|
1015
917
|
"description": "File ID"
|
|
1016
|
-
},
|
|
1017
|
-
"heading": {
|
|
1018
|
-
"type": "string",
|
|
1019
|
-
"description": "Heading whose body to replace (case-insensitive)"
|
|
1020
|
-
},
|
|
1021
|
-
"content": {
|
|
1022
|
-
"type": "string",
|
|
1023
|
-
"description": "New body content (heading line is preserved automatically)"
|
|
1024
918
|
}
|
|
1025
919
|
},
|
|
1026
920
|
"required": [
|
|
1027
|
-
"file_id"
|
|
1028
|
-
"heading",
|
|
1029
|
-
"content"
|
|
921
|
+
"file_id"
|
|
1030
922
|
],
|
|
1031
923
|
"additionalProperties": false,
|
|
1032
924
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -1037,7 +929,7 @@
|
|
|
1037
929
|
},
|
|
1038
930
|
{
|
|
1039
931
|
"name": "folders.list",
|
|
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 `
|
|
932
|
+
"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 `files.create`'s `folder` argument or to navigate vault structure; to actually create one use `folders.create`.",
|
|
1041
933
|
"inputSchema": {
|
|
1042
934
|
"type": "object",
|
|
1043
935
|
"properties": {
|
|
@@ -1086,7 +978,7 @@
|
|
|
1086
978
|
},
|
|
1087
979
|
{
|
|
1088
980
|
"name": "folders.delete",
|
|
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 `
|
|
981
|
+
"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 `folders.create`. 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
982
|
"inputSchema": {
|
|
1091
983
|
"type": "object",
|
|
1092
984
|
"properties": {
|
|
@@ -1147,7 +1039,7 @@
|
|
|
1147
1039
|
},
|
|
1148
1040
|
{
|
|
1149
1041
|
"name": "files.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 `
|
|
1042
|
+
"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
1043
|
"inputSchema": {
|
|
1152
1044
|
"type": "object",
|
|
1153
1045
|
"properties": {
|
|
@@ -1180,118 +1072,9 @@
|
|
|
1180
1072
|
"taskSupport": "forbidden"
|
|
1181
1073
|
}
|
|
1182
1074
|
},
|
|
1183
|
-
{
|
|
1184
|
-
"name": "files.create_many",
|
|
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
|
-
"inputSchema": {
|
|
1187
|
-
"type": "object",
|
|
1188
|
-
"properties": {
|
|
1189
|
-
"files": {
|
|
1190
|
-
"type": "array",
|
|
1191
|
-
"items": {
|
|
1192
|
-
"type": "object",
|
|
1193
|
-
"properties": {
|
|
1194
|
-
"title": {
|
|
1195
|
-
"type": "string",
|
|
1196
|
-
"description": "File title."
|
|
1197
|
-
},
|
|
1198
|
-
"content": {
|
|
1199
|
-
"type": "string",
|
|
1200
|
-
"description": "File body content (markdown, mermaid, or HTML depending on format)."
|
|
1201
|
-
},
|
|
1202
|
-
"destination": {
|
|
1203
|
-
"type": "string",
|
|
1204
|
-
"enum": [
|
|
1205
|
-
"knowledge",
|
|
1206
|
-
"project",
|
|
1207
|
-
"kontexta"
|
|
1208
|
-
],
|
|
1209
|
-
"description": "Storage destination: 'knowledge' for KB, 'project' for a project, 'kontexta' for app-internal."
|
|
1210
|
-
},
|
|
1211
|
-
"project_id": {
|
|
1212
|
-
"type": "number",
|
|
1213
|
-
"description": "Project ID — required when destination is 'project' or 'kontexta'."
|
|
1214
|
-
},
|
|
1215
|
-
"folder": {
|
|
1216
|
-
"type": "string",
|
|
1217
|
-
"description": "Relative folder path within the destination (e.g. 'notes/daily')."
|
|
1218
|
-
},
|
|
1219
|
-
"tags": {
|
|
1220
|
-
"type": "array",
|
|
1221
|
-
"items": {
|
|
1222
|
-
"type": "string"
|
|
1223
|
-
},
|
|
1224
|
-
"description": "Tags to apply to this file."
|
|
1225
|
-
},
|
|
1226
|
-
"format": {
|
|
1227
|
-
"type": "string",
|
|
1228
|
-
"enum": [
|
|
1229
|
-
"md",
|
|
1230
|
-
"mmd",
|
|
1231
|
-
"html"
|
|
1232
|
-
],
|
|
1233
|
-
"description": "File format: 'md' (default), 'mmd' (Mermaid diagram), or 'html' (report)."
|
|
1234
|
-
},
|
|
1235
|
-
"kind": {
|
|
1236
|
-
"type": "string",
|
|
1237
|
-
"enum": [
|
|
1238
|
-
"dictionary",
|
|
1239
|
-
"note"
|
|
1240
|
-
],
|
|
1241
|
-
"description": "REQUIRED per-item for destination='knowledge'. See create_file for the dictionary/note rubric."
|
|
1242
|
-
}
|
|
1243
|
-
},
|
|
1244
|
-
"required": [
|
|
1245
|
-
"title",
|
|
1246
|
-
"content",
|
|
1247
|
-
"destination"
|
|
1248
|
-
],
|
|
1249
|
-
"additionalProperties": false
|
|
1250
|
-
},
|
|
1251
|
-
"minItems": 1,
|
|
1252
|
-
"maxItems": 200,
|
|
1253
|
-
"description": "Files to create (max 200 per call)"
|
|
1254
|
-
}
|
|
1255
|
-
},
|
|
1256
|
-
"required": [
|
|
1257
|
-
"files"
|
|
1258
|
-
],
|
|
1259
|
-
"additionalProperties": false,
|
|
1260
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1261
|
-
},
|
|
1262
|
-
"execution": {
|
|
1263
|
-
"taskSupport": "forbidden"
|
|
1264
|
-
}
|
|
1265
|
-
},
|
|
1266
|
-
{
|
|
1267
|
-
"name": "files.delete_many",
|
|
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
|
-
"inputSchema": {
|
|
1270
|
-
"type": "object",
|
|
1271
|
-
"properties": {
|
|
1272
|
-
"ids": {
|
|
1273
|
-
"type": "array",
|
|
1274
|
-
"items": {
|
|
1275
|
-
"type": "number"
|
|
1276
|
-
},
|
|
1277
|
-
"minItems": 1,
|
|
1278
|
-
"maxItems": 500,
|
|
1279
|
-
"description": "File IDs to delete (max 500 per call)"
|
|
1280
|
-
}
|
|
1281
|
-
},
|
|
1282
|
-
"required": [
|
|
1283
|
-
"ids"
|
|
1284
|
-
],
|
|
1285
|
-
"additionalProperties": false,
|
|
1286
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1287
|
-
},
|
|
1288
|
-
"execution": {
|
|
1289
|
-
"taskSupport": "forbidden"
|
|
1290
|
-
}
|
|
1291
|
-
},
|
|
1292
1075
|
{
|
|
1293
1076
|
"name": "tags.search",
|
|
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}`.",
|
|
1077
|
+
"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
1078
|
"inputSchema": {
|
|
1296
1079
|
"type": "object",
|
|
1297
1080
|
"properties": {
|
|
@@ -1338,32 +1121,19 @@
|
|
|
1338
1121
|
}
|
|
1339
1122
|
},
|
|
1340
1123
|
{
|
|
1341
|
-
"name": "
|
|
1342
|
-
"description": "
|
|
1124
|
+
"name": "admin.overview",
|
|
1125
|
+
"description": "Vault-state snapshot. `mode: 'stats'` = 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. `mode: 'whats_new'` = list files created or modified since a checkpoint (`since`, REQUIRED for this mode — ISO-8601 like `2025-01-15T00:00:00Z` or relative durations like `1h`/`7d`/`2w`; invalid formats throw); CAVEAT: hard-deleted files are NOT surfaced, only mtime-driven changes. Both modes: `project_id: null` = KB only; omit = everything. Read-only; no side effects, auth, or rate limits. Use `stats` as a cheap dashboard or to spot untagged content for cleanup (for live disk-vs-index drift use `files.diff_against_disk`); use `whats_new` at session start to catch up.",
|
|
1343
1126
|
"inputSchema": {
|
|
1344
1127
|
"type": "object",
|
|
1345
1128
|
"properties": {
|
|
1346
|
-
"
|
|
1129
|
+
"mode": {
|
|
1347
1130
|
"type": "string",
|
|
1348
|
-
"
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
"additionalProperties": false,
|
|
1355
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1356
|
-
},
|
|
1357
|
-
"execution": {
|
|
1358
|
-
"taskSupport": "forbidden"
|
|
1359
|
-
}
|
|
1360
|
-
},
|
|
1361
|
-
{
|
|
1362
|
-
"name": "admin.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`.",
|
|
1364
|
-
"inputSchema": {
|
|
1365
|
-
"type": "object",
|
|
1366
|
-
"properties": {
|
|
1131
|
+
"enum": [
|
|
1132
|
+
"stats",
|
|
1133
|
+
"whats_new"
|
|
1134
|
+
],
|
|
1135
|
+
"description": "Which snapshot to return. 'whats_new' requires `since`."
|
|
1136
|
+
},
|
|
1367
1137
|
"project_id": {
|
|
1368
1138
|
"type": [
|
|
1369
1139
|
"number",
|
|
@@ -1375,13 +1145,28 @@
|
|
|
1375
1145
|
"type": "integer",
|
|
1376
1146
|
"exclusiveMinimum": 0,
|
|
1377
1147
|
"maximum": 100,
|
|
1378
|
-
"description": "
|
|
1148
|
+
"description": "mode='stats' only: how many top tags to return (default 10)"
|
|
1379
1149
|
},
|
|
1380
1150
|
"include_token_total": {
|
|
1381
1151
|
"type": "boolean",
|
|
1382
|
-
"description": "
|
|
1152
|
+
"description": "mode='stats' only: if true, stat every matching file on disk to compute total est_tokens. Default false (cheap)."
|
|
1153
|
+
},
|
|
1154
|
+
"since": {
|
|
1155
|
+
"type": "string",
|
|
1156
|
+
"description": "REQUIRED for mode='whats_new'. ISO 8601 timestamp or relative duration (e.g. \"1h\", \"7d\", \"2w\")."
|
|
1157
|
+
},
|
|
1158
|
+
"include_tags": {
|
|
1159
|
+
"type": "boolean",
|
|
1160
|
+
"description": "mode='whats_new' only: attach tags[] to each file. Default true."
|
|
1161
|
+
},
|
|
1162
|
+
"limit": {
|
|
1163
|
+
"type": "number",
|
|
1164
|
+
"description": "mode='whats_new' only: max files returned. Default 200."
|
|
1383
1165
|
}
|
|
1384
1166
|
},
|
|
1167
|
+
"required": [
|
|
1168
|
+
"mode"
|
|
1169
|
+
],
|
|
1385
1170
|
"additionalProperties": false,
|
|
1386
1171
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1387
1172
|
},
|
|
@@ -1391,7 +1176,7 @@
|
|
|
1391
1176
|
},
|
|
1392
1177
|
{
|
|
1393
1178
|
"name": "tags.suggest",
|
|
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 `
|
|
1179
|
+
"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
1180
|
"inputSchema": {
|
|
1396
1181
|
"type": "object",
|
|
1397
1182
|
"properties": {
|
|
@@ -1418,7 +1203,7 @@
|
|
|
1418
1203
|
},
|
|
1419
1204
|
{
|
|
1420
1205
|
"name": "files.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.",
|
|
1206
|
+
"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
1207
|
"inputSchema": {
|
|
1423
1208
|
"type": "object",
|
|
1424
1209
|
"properties": {
|
|
@@ -1439,7 +1224,7 @@
|
|
|
1439
1224
|
},
|
|
1440
1225
|
{
|
|
1441
1226
|
"name": "projects.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.",
|
|
1227
|
+
"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
1228
|
"inputSchema": {
|
|
1444
1229
|
"type": "object",
|
|
1445
1230
|
"properties": {
|
|
@@ -1458,45 +1243,9 @@
|
|
|
1458
1243
|
"taskSupport": "forbidden"
|
|
1459
1244
|
}
|
|
1460
1245
|
},
|
|
1461
|
-
{
|
|
1462
|
-
"name": "admin.whats_new",
|
|
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
|
-
"inputSchema": {
|
|
1465
|
-
"type": "object",
|
|
1466
|
-
"properties": {
|
|
1467
|
-
"since": {
|
|
1468
|
-
"type": "string",
|
|
1469
|
-
"description": "ISO 8601 timestamp or relative duration (e.g. \"1h\", \"7d\", \"2w\")."
|
|
1470
|
-
},
|
|
1471
|
-
"project_id": {
|
|
1472
|
-
"type": [
|
|
1473
|
-
"number",
|
|
1474
|
-
"null"
|
|
1475
|
-
],
|
|
1476
|
-
"description": "Filter to a single project. Pass null for knowledge-base-only files. Omit for all."
|
|
1477
|
-
},
|
|
1478
|
-
"include_tags": {
|
|
1479
|
-
"type": "boolean",
|
|
1480
|
-
"description": "Attach tags[] to each file. Default true."
|
|
1481
|
-
},
|
|
1482
|
-
"limit": {
|
|
1483
|
-
"type": "number",
|
|
1484
|
-
"description": "Max files returned. Default 200."
|
|
1485
|
-
}
|
|
1486
|
-
},
|
|
1487
|
-
"required": [
|
|
1488
|
-
"since"
|
|
1489
|
-
],
|
|
1490
|
-
"additionalProperties": false,
|
|
1491
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1492
|
-
},
|
|
1493
|
-
"execution": {
|
|
1494
|
-
"taskSupport": "forbidden"
|
|
1495
|
-
}
|
|
1496
|
-
},
|
|
1497
1246
|
{
|
|
1498
1247
|
"name": "projects.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 `
|
|
1248
|
+
"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
1249
|
"inputSchema": {
|
|
1501
1250
|
"type": "object",
|
|
1502
1251
|
"properties": {
|
|
@@ -1529,11 +1278,17 @@
|
|
|
1529
1278
|
},
|
|
1530
1279
|
{
|
|
1531
1280
|
"name": "hands.list",
|
|
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;
|
|
1281
|
+
"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. Pass `schema: true` to instead get the complete `kontexta.json` authoring reference (JSON schema, validation rules, security guarantees, limitations, annotated example) — a static document, unrelated to any specific registered hand. Read-only; no side effects, auth, or rate limits. Use the default list mode to discover what side-effectful project commands the agent is permitted to run; use `schema: true` when helping a user write or fix a `kontexta.json`; reload after editing one with `hands.reload`.",
|
|
1533
1282
|
"inputSchema": {
|
|
1534
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1535
1283
|
"type": "object",
|
|
1536
|
-
"properties": {
|
|
1284
|
+
"properties": {
|
|
1285
|
+
"schema": {
|
|
1286
|
+
"type": "boolean",
|
|
1287
|
+
"description": "If true, return the kontexta.json authoring reference document instead of the registered-hands list. Default false."
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
"additionalProperties": false,
|
|
1291
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1537
1292
|
},
|
|
1538
1293
|
"execution": {
|
|
1539
1294
|
"taskSupport": "forbidden"
|
|
@@ -1541,7 +1296,7 @@
|
|
|
1541
1296
|
},
|
|
1542
1297
|
{
|
|
1543
1298
|
"name": "hands.reload",
|
|
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 `
|
|
1299
|
+
"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.list({ schema: true })`.",
|
|
1545
1300
|
"inputSchema": {
|
|
1546
1301
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1547
1302
|
"type": "object",
|
|
@@ -1572,18 +1327,6 @@
|
|
|
1572
1327
|
"taskSupport": "forbidden"
|
|
1573
1328
|
}
|
|
1574
1329
|
},
|
|
1575
|
-
{
|
|
1576
|
-
"name": "hands.describe_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`.",
|
|
1578
|
-
"inputSchema": {
|
|
1579
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1580
|
-
"type": "object",
|
|
1581
|
-
"properties": {}
|
|
1582
|
-
},
|
|
1583
|
-
"execution": {
|
|
1584
|
-
"taskSupport": "forbidden"
|
|
1585
|
-
}
|
|
1586
|
-
},
|
|
1587
1330
|
{
|
|
1588
1331
|
"name": "admin.get_profile",
|
|
1589
1332
|
"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.",
|
|
@@ -1596,57 +1339,6 @@
|
|
|
1596
1339
|
"taskSupport": "forbidden"
|
|
1597
1340
|
}
|
|
1598
1341
|
},
|
|
1599
|
-
{
|
|
1600
|
-
"name": "journal.note",
|
|
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
|
-
"inputSchema": {
|
|
1603
|
-
"type": "object",
|
|
1604
|
-
"properties": {
|
|
1605
|
-
"text": {
|
|
1606
|
-
"type": "string",
|
|
1607
|
-
"minLength": 1,
|
|
1608
|
-
"description": "Body of the note (markdown allowed)."
|
|
1609
|
-
},
|
|
1610
|
-
"tags": {
|
|
1611
|
-
"type": "array",
|
|
1612
|
-
"items": {
|
|
1613
|
-
"type": "string"
|
|
1614
|
-
},
|
|
1615
|
-
"description": "Optional tags for the note."
|
|
1616
|
-
}
|
|
1617
|
-
},
|
|
1618
|
-
"required": [
|
|
1619
|
-
"text"
|
|
1620
|
-
],
|
|
1621
|
-
"additionalProperties": false,
|
|
1622
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1623
|
-
},
|
|
1624
|
-
"execution": {
|
|
1625
|
-
"taskSupport": "forbidden"
|
|
1626
|
-
}
|
|
1627
|
-
},
|
|
1628
|
-
{
|
|
1629
|
-
"name": "journal.intent",
|
|
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
|
-
"inputSchema": {
|
|
1632
|
-
"type": "object",
|
|
1633
|
-
"properties": {
|
|
1634
|
-
"summary": {
|
|
1635
|
-
"type": "string",
|
|
1636
|
-
"minLength": 1,
|
|
1637
|
-
"description": "One-line summary of the new intent."
|
|
1638
|
-
}
|
|
1639
|
-
},
|
|
1640
|
-
"required": [
|
|
1641
|
-
"summary"
|
|
1642
|
-
],
|
|
1643
|
-
"additionalProperties": false,
|
|
1644
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1645
|
-
},
|
|
1646
|
-
"execution": {
|
|
1647
|
-
"taskSupport": "forbidden"
|
|
1648
|
-
}
|
|
1649
|
-
},
|
|
1650
1342
|
{
|
|
1651
1343
|
"name": "journal.distill",
|
|
1652
1344
|
"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.",
|
|
@@ -1734,7 +1426,7 @@
|
|
|
1734
1426
|
},
|
|
1735
1427
|
{
|
|
1736
1428
|
"name": "calendar.entities.add",
|
|
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 `
|
|
1429
|
+
"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.entities.link` afterwards to record dependencies for conflict detection.",
|
|
1738
1430
|
"inputSchema": {
|
|
1739
1431
|
"type": "object",
|
|
1740
1432
|
"properties": {
|
|
@@ -1768,13 +1460,13 @@
|
|
|
1768
1460
|
},
|
|
1769
1461
|
{
|
|
1770
1462
|
"name": "calendar.entities.update",
|
|
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 `
|
|
1463
|
+
"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
1464
|
"inputSchema": {
|
|
1773
1465
|
"type": "object",
|
|
1774
1466
|
"properties": {
|
|
1775
1467
|
"id": {
|
|
1776
1468
|
"type": "integer",
|
|
1777
|
-
"description": "Entity id (from `
|
|
1469
|
+
"description": "Entity id (from `calendar.entities.add` or `calendar.entities.list`)."
|
|
1778
1470
|
},
|
|
1779
1471
|
"name": {
|
|
1780
1472
|
"type": "string",
|
|
@@ -1819,7 +1511,7 @@
|
|
|
1819
1511
|
},
|
|
1820
1512
|
{
|
|
1821
1513
|
"name": "calendar.entities.delete",
|
|
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 `
|
|
1514
|
+
"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
1515
|
"inputSchema": {
|
|
1824
1516
|
"type": "object",
|
|
1825
1517
|
"properties": {
|
|
@@ -1862,7 +1554,7 @@
|
|
|
1862
1554
|
},
|
|
1863
1555
|
{
|
|
1864
1556
|
"name": "calendar.entities.link",
|
|
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 `
|
|
1557
|
+
"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
1558
|
"inputSchema": {
|
|
1867
1559
|
"type": "object",
|
|
1868
1560
|
"properties": {
|
|
@@ -1896,7 +1588,7 @@
|
|
|
1896
1588
|
},
|
|
1897
1589
|
{
|
|
1898
1590
|
"name": "calendar.events.add",
|
|
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 `
|
|
1591
|
+
"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
1592
|
"inputSchema": {
|
|
1901
1593
|
"type": "object",
|
|
1902
1594
|
"properties": {
|
|
@@ -2036,7 +1728,7 @@
|
|
|
2036
1728
|
},
|
|
2037
1729
|
{
|
|
2038
1730
|
"name": "calendar.events.list",
|
|
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 `
|
|
1731
|
+
"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
1732
|
"inputSchema": {
|
|
2041
1733
|
"type": "object",
|
|
2042
1734
|
"properties": {
|
|
@@ -2075,7 +1767,7 @@
|
|
|
2075
1767
|
},
|
|
2076
1768
|
{
|
|
2077
1769
|
"name": "calendar.events.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 `
|
|
1770
|
+
"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
1771
|
"inputSchema": {
|
|
2080
1772
|
"type": "object",
|
|
2081
1773
|
"properties": {
|