kontexta 4.7.1 → 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 +29 -0
- package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
- package/bundle/standalone/apps/web/.next/app-build-manifest.json +54 -54
- package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +13 -13
- package/bundle/standalone/apps/web/.next/build-manifest.json +2 -2
- package/bundle/standalone/apps/web/.next/prerender-manifest.json +13 -13
- 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.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 +2 -2
- 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 +13 -13
- 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 +233 -542
- 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 +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 +448 -471
- 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 +1 -1
- 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 -14
- 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 -13
- 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/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 +2 -17
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js.map +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-eccc7438c998fcce.js +0 -1
- /package/bundle/standalone/apps/web/.next/static/{DWDlM7S8dTnMlrhKW9K_X → hUyNKiBOk3HaC0S0gE_N8}/_buildManifest.js +0 -0
- /package/bundle/standalone/apps/web/.next/static/{DWDlM7S8dTnMlrhKW9K_X → 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 `files.read` 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,12 +257,34 @@
|
|
|
234
257
|
},
|
|
235
258
|
"minItems": 1,
|
|
236
259
|
"maxItems": 200,
|
|
237
|
-
"description": "
|
|
260
|
+
"description": "Batch mode: multiple file IDs (max 200 per call); returns an array plus aggregate token cost."
|
|
261
|
+
},
|
|
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`."
|
|
265
|
+
},
|
|
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`."
|
|
238
286
|
}
|
|
239
287
|
},
|
|
240
|
-
"required": [
|
|
241
|
-
"ids"
|
|
242
|
-
],
|
|
243
288
|
"additionalProperties": false,
|
|
244
289
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
245
290
|
},
|
|
@@ -268,78 +313,9 @@
|
|
|
268
313
|
"taskSupport": "forbidden"
|
|
269
314
|
}
|
|
270
315
|
},
|
|
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"
|
|
280
|
-
},
|
|
281
|
-
"from": {
|
|
282
|
-
"type": "integer",
|
|
283
|
-
"exclusiveMinimum": 0,
|
|
284
|
-
"description": "First line (1-indexed, inclusive)"
|
|
285
|
-
},
|
|
286
|
-
"to": {
|
|
287
|
-
"type": "integer",
|
|
288
|
-
"exclusiveMinimum": 0,
|
|
289
|
-
"description": "Last line (1-indexed, inclusive)"
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
"required": [
|
|
293
|
-
"id",
|
|
294
|
-
"from",
|
|
295
|
-
"to"
|
|
296
|
-
],
|
|
297
|
-
"additionalProperties": false,
|
|
298
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
299
|
-
},
|
|
300
|
-
"execution": {
|
|
301
|
-
"taskSupport": "forbidden"
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"name": "files.grep",
|
|
306
|
-
"description": "Match a JS regex against one file's lines and return matched lines with line numbers (capped: default 100, max 500). Catches what FTS misses: URLs, hyphenated terms, code identifiers. Read-only; no side effects, auth, or rate limits. Invalid regex throws `invalid regex`. Returns `{matches, match_count, truncated}`. Use after `files.read_outline` when you know the file but need a specific reference; for cross-file regex use `files.regex_search`; for keyword/concept search use `files.search`.",
|
|
307
|
-
"inputSchema": {
|
|
308
|
-
"type": "object",
|
|
309
|
-
"properties": {
|
|
310
|
-
"id": {
|
|
311
|
-
"type": "number",
|
|
312
|
-
"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
|
-
}
|
|
328
|
-
},
|
|
329
|
-
"required": [
|
|
330
|
-
"id",
|
|
331
|
-
"pattern"
|
|
332
|
-
],
|
|
333
|
-
"additionalProperties": false,
|
|
334
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
335
|
-
},
|
|
336
|
-
"execution": {
|
|
337
|
-
"taskSupport": "forbidden"
|
|
338
|
-
}
|
|
339
|
-
},
|
|
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,12 +323,16 @@
|
|
|
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
338
|
"type": "boolean",
|
|
@@ -362,13 +342,19 @@
|
|
|
362
342
|
"type": "integer",
|
|
363
343
|
"exclusiveMinimum": 0,
|
|
364
344
|
"maximum": 2000,
|
|
365
|
-
"description": "Cap on files scanned (default 500)"
|
|
345
|
+
"description": "Cap on files scanned (default 500). Ignored when `file_id` is set."
|
|
366
346
|
},
|
|
367
347
|
"max_matches_per_file": {
|
|
368
348
|
"type": "integer",
|
|
369
349
|
"exclusiveMinimum": 0,
|
|
370
350
|
"maximum": 100,
|
|
371
|
-
"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."
|
|
372
358
|
},
|
|
373
359
|
"kind": {
|
|
374
360
|
"type": "string",
|
|
@@ -378,7 +364,7 @@
|
|
|
378
364
|
"journal",
|
|
379
365
|
"project"
|
|
380
366
|
],
|
|
381
|
-
"description": "Filter by content class before scanning."
|
|
367
|
+
"description": "Filter by content class before scanning. Ignored when `file_id` is set."
|
|
382
368
|
}
|
|
383
369
|
},
|
|
384
370
|
"required": [
|
|
@@ -393,7 +379,7 @@
|
|
|
393
379
|
},
|
|
394
380
|
{
|
|
395
381
|
"name": "files.update",
|
|
396
|
-
"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.",
|
|
397
383
|
"inputSchema": {
|
|
398
384
|
"type": "object",
|
|
399
385
|
"properties": {
|
|
@@ -403,7 +389,11 @@
|
|
|
403
389
|
},
|
|
404
390
|
"content": {
|
|
405
391
|
"type": "string",
|
|
406
|
-
"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."
|
|
407
397
|
}
|
|
408
398
|
},
|
|
409
399
|
"required": [
|
|
@@ -419,17 +409,22 @@
|
|
|
419
409
|
},
|
|
420
410
|
{
|
|
421
411
|
"name": "files.delete",
|
|
422
|
-
"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.",
|
|
423
413
|
"inputSchema": {
|
|
424
414
|
"type": "object",
|
|
425
415
|
"properties": {
|
|
426
|
-
"
|
|
427
|
-
"type": "
|
|
428
|
-
"
|
|
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."
|
|
429
424
|
}
|
|
430
425
|
},
|
|
431
426
|
"required": [
|
|
432
|
-
"
|
|
427
|
+
"ids"
|
|
433
428
|
],
|
|
434
429
|
"additionalProperties": false,
|
|
435
430
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -440,7 +435,7 @@
|
|
|
440
435
|
},
|
|
441
436
|
{
|
|
442
437
|
"name": "files.list",
|
|
443
|
-
"description": "List file metadata with optional filters (project_id, tag, favorite, folder, untagged, kind) and pagination. Read-only; no side effects, auth, or rate limits. Each row is annotated with tags, est_tokens, size_bytes, and content_class; the response includes `total_est_tokens` so you can budget before reading bodies. `project_id: null` returns ONLY Knowledge Base files; omit the field to span everything; `kind` narrows to one content class. Use to browse known structure; for keyword/content lookup use `search`; for a denser whole-vault dump use `
|
|
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`.",
|
|
444
439
|
"inputSchema": {
|
|
445
440
|
"type": "object",
|
|
446
441
|
"properties": {
|
|
@@ -495,7 +490,7 @@
|
|
|
495
490
|
},
|
|
496
491
|
{
|
|
497
492
|
"name": "files.search",
|
|
498
|
-
"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.",
|
|
499
494
|
"inputSchema": {
|
|
500
495
|
"type": "object",
|
|
501
496
|
"properties": {
|
|
@@ -530,45 +525,10 @@
|
|
|
530
525
|
"project"
|
|
531
526
|
],
|
|
532
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."
|
|
533
|
-
}
|
|
534
|
-
},
|
|
535
|
-
"required": [
|
|
536
|
-
"query"
|
|
537
|
-
],
|
|
538
|
-
"additionalProperties": false,
|
|
539
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
540
|
-
},
|
|
541
|
-
"execution": {
|
|
542
|
-
"taskSupport": "forbidden"
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"name": "files.bundle_search",
|
|
547
|
-
"description": "Run an FTS search and concatenate matched bodies into a single prompt-ready bundle (XML `<document>` blocks or markdown headers + fences) capped at `max_tokens`. Files are added in rank order (dictionary-wins first, then BM25) until the next would exceed the budget; the rest go to `skipped[]`. Read-only; no side effects, auth, or rate limits. Use instead of `files.search` + N×`files.read` when you need several related files as one context blob. Defaults: format=xml, max_tokens=50000. `project_id: null` = KB only; `tags[]` requires ALL to match; `kind` narrows to one content class.",
|
|
548
|
-
"inputSchema": {
|
|
549
|
-
"type": "object",
|
|
550
|
-
"properties": {
|
|
551
|
-
"query": {
|
|
552
|
-
"type": "string",
|
|
553
|
-
"description": "Full-text search query"
|
|
554
|
-
},
|
|
555
|
-
"project_id": {
|
|
556
|
-
"type": [
|
|
557
|
-
"number",
|
|
558
|
-
"null"
|
|
559
|
-
],
|
|
560
|
-
"description": "Filter by project ID. Pass null to bundle ONLY Knowledge Base files."
|
|
561
|
-
},
|
|
562
|
-
"tags": {
|
|
563
|
-
"type": "array",
|
|
564
|
-
"items": {
|
|
565
|
-
"type": "string"
|
|
566
|
-
},
|
|
567
|
-
"description": "Filter by tags (all must match)"
|
|
568
528
|
},
|
|
569
|
-
"
|
|
529
|
+
"include_bodies": {
|
|
570
530
|
"type": "boolean",
|
|
571
|
-
"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."
|
|
572
532
|
},
|
|
573
533
|
"format": {
|
|
574
534
|
"type": "string",
|
|
@@ -576,24 +536,12 @@
|
|
|
576
536
|
"xml",
|
|
577
537
|
"markdown"
|
|
578
538
|
],
|
|
579
|
-
"
|
|
580
|
-
"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."
|
|
581
540
|
},
|
|
582
541
|
"max_tokens": {
|
|
583
542
|
"type": "integer",
|
|
584
543
|
"exclusiveMinimum": 0,
|
|
585
|
-
"
|
|
586
|
-
"description": "Token budget. Files added in rank order until the next would exceed; remainder go to skipped[]"
|
|
587
|
-
},
|
|
588
|
-
"kind": {
|
|
589
|
-
"type": "string",
|
|
590
|
-
"enum": [
|
|
591
|
-
"dictionary",
|
|
592
|
-
"note",
|
|
593
|
-
"journal",
|
|
594
|
-
"project"
|
|
595
|
-
],
|
|
596
|
-
"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."
|
|
597
545
|
}
|
|
598
546
|
},
|
|
599
547
|
"required": [
|
|
@@ -608,7 +556,7 @@
|
|
|
608
556
|
},
|
|
609
557
|
{
|
|
610
558
|
"name": "tags.add",
|
|
611
|
-
"description": "Append tags to ONE file. Additive — existing tags are preserved; re-adding an existing tag is a no-op (idempotent per tag). New tag names auto-create rows in the global `tags` table. Persists to local SQLite. No external auth or rate limits. Returns `{success: true}`; throws if file_id is unknown. Use to label a single file. To tag every file matching a query in one call use `
|
|
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`.",
|
|
612
560
|
"inputSchema": {
|
|
613
561
|
"type": "object",
|
|
614
562
|
"properties": {
|
|
@@ -637,7 +585,7 @@
|
|
|
637
585
|
},
|
|
638
586
|
{
|
|
639
587
|
"name": "tags.remove",
|
|
640
|
-
"description": "Detach one or more tag IDs from ONE file. Destructive on the link only — does NOT delete the file or the global tag definition (orphan tags survive in `
|
|
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.",
|
|
641
589
|
"inputSchema": {
|
|
642
590
|
"type": "object",
|
|
643
591
|
"properties": {
|
|
@@ -666,7 +614,7 @@
|
|
|
666
614
|
},
|
|
667
615
|
{
|
|
668
616
|
"name": "tags.set_favorite",
|
|
669
|
-
"description": "Set or clear the favorite flag on one file (idempotent — re-setting the same value is a no-op; not a toggle, you pass the desired state). Persists to local SQLite. No external auth or rate limits. Returns `{success: true}`. Use to curate quick-access pins; `
|
|
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.",
|
|
670
618
|
"inputSchema": {
|
|
671
619
|
"type": "object",
|
|
672
620
|
"properties": {
|
|
@@ -692,7 +640,7 @@
|
|
|
692
640
|
},
|
|
693
641
|
{
|
|
694
642
|
"name": "tags.list",
|
|
695
|
-
"description": "List every tag in the global SQLite database with id, name, and applied count. Read-only; no side effects, auth, or rate limits. Returns the entire taxonomy (not paginated). Use to discover existing labels before tagging (so you reuse rather than fork) or to find tag IDs to feed into `
|
|
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`.",
|
|
696
644
|
"inputSchema": {
|
|
697
645
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
698
646
|
"type": "object",
|
|
@@ -704,7 +652,7 @@
|
|
|
704
652
|
},
|
|
705
653
|
{
|
|
706
654
|
"name": "projects.list",
|
|
707
|
-
"description": "List every registered project with id, name, absolute path, and a derived `has_hands` flag (true when the path exists on disk AND contains a `kontexta.json`). Read-only; no side effects, auth, or rate limits. Use to find the project_id to pass to scoped tools (`search`, `
|
|
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`.",
|
|
708
656
|
"inputSchema": {
|
|
709
657
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
710
658
|
"type": "object",
|
|
@@ -871,59 +819,7 @@
|
|
|
871
819
|
}
|
|
872
820
|
},
|
|
873
821
|
"required": [
|
|
874
|
-
"url"
|
|
875
|
-
],
|
|
876
|
-
"additionalProperties": false,
|
|
877
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
878
|
-
},
|
|
879
|
-
"execution": {
|
|
880
|
-
"taskSupport": "forbidden"
|
|
881
|
-
}
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
"name": "files.get_history",
|
|
885
|
-
"description": "Return the git commit history for one file (newest first), each entry with hash, message, date, and author. Reads the file's owning repo: the project's git repo for project files, the KB backup repo for KB files. Read-only; no side effects, auth, or rate limits. Returns `{file_id, path, history}`; an empty array means the file has not been committed yet. Use to understand a file's evolution before editing or restoring. Pair with `get_diff` to see exact line changes; use `restore_file` to roll back.",
|
|
886
|
-
"inputSchema": {
|
|
887
|
-
"type": "object",
|
|
888
|
-
"properties": {
|
|
889
|
-
"file_id": {
|
|
890
|
-
"type": "number",
|
|
891
|
-
"description": "ID of the file"
|
|
892
|
-
}
|
|
893
|
-
},
|
|
894
|
-
"required": [
|
|
895
|
-
"file_id"
|
|
896
|
-
],
|
|
897
|
-
"additionalProperties": false,
|
|
898
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
899
|
-
},
|
|
900
|
-
"execution": {
|
|
901
|
-
"taskSupport": "forbidden"
|
|
902
|
-
}
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
"name": "files.get_diff",
|
|
906
|
-
"description": "Return the unified diff of one file between two commit hashes (typically obtained from `get_history` for the same file). Read-only; no side effects, auth, or rate limits. Order matters — `commit_a` is treated as the earlier side; reversing the args inverts the diff. Throws if either hash is unknown to the file's repo. Use after `get_history` to see WHAT changed, not just THAT it changed.",
|
|
907
|
-
"inputSchema": {
|
|
908
|
-
"type": "object",
|
|
909
|
-
"properties": {
|
|
910
|
-
"file_id": {
|
|
911
|
-
"type": "number",
|
|
912
|
-
"description": "ID of the file"
|
|
913
|
-
},
|
|
914
|
-
"commit_a": {
|
|
915
|
-
"type": "string",
|
|
916
|
-
"description": "Earlier commit hash (from get_history)"
|
|
917
|
-
},
|
|
918
|
-
"commit_b": {
|
|
919
|
-
"type": "string",
|
|
920
|
-
"description": "Later commit hash (from get_history)"
|
|
921
|
-
}
|
|
922
|
-
},
|
|
923
|
-
"required": [
|
|
924
|
-
"file_id",
|
|
925
|
-
"commit_a",
|
|
926
|
-
"commit_b"
|
|
822
|
+
"url"
|
|
927
823
|
],
|
|
928
824
|
"additionalProperties": false,
|
|
929
825
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -933,23 +829,18 @@
|
|
|
933
829
|
}
|
|
934
830
|
},
|
|
935
831
|
{
|
|
936
|
-
"name": "files.
|
|
937
|
-
"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.",
|
|
938
834
|
"inputSchema": {
|
|
939
835
|
"type": "object",
|
|
940
836
|
"properties": {
|
|
941
837
|
"file_id": {
|
|
942
838
|
"type": "number",
|
|
943
839
|
"description": "ID of the file"
|
|
944
|
-
},
|
|
945
|
-
"hash": {
|
|
946
|
-
"type": "string",
|
|
947
|
-
"description": "Commit hash to restore from (from get_history)"
|
|
948
840
|
}
|
|
949
841
|
},
|
|
950
842
|
"required": [
|
|
951
|
-
"file_id"
|
|
952
|
-
"hash"
|
|
843
|
+
"file_id"
|
|
953
844
|
],
|
|
954
845
|
"additionalProperties": false,
|
|
955
846
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -959,18 +850,28 @@
|
|
|
959
850
|
}
|
|
960
851
|
},
|
|
961
852
|
{
|
|
962
|
-
"name": "files.
|
|
963
|
-
"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.",
|
|
964
855
|
"inputSchema": {
|
|
965
856
|
"type": "object",
|
|
966
857
|
"properties": {
|
|
967
858
|
"file_id": {
|
|
968
859
|
"type": "number",
|
|
969
|
-
"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)"
|
|
970
869
|
}
|
|
971
870
|
},
|
|
972
871
|
"required": [
|
|
973
|
-
"file_id"
|
|
872
|
+
"file_id",
|
|
873
|
+
"commit_a",
|
|
874
|
+
"commit_b"
|
|
974
875
|
],
|
|
975
876
|
"additionalProperties": false,
|
|
976
877
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -980,23 +881,23 @@
|
|
|
980
881
|
}
|
|
981
882
|
},
|
|
982
883
|
{
|
|
983
|
-
"name": "files.
|
|
984
|
-
"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.",
|
|
985
886
|
"inputSchema": {
|
|
986
887
|
"type": "object",
|
|
987
888
|
"properties": {
|
|
988
889
|
"file_id": {
|
|
989
890
|
"type": "number",
|
|
990
|
-
"description": "
|
|
891
|
+
"description": "ID of the file"
|
|
991
892
|
},
|
|
992
|
-
"
|
|
893
|
+
"hash": {
|
|
993
894
|
"type": "string",
|
|
994
|
-
"description": "
|
|
895
|
+
"description": "Commit hash to restore from (from get_history)"
|
|
995
896
|
}
|
|
996
897
|
},
|
|
997
898
|
"required": [
|
|
998
899
|
"file_id",
|
|
999
|
-
"
|
|
900
|
+
"hash"
|
|
1000
901
|
],
|
|
1001
902
|
"additionalProperties": false,
|
|
1002
903
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -1006,28 +907,18 @@
|
|
|
1006
907
|
}
|
|
1007
908
|
},
|
|
1008
909
|
{
|
|
1009
|
-
"name": "files.
|
|
1010
|
-
"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 })`).",
|
|
1011
912
|
"inputSchema": {
|
|
1012
913
|
"type": "object",
|
|
1013
914
|
"properties": {
|
|
1014
915
|
"file_id": {
|
|
1015
916
|
"type": "number",
|
|
1016
917
|
"description": "File ID"
|
|
1017
|
-
},
|
|
1018
|
-
"heading": {
|
|
1019
|
-
"type": "string",
|
|
1020
|
-
"description": "Heading whose body to replace (case-insensitive)"
|
|
1021
|
-
},
|
|
1022
|
-
"content": {
|
|
1023
|
-
"type": "string",
|
|
1024
|
-
"description": "New body content (heading line is preserved automatically)"
|
|
1025
918
|
}
|
|
1026
919
|
},
|
|
1027
920
|
"required": [
|
|
1028
|
-
"file_id"
|
|
1029
|
-
"heading",
|
|
1030
|
-
"content"
|
|
921
|
+
"file_id"
|
|
1031
922
|
],
|
|
1032
923
|
"additionalProperties": false,
|
|
1033
924
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -1038,7 +929,7 @@
|
|
|
1038
929
|
},
|
|
1039
930
|
{
|
|
1040
931
|
"name": "folders.list",
|
|
1041
|
-
"description": "List folder paths under a project root (or the Knowledge Base when `project_id` is null/omitted). Returns `{folders: string[], base_path}` where `folders` are RELATIVE to `base_path`. Read-only; no side effects, auth, or rate limits. Throws if `project_id` references an unknown project. Use to discover where to drop a new file via `
|
|
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`.",
|
|
1042
933
|
"inputSchema": {
|
|
1043
934
|
"type": "object",
|
|
1044
935
|
"properties": {
|
|
@@ -1087,7 +978,7 @@
|
|
|
1087
978
|
},
|
|
1088
979
|
{
|
|
1089
980
|
"name": "folders.delete",
|
|
1090
|
-
"description": "DESTRUCTIVE — recursively delete a folder under the KB AND every file inside it (disk + FTS rows). REFUSES (returns isError) when `project_id` is supplied: deleting inside a registered project would race the file watcher and re-ingest the contents — remove project content via your editor instead. Same name validation as `
|
|
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}`.",
|
|
1091
982
|
"inputSchema": {
|
|
1092
983
|
"type": "object",
|
|
1093
984
|
"properties": {
|
|
@@ -1181,115 +1072,6 @@
|
|
|
1181
1072
|
"taskSupport": "forbidden"
|
|
1182
1073
|
}
|
|
1183
1074
|
},
|
|
1184
|
-
{
|
|
1185
|
-
"name": "files.create_many",
|
|
1186
|
-
"description": "Batch variant of `files.create` — create up to 200 markdown, mermaid, or HTML files in one call. Each item follows the same rules: `project_id` required if `destination` is `project`/`kontexta`; `kind` ('dictionary' or 'note') required if `destination` is `knowledge`. SIDE EFFECTS: writes new files to disk and inserts FTS5 rows; missing folders are mkdir'd. Per-item failures are isolated to `errors[]` and the rest of the batch still commits — partial success is the norm, always inspect `error_count`. No external auth or rate limits. Returns `{created_count, error_count, created, errors}`. Use for bulk ingestion; for >200 items, page yourself. Pass format='mmd' on an item to create a Mermaid diagram file (.mmd) or 'html' for HTML reports; defaults to 'md'.",
|
|
1187
|
-
"inputSchema": {
|
|
1188
|
-
"type": "object",
|
|
1189
|
-
"properties": {
|
|
1190
|
-
"files": {
|
|
1191
|
-
"type": "array",
|
|
1192
|
-
"items": {
|
|
1193
|
-
"type": "object",
|
|
1194
|
-
"properties": {
|
|
1195
|
-
"title": {
|
|
1196
|
-
"type": "string",
|
|
1197
|
-
"description": "File title."
|
|
1198
|
-
},
|
|
1199
|
-
"content": {
|
|
1200
|
-
"type": "string",
|
|
1201
|
-
"description": "File body content (markdown, mermaid, or HTML depending on format)."
|
|
1202
|
-
},
|
|
1203
|
-
"destination": {
|
|
1204
|
-
"type": "string",
|
|
1205
|
-
"enum": [
|
|
1206
|
-
"knowledge",
|
|
1207
|
-
"project",
|
|
1208
|
-
"kontexta"
|
|
1209
|
-
],
|
|
1210
|
-
"description": "Storage destination: 'knowledge' for KB, 'project' for a project, 'kontexta' for app-internal."
|
|
1211
|
-
},
|
|
1212
|
-
"project_id": {
|
|
1213
|
-
"type": "number",
|
|
1214
|
-
"description": "Project ID — required when destination is 'project' or 'kontexta'."
|
|
1215
|
-
},
|
|
1216
|
-
"folder": {
|
|
1217
|
-
"type": "string",
|
|
1218
|
-
"description": "Relative folder path within the destination (e.g. 'notes/daily')."
|
|
1219
|
-
},
|
|
1220
|
-
"tags": {
|
|
1221
|
-
"type": "array",
|
|
1222
|
-
"items": {
|
|
1223
|
-
"type": "string"
|
|
1224
|
-
},
|
|
1225
|
-
"description": "Tags to apply to this file."
|
|
1226
|
-
},
|
|
1227
|
-
"format": {
|
|
1228
|
-
"type": "string",
|
|
1229
|
-
"enum": [
|
|
1230
|
-
"md",
|
|
1231
|
-
"mmd",
|
|
1232
|
-
"html"
|
|
1233
|
-
],
|
|
1234
|
-
"description": "File format: 'md' (default), 'mmd' (Mermaid diagram), or 'html' (report)."
|
|
1235
|
-
},
|
|
1236
|
-
"kind": {
|
|
1237
|
-
"type": "string",
|
|
1238
|
-
"enum": [
|
|
1239
|
-
"dictionary",
|
|
1240
|
-
"note"
|
|
1241
|
-
],
|
|
1242
|
-
"description": "REQUIRED per-item for destination='knowledge'. See files.create for the dictionary/note rubric."
|
|
1243
|
-
}
|
|
1244
|
-
},
|
|
1245
|
-
"required": [
|
|
1246
|
-
"title",
|
|
1247
|
-
"content",
|
|
1248
|
-
"destination"
|
|
1249
|
-
],
|
|
1250
|
-
"additionalProperties": false
|
|
1251
|
-
},
|
|
1252
|
-
"minItems": 1,
|
|
1253
|
-
"maxItems": 200,
|
|
1254
|
-
"description": "Files to create (max 200 per call)"
|
|
1255
|
-
}
|
|
1256
|
-
},
|
|
1257
|
-
"required": [
|
|
1258
|
-
"files"
|
|
1259
|
-
],
|
|
1260
|
-
"additionalProperties": false,
|
|
1261
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1262
|
-
},
|
|
1263
|
-
"execution": {
|
|
1264
|
-
"taskSupport": "forbidden"
|
|
1265
|
-
}
|
|
1266
|
-
},
|
|
1267
|
-
{
|
|
1268
|
-
"name": "files.delete_many",
|
|
1269
|
-
"description": "DESTRUCTIVE batch — delete up to 500 files by ID in one call. Same physical-deletion rules as `files.delete` (KB files unlinked from disk; project reference files only de-indexed). Per-ID failures isolated to `errors[]`; the batch keeps going — partial success is the norm. Not idempotent — unknown IDs surface as per-item errors. No external auth or rate limits. Returns `{deleted_count, error_count, deleted, errors}`. To preview the set before deleting, run `files.list` with the same filter and confirm the IDs.",
|
|
1270
|
-
"inputSchema": {
|
|
1271
|
-
"type": "object",
|
|
1272
|
-
"properties": {
|
|
1273
|
-
"ids": {
|
|
1274
|
-
"type": "array",
|
|
1275
|
-
"items": {
|
|
1276
|
-
"type": "number"
|
|
1277
|
-
},
|
|
1278
|
-
"minItems": 1,
|
|
1279
|
-
"maxItems": 500,
|
|
1280
|
-
"description": "File IDs to delete (max 500 per call)"
|
|
1281
|
-
}
|
|
1282
|
-
},
|
|
1283
|
-
"required": [
|
|
1284
|
-
"ids"
|
|
1285
|
-
],
|
|
1286
|
-
"additionalProperties": false,
|
|
1287
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1288
|
-
},
|
|
1289
|
-
"execution": {
|
|
1290
|
-
"taskSupport": "forbidden"
|
|
1291
|
-
}
|
|
1292
|
-
},
|
|
1293
1075
|
{
|
|
1294
1076
|
"name": "tags.search",
|
|
1295
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}`.",
|
|
@@ -1339,32 +1121,19 @@
|
|
|
1339
1121
|
}
|
|
1340
1122
|
},
|
|
1341
1123
|
{
|
|
1342
|
-
"name": "
|
|
1343
|
-
"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.",
|
|
1344
1126
|
"inputSchema": {
|
|
1345
1127
|
"type": "object",
|
|
1346
1128
|
"properties": {
|
|
1347
|
-
"
|
|
1129
|
+
"mode": {
|
|
1348
1130
|
"type": "string",
|
|
1349
|
-
"
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
"additionalProperties": false,
|
|
1356
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1357
|
-
},
|
|
1358
|
-
"execution": {
|
|
1359
|
-
"taskSupport": "forbidden"
|
|
1360
|
-
}
|
|
1361
|
-
},
|
|
1362
|
-
{
|
|
1363
|
-
"name": "admin.stats",
|
|
1364
|
-
"description": "Aggregate counts for a scope: `file_count`, `untagged_count`, `favorite_count`, `top_tags`. With `project_id` omitted (everything), also returns `by_project` breakdown. `include_token_total: true` stat()s every matching file on disk to compute a body-size estimate — measurably slower on large vaults; default false. `project_id: null` = KB only; omit = all. Read-only; no side effects, auth, or rate limits. Use as a cheap dashboard or to spot untagged content for cleanup; for live disk-vs-index drift use `files.diff_against_disk`.",
|
|
1365
|
-
"inputSchema": {
|
|
1366
|
-
"type": "object",
|
|
1367
|
-
"properties": {
|
|
1131
|
+
"enum": [
|
|
1132
|
+
"stats",
|
|
1133
|
+
"whats_new"
|
|
1134
|
+
],
|
|
1135
|
+
"description": "Which snapshot to return. 'whats_new' requires `since`."
|
|
1136
|
+
},
|
|
1368
1137
|
"project_id": {
|
|
1369
1138
|
"type": [
|
|
1370
1139
|
"number",
|
|
@@ -1376,13 +1145,28 @@
|
|
|
1376
1145
|
"type": "integer",
|
|
1377
1146
|
"exclusiveMinimum": 0,
|
|
1378
1147
|
"maximum": 100,
|
|
1379
|
-
"description": "
|
|
1148
|
+
"description": "mode='stats' only: how many top tags to return (default 10)"
|
|
1380
1149
|
},
|
|
1381
1150
|
"include_token_total": {
|
|
1382
1151
|
"type": "boolean",
|
|
1383
|
-
"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."
|
|
1384
1165
|
}
|
|
1385
1166
|
},
|
|
1167
|
+
"required": [
|
|
1168
|
+
"mode"
|
|
1169
|
+
],
|
|
1386
1170
|
"additionalProperties": false,
|
|
1387
1171
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1388
1172
|
},
|
|
@@ -1459,42 +1243,6 @@
|
|
|
1459
1243
|
"taskSupport": "forbidden"
|
|
1460
1244
|
}
|
|
1461
1245
|
},
|
|
1462
|
-
{
|
|
1463
|
-
"name": "admin.whats_new",
|
|
1464
|
-
"description": "List files created or modified since a checkpoint. `since` accepts ISO-8601 (`2025-01-15T00:00:00Z`) or relative durations (`1h`, `7d`, `2w`); invalid formats throw. Read-only; no side effects, auth, or rate limits. Returns annotated rows plus aggregate `total_est_tokens` so you can decide what to read next. CAVEAT: hard-deleted files are NOT surfaced — only mtime-driven changes. Defaults: include_tags=true, limit=200. `project_id: null` = KB only; omit = everything. Use at session start to catch up.",
|
|
1465
|
-
"inputSchema": {
|
|
1466
|
-
"type": "object",
|
|
1467
|
-
"properties": {
|
|
1468
|
-
"since": {
|
|
1469
|
-
"type": "string",
|
|
1470
|
-
"description": "ISO 8601 timestamp or relative duration (e.g. \"1h\", \"7d\", \"2w\")."
|
|
1471
|
-
},
|
|
1472
|
-
"project_id": {
|
|
1473
|
-
"type": [
|
|
1474
|
-
"number",
|
|
1475
|
-
"null"
|
|
1476
|
-
],
|
|
1477
|
-
"description": "Filter to a single project. Pass null for knowledge-base-only files. Omit for all."
|
|
1478
|
-
},
|
|
1479
|
-
"include_tags": {
|
|
1480
|
-
"type": "boolean",
|
|
1481
|
-
"description": "Attach tags[] to each file. Default true."
|
|
1482
|
-
},
|
|
1483
|
-
"limit": {
|
|
1484
|
-
"type": "number",
|
|
1485
|
-
"description": "Max files returned. Default 200."
|
|
1486
|
-
}
|
|
1487
|
-
},
|
|
1488
|
-
"required": [
|
|
1489
|
-
"since"
|
|
1490
|
-
],
|
|
1491
|
-
"additionalProperties": false,
|
|
1492
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1493
|
-
},
|
|
1494
|
-
"execution": {
|
|
1495
|
-
"taskSupport": "forbidden"
|
|
1496
|
-
}
|
|
1497
|
-
},
|
|
1498
1246
|
{
|
|
1499
1247
|
"name": "projects.map",
|
|
1500
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`.",
|
|
@@ -1530,11 +1278,17 @@
|
|
|
1530
1278
|
},
|
|
1531
1279
|
{
|
|
1532
1280
|
"name": "hands.list",
|
|
1533
|
-
"description": "List every Hands command tool currently registered, with project scope, tool name, danger level, confirmation flag, and description. Hands tools come from per-project `kontexta.json` files loaded at register time. Read-only; no side effects, auth, or rate limits. Use to discover what side-effectful project commands the agent is permitted to run;
|
|
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`.",
|
|
1534
1282
|
"inputSchema": {
|
|
1535
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1536
1283
|
"type": "object",
|
|
1537
|
-
"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#"
|
|
1538
1292
|
},
|
|
1539
1293
|
"execution": {
|
|
1540
1294
|
"taskSupport": "forbidden"
|
|
@@ -1542,7 +1296,7 @@
|
|
|
1542
1296
|
},
|
|
1543
1297
|
{
|
|
1544
1298
|
"name": "hands.reload",
|
|
1545
|
-
"description": "Re-scan every registered project's `kontexta.json` and rebuild the live Hands tool registry — newly-declared tools become callable immediately, removed tools disappear from `tools/list`. SIDE EFFECT is on the running MCP session's tool inventory only (no disk writes). Idempotent. No external auth or rate limits. Takes no parameters. Returns per-project load results (counts of registered/disabled tools and any validation warnings). Use after editing a `kontexta.json` mid-session; for the schema see `hands.
|
|
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 })`.",
|
|
1546
1300
|
"inputSchema": {
|
|
1547
1301
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1548
1302
|
"type": "object",
|
|
@@ -1573,18 +1327,6 @@
|
|
|
1573
1327
|
"taskSupport": "forbidden"
|
|
1574
1328
|
}
|
|
1575
1329
|
},
|
|
1576
|
-
{
|
|
1577
|
-
"name": "hands.describe_schema",
|
|
1578
|
-
"description": "Return the complete authoring reference for `kontexta.json`: JSON schema, validation rules, security guarantees, limitations, and an annotated example. Static document — does not read any project file or DB row. Read-only; no side effects, auth, or rate limits. Takes no parameters. Use when helping a user write or fix a `kontexta.json`; to see the loaded tools themselves use `hands.list`; to apply edits use `hands.reload`.",
|
|
1579
|
-
"inputSchema": {
|
|
1580
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1581
|
-
"type": "object",
|
|
1582
|
-
"properties": {}
|
|
1583
|
-
},
|
|
1584
|
-
"execution": {
|
|
1585
|
-
"taskSupport": "forbidden"
|
|
1586
|
-
}
|
|
1587
|
-
},
|
|
1588
1330
|
{
|
|
1589
1331
|
"name": "admin.get_profile",
|
|
1590
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.",
|
|
@@ -1597,57 +1339,6 @@
|
|
|
1597
1339
|
"taskSupport": "forbidden"
|
|
1598
1340
|
}
|
|
1599
1341
|
},
|
|
1600
|
-
{
|
|
1601
|
-
"name": "journal.note",
|
|
1602
|
-
"description": "Record a free-form decision/abandonment/observation note in the current project's journal. Stored as an `agent_note` event in Layer 1; surfaces in distilled task entries.",
|
|
1603
|
-
"inputSchema": {
|
|
1604
|
-
"type": "object",
|
|
1605
|
-
"properties": {
|
|
1606
|
-
"text": {
|
|
1607
|
-
"type": "string",
|
|
1608
|
-
"minLength": 1,
|
|
1609
|
-
"description": "Body of the note (markdown allowed)."
|
|
1610
|
-
},
|
|
1611
|
-
"tags": {
|
|
1612
|
-
"type": "array",
|
|
1613
|
-
"items": {
|
|
1614
|
-
"type": "string"
|
|
1615
|
-
},
|
|
1616
|
-
"description": "Optional tags for the note."
|
|
1617
|
-
}
|
|
1618
|
-
},
|
|
1619
|
-
"required": [
|
|
1620
|
-
"text"
|
|
1621
|
-
],
|
|
1622
|
-
"additionalProperties": false,
|
|
1623
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1624
|
-
},
|
|
1625
|
-
"execution": {
|
|
1626
|
-
"taskSupport": "forbidden"
|
|
1627
|
-
}
|
|
1628
|
-
},
|
|
1629
|
-
{
|
|
1630
|
-
"name": "journal.intent",
|
|
1631
|
-
"description": "Record a topic/intent pivot. Use when the user redirects what you're working on; the distillation step uses this to split task buckets correctly.",
|
|
1632
|
-
"inputSchema": {
|
|
1633
|
-
"type": "object",
|
|
1634
|
-
"properties": {
|
|
1635
|
-
"summary": {
|
|
1636
|
-
"type": "string",
|
|
1637
|
-
"minLength": 1,
|
|
1638
|
-
"description": "One-line summary of the new intent."
|
|
1639
|
-
}
|
|
1640
|
-
},
|
|
1641
|
-
"required": [
|
|
1642
|
-
"summary"
|
|
1643
|
-
],
|
|
1644
|
-
"additionalProperties": false,
|
|
1645
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1646
|
-
},
|
|
1647
|
-
"execution": {
|
|
1648
|
-
"taskSupport": "forbidden"
|
|
1649
|
-
}
|
|
1650
|
-
},
|
|
1651
1342
|
{
|
|
1652
1343
|
"name": "journal.distill",
|
|
1653
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.",
|
|
@@ -1735,7 +1426,7 @@
|
|
|
1735
1426
|
},
|
|
1736
1427
|
{
|
|
1737
1428
|
"name": "calendar.entities.add",
|
|
1738
|
-
"description": "SIDE-EFFECTFUL. Create a new tracked entity — any named thing you schedule events against (a server, a delivery van, a store location, a piece of equipment, a room, etc.). Not idempotent: a duplicate name (case-insensitive) throws. Returns `{entity}`. Use `
|
|
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.",
|
|
1739
1430
|
"inputSchema": {
|
|
1740
1431
|
"type": "object",
|
|
1741
1432
|
"properties": {
|