@nestr/mcp 0.1.72 → 0.1.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/build/api/client.d.ts +84 -5
  2. package/build/api/client.d.ts.map +1 -1
  3. package/build/api/client.js +120 -21
  4. package/build/api/client.js.map +1 -1
  5. package/build/help/articles.d.ts +146 -0
  6. package/build/help/articles.d.ts.map +1 -0
  7. package/build/help/articles.js +574 -0
  8. package/build/help/articles.js.map +1 -0
  9. package/build/help/cross-links.d.ts +21 -0
  10. package/build/help/cross-links.d.ts.map +1 -0
  11. package/build/help/cross-links.js +61 -0
  12. package/build/help/cross-links.js.map +1 -0
  13. package/build/help/topics.d.ts.map +1 -1
  14. package/build/help/topics.js +324 -12
  15. package/build/help/topics.js.map +1 -1
  16. package/build/http.d.ts +26 -13
  17. package/build/http.d.ts.map +1 -1
  18. package/build/http.js +572 -128
  19. package/build/http.js.map +1 -1
  20. package/build/oauth/client-info.d.ts +58 -0
  21. package/build/oauth/client-info.d.ts.map +1 -0
  22. package/build/oauth/client-info.js +68 -0
  23. package/build/oauth/client-info.js.map +1 -0
  24. package/build/oauth/config.d.ts +19 -0
  25. package/build/oauth/config.d.ts.map +1 -1
  26. package/build/oauth/config.js +12 -0
  27. package/build/oauth/config.js.map +1 -1
  28. package/build/oauth/flow.d.ts +6 -0
  29. package/build/oauth/flow.d.ts.map +1 -1
  30. package/build/oauth/flow.js +30 -4
  31. package/build/oauth/flow.js.map +1 -1
  32. package/build/oauth/store.d.ts +14 -0
  33. package/build/oauth/store.d.ts.map +1 -1
  34. package/build/oauth/store.js.map +1 -1
  35. package/build/server.d.ts +11 -0
  36. package/build/server.d.ts.map +1 -1
  37. package/build/server.js +38 -5
  38. package/build/server.js.map +1 -1
  39. package/build/skills/tension-processing.d.ts.map +1 -1
  40. package/build/skills/tension-processing.js +11 -1
  41. package/build/skills/tension-processing.js.map +1 -1
  42. package/build/tools/index.d.ts +580 -90
  43. package/build/tools/index.d.ts.map +1 -1
  44. package/build/tools/index.js +598 -82
  45. package/build/tools/index.js.map +1 -1
  46. package/build/tools/validation.d.ts +42 -0
  47. package/build/tools/validation.d.ts.map +1 -0
  48. package/build/tools/validation.js +97 -0
  49. package/build/tools/validation.js.map +1 -0
  50. package/build/util/diagnose.d.ts +40 -0
  51. package/build/util/diagnose.d.ts.map +1 -0
  52. package/build/util/diagnose.js +26 -0
  53. package/build/util/diagnose.js.map +1 -0
  54. package/build/util/request-context.d.ts +11 -0
  55. package/build/util/request-context.d.ts.map +1 -0
  56. package/build/util/request-context.js +30 -0
  57. package/build/util/request-context.js.map +1 -0
  58. package/package.json +2 -1
  59. package/web/index.html +25 -0
  60. package/web/styles.css +62 -0
@@ -4,6 +4,14 @@
4
4
  */
5
5
  import { z } from "zod";
6
6
  import { type NestrClient } from "../api/client.js";
7
+ import type { DiagnoseSnapshot } from "../util/diagnose.js";
8
+ export declare const PUBLIC_TOOL_NAMES: ReadonlySet<string>;
9
+ export declare const PUBLIC_GUEST_ME: {
10
+ readonly authMode: "public";
11
+ readonly user: null;
12
+ readonly mode: "guest";
13
+ readonly hint: "Guest mode: product help only. Add AI credit / sign in for workspace tools.";
14
+ };
7
15
  type CompletableSource = "inbox" | "daily-plan" | "children" | "projects" | "search";
8
16
  export declare function completableResponse(data: unknown, source: CompletableSource, title: string): {
9
17
  title: string;
@@ -19,7 +27,33 @@ export declare function compactResponse<T>(data: T[] | {
19
27
  meta?: unknown;
20
28
  data: Partial<T>[];
21
29
  } | T;
30
+ /**
31
+ * Single endpoint object the API returns inside hint.endpoints.
32
+ * `body_example` is intentionally snake_case — it's a passthrough from the API.
33
+ */
34
+ export interface ApiHintEndpoint {
35
+ purpose: string;
36
+ method: string;
37
+ path: string;
38
+ body_example?: Record<string, unknown>;
39
+ }
40
+ /**
41
+ * Per-endpoint MCP-tool guidance produced by translateEndpoint.
42
+ * Field names follow this codebase's camelCase convention (e.g. `toolCall`).
43
+ */
44
+ export interface EnrichedToolCall {
45
+ tool: string;
46
+ purpose: string;
47
+ parametersExample: Record<string, unknown>;
48
+ notes?: string;
49
+ }
50
+ /**
51
+ * Translate one API hint endpoint into an MCP tool-call suggestion.
52
+ * Returns null for routes we don't have a mapping for — never guesses a tool.
53
+ */
54
+ export declare function translateEndpoint(endpoint: ApiHintEndpoint): EnrichedToolCall | null;
22
55
  export declare function enrichHints<T>(data: T): T;
56
+ export declare function addNestUrls<T>(data: T): T;
23
57
  export declare const schemas: {
24
58
  listWorkspaces: z.ZodObject<{
25
59
  search: z.ZodOptional<z.ZodString>;
@@ -207,22 +241,28 @@ export declare const schemas: {
207
241
  addComment: z.ZodObject<{
208
242
  nestId: z.ZodString;
209
243
  body: z.ZodString;
244
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
210
245
  }, "strip", z.ZodTypeAny, {
211
246
  nestId: string;
212
247
  body: string;
248
+ labels?: string[] | undefined;
213
249
  }, {
214
250
  nestId: string;
215
251
  body: string;
252
+ labels?: string[] | undefined;
216
253
  }>;
217
254
  updateComment: z.ZodObject<{
218
255
  commentId: z.ZodString;
219
256
  body: z.ZodString;
257
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
220
258
  }, "strip", z.ZodTypeAny, {
221
259
  body: string;
222
260
  commentId: string;
261
+ labels?: string[] | undefined;
223
262
  }, {
224
263
  body: string;
225
264
  commentId: string;
265
+ labels?: string[] | undefined;
226
266
  }>;
227
267
  deleteComment: z.ZodObject<{
228
268
  commentId: z.ZodString;
@@ -352,13 +392,13 @@ export declare const schemas: {
352
392
  }>;
353
393
  getComments: z.ZodObject<{
354
394
  nestId: z.ZodString;
355
- depth: z.ZodOptional<z.ZodNumber>;
395
+ depth: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"all">]>>;
356
396
  }, "strip", z.ZodTypeAny, {
357
397
  nestId: string;
358
- depth?: number | undefined;
398
+ depth?: number | "all" | undefined;
359
399
  }, {
360
400
  nestId: string;
361
- depth?: number | undefined;
401
+ depth?: number | "all" | undefined;
362
402
  }>;
363
403
  getCircle: z.ZodObject<{
364
404
  workspaceId: z.ZodString;
@@ -698,7 +738,7 @@ export declare const schemas: {
698
738
  nestId: string;
699
739
  tensionId: string;
700
740
  }>;
701
- addTensionPart: z.ZodObject<{
741
+ addTensionPart: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
702
742
  nestId: z.ZodString;
703
743
  tensionId: z.ZodString;
704
744
  _id: z.ZodOptional<z.ZodString>;
@@ -711,6 +751,8 @@ export declare const schemas: {
711
751
  due: z.ZodOptional<z.ZodString>;
712
752
  accountabilities: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
713
753
  domains: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
754
+ roleId: z.ZodOptional<z.ZodString>;
755
+ removeNest: z.ZodOptional<z.ZodBoolean>;
714
756
  }, "strip", z.ZodTypeAny, {
715
757
  nestId: string;
716
758
  tensionId: string;
@@ -724,6 +766,98 @@ export declare const schemas: {
724
766
  users?: string[] | undefined;
725
767
  accountabilities?: string[] | undefined;
726
768
  domains?: string[] | undefined;
769
+ roleId?: string | undefined;
770
+ removeNest?: boolean | undefined;
771
+ }, {
772
+ nestId: string;
773
+ tensionId: string;
774
+ _id?: string | undefined;
775
+ title?: string | undefined;
776
+ purpose?: string | undefined;
777
+ description?: string | undefined;
778
+ parentId?: string | undefined;
779
+ labels?: unknown;
780
+ due?: string | undefined;
781
+ users?: unknown;
782
+ accountabilities?: unknown;
783
+ domains?: unknown;
784
+ roleId?: string | undefined;
785
+ removeNest?: boolean | undefined;
786
+ }>, {
787
+ nestId: string;
788
+ tensionId: string;
789
+ _id?: string | undefined;
790
+ title?: string | undefined;
791
+ purpose?: string | undefined;
792
+ description?: string | undefined;
793
+ parentId?: string | undefined;
794
+ labels?: string[] | undefined;
795
+ due?: string | undefined;
796
+ users?: string[] | undefined;
797
+ accountabilities?: string[] | undefined;
798
+ domains?: string[] | undefined;
799
+ roleId?: string | undefined;
800
+ removeNest?: boolean | undefined;
801
+ }, {
802
+ nestId: string;
803
+ tensionId: string;
804
+ _id?: string | undefined;
805
+ title?: string | undefined;
806
+ purpose?: string | undefined;
807
+ description?: string | undefined;
808
+ parentId?: string | undefined;
809
+ labels?: unknown;
810
+ due?: string | undefined;
811
+ users?: unknown;
812
+ accountabilities?: unknown;
813
+ domains?: unknown;
814
+ roleId?: string | undefined;
815
+ removeNest?: boolean | undefined;
816
+ }>, {
817
+ nestId: string;
818
+ tensionId: string;
819
+ _id?: string | undefined;
820
+ title?: string | undefined;
821
+ purpose?: string | undefined;
822
+ description?: string | undefined;
823
+ parentId?: string | undefined;
824
+ labels?: string[] | undefined;
825
+ due?: string | undefined;
826
+ users?: string[] | undefined;
827
+ accountabilities?: string[] | undefined;
828
+ domains?: string[] | undefined;
829
+ roleId?: string | undefined;
830
+ removeNest?: boolean | undefined;
831
+ }, {
832
+ nestId: string;
833
+ tensionId: string;
834
+ _id?: string | undefined;
835
+ title?: string | undefined;
836
+ purpose?: string | undefined;
837
+ description?: string | undefined;
838
+ parentId?: string | undefined;
839
+ labels?: unknown;
840
+ due?: string | undefined;
841
+ users?: unknown;
842
+ accountabilities?: unknown;
843
+ domains?: unknown;
844
+ roleId?: string | undefined;
845
+ removeNest?: boolean | undefined;
846
+ }>, {
847
+ nestId: string;
848
+ tensionId: string;
849
+ _id?: string | undefined;
850
+ title?: string | undefined;
851
+ purpose?: string | undefined;
852
+ description?: string | undefined;
853
+ parentId?: string | undefined;
854
+ labels?: string[] | undefined;
855
+ due?: string | undefined;
856
+ users?: string[] | undefined;
857
+ accountabilities?: string[] | undefined;
858
+ domains?: string[] | undefined;
859
+ roleId?: string | undefined;
860
+ removeNest?: boolean | undefined;
727
861
  }, {
728
862
  nestId: string;
729
863
  tensionId: string;
@@ -737,6 +871,8 @@ export declare const schemas: {
737
871
  users?: unknown;
738
872
  accountabilities?: unknown;
739
873
  domains?: unknown;
874
+ roleId?: string | undefined;
875
+ removeNest?: boolean | undefined;
740
876
  }>;
741
877
  modifyTensionPart: z.ZodObject<{
742
878
  nestId: z.ZodString;
@@ -939,13 +1075,38 @@ export declare const schemas: {
939
1075
  relation: string;
940
1076
  targetId: string;
941
1077
  }>;
942
- help: z.ZodObject<{
943
- topic: z.ZodString;
1078
+ help: z.ZodEffects<z.ZodObject<{
1079
+ topic: z.ZodOptional<z.ZodString>;
1080
+ search: z.ZodOptional<z.ZodString>;
1081
+ includeImages: z.ZodOptional<z.ZodBoolean>;
1082
+ imageIndexes: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>, number[] | undefined, unknown>;
1083
+ maxImages: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
944
1084
  }, "strip", z.ZodTypeAny, {
945
- topic: string;
1085
+ search?: string | undefined;
1086
+ topic?: string | undefined;
1087
+ includeImages?: boolean | undefined;
1088
+ imageIndexes?: number[] | undefined;
1089
+ maxImages?: number | undefined;
946
1090
  }, {
947
- topic: string;
1091
+ search?: string | undefined;
1092
+ topic?: string | undefined;
1093
+ includeImages?: boolean | undefined;
1094
+ imageIndexes?: unknown;
1095
+ maxImages?: unknown;
1096
+ }>, {
1097
+ search?: string | undefined;
1098
+ topic?: string | undefined;
1099
+ includeImages?: boolean | undefined;
1100
+ imageIndexes?: number[] | undefined;
1101
+ maxImages?: number | undefined;
1102
+ }, {
1103
+ search?: string | undefined;
1104
+ topic?: string | undefined;
1105
+ includeImages?: boolean | undefined;
1106
+ imageIndexes?: unknown;
1107
+ maxImages?: unknown;
948
1108
  }>;
1109
+ diagnose: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
949
1110
  };
950
1111
  export declare const toolDefinitions: ({
951
1112
  annotations: {
@@ -961,7 +1122,109 @@ export declare const toolDefinitions: ({
961
1122
  type: string;
962
1123
  description: string;
963
1124
  };
1125
+ search: {
1126
+ type: string;
1127
+ description: string;
1128
+ };
1129
+ includeImages: {
1130
+ type: string;
1131
+ description: string;
1132
+ };
1133
+ imageIndexes: {
1134
+ type: string;
1135
+ items: {
1136
+ type: string;
1137
+ minimum: number;
1138
+ };
1139
+ description: string;
1140
+ };
1141
+ maxImages: {
1142
+ type: string;
1143
+ minimum: number;
1144
+ description: string;
1145
+ };
1146
+ limit?: undefined;
1147
+ page?: undefined;
1148
+ stripDescription?: undefined;
1149
+ workspaceId?: undefined;
1150
+ title?: undefined;
1151
+ purpose?: undefined;
1152
+ type?: undefined;
1153
+ governance?: undefined;
1154
+ plan?: undefined;
1155
+ apps?: undefined;
1156
+ layout?: undefined;
1157
+ query?: undefined;
1158
+ _listTitle?: undefined;
1159
+ nestId?: undefined;
1160
+ fieldsMetaData?: undefined;
1161
+ hints?: undefined;
1162
+ parentId?: undefined;
1163
+ description?: undefined;
1164
+ labels?: undefined;
1165
+ fields?: undefined;
1166
+ users?: undefined;
1167
+ accountabilities?: undefined;
1168
+ domains?: undefined;
1169
+ data?: undefined;
1170
+ due?: undefined;
1171
+ completed?: undefined;
1172
+ body?: undefined;
1173
+ commentId?: undefined;
1174
+ circleId?: undefined;
1175
+ includeSubCircles?: undefined;
1176
+ userId?: undefined;
1177
+ endDate?: undefined;
1178
+ metricId?: undefined;
1179
+ depth?: undefined;
1180
+ username?: undefined;
1181
+ fullName?: undefined;
1182
+ language?: undefined;
1183
+ labelId?: undefined;
1184
+ from?: undefined;
1185
+ to?: undefined;
1186
+ completedAfter?: undefined;
1187
+ nestIds?: undefined;
1188
+ position?: undefined;
1189
+ relatedNestId?: undefined;
1190
+ color?: undefined;
1191
+ icon?: undefined;
1192
+ fullWorkspaces?: undefined;
1193
+ context?: undefined;
1194
+ skip?: undefined;
1195
+ showRead?: undefined;
1196
+ group?: undefined;
1197
+ feeling?: undefined;
1198
+ needs?: undefined;
1199
+ tensionId?: undefined;
1200
+ order?: undefined;
1201
+ _id?: undefined;
1202
+ roleId?: undefined;
1203
+ removeNest?: undefined;
1204
+ partId?: undefined;
1205
+ childId?: undefined;
1206
+ status?: undefined;
1207
+ relation?: undefined;
1208
+ direction?: undefined;
1209
+ targetId?: undefined;
1210
+ };
1211
+ required?: undefined;
1212
+ };
1213
+ } | {
1214
+ annotations: {
1215
+ readOnlyHint: boolean;
1216
+ destructiveHint: boolean;
1217
+ };
1218
+ name: string;
1219
+ description: string;
1220
+ inputSchema: {
1221
+ type: "object";
1222
+ properties: {
1223
+ topic?: undefined;
964
1224
  search?: undefined;
1225
+ includeImages?: undefined;
1226
+ imageIndexes?: undefined;
1227
+ maxImages?: undefined;
965
1228
  limit?: undefined;
966
1229
  page?: undefined;
967
1230
  stripDescription?: undefined;
@@ -1018,6 +1281,8 @@ export declare const toolDefinitions: ({
1018
1281
  tensionId?: undefined;
1019
1282
  order?: undefined;
1020
1283
  _id?: undefined;
1284
+ roleId?: undefined;
1285
+ removeNest?: undefined;
1021
1286
  partId?: undefined;
1022
1287
  childId?: undefined;
1023
1288
  status?: undefined;
@@ -1025,7 +1290,7 @@ export declare const toolDefinitions: ({
1025
1290
  direction?: undefined;
1026
1291
  targetId?: undefined;
1027
1292
  };
1028
- required: string[];
1293
+ required?: undefined;
1029
1294
  };
1030
1295
  } | {
1031
1296
  annotations: {
@@ -1054,6 +1319,9 @@ export declare const toolDefinitions: ({
1054
1319
  description: string;
1055
1320
  };
1056
1321
  topic?: undefined;
1322
+ includeImages?: undefined;
1323
+ imageIndexes?: undefined;
1324
+ maxImages?: undefined;
1057
1325
  workspaceId?: undefined;
1058
1326
  title?: undefined;
1059
1327
  purpose?: undefined;
@@ -1107,6 +1375,8 @@ export declare const toolDefinitions: ({
1107
1375
  tensionId?: undefined;
1108
1376
  order?: undefined;
1109
1377
  _id?: undefined;
1378
+ roleId?: undefined;
1379
+ removeNest?: undefined;
1110
1380
  partId?: undefined;
1111
1381
  childId?: undefined;
1112
1382
  status?: undefined;
@@ -1136,6 +1406,9 @@ export declare const toolDefinitions: ({
1136
1406
  };
1137
1407
  topic?: undefined;
1138
1408
  search?: undefined;
1409
+ includeImages?: undefined;
1410
+ imageIndexes?: undefined;
1411
+ maxImages?: undefined;
1139
1412
  limit?: undefined;
1140
1413
  page?: undefined;
1141
1414
  title?: undefined;
@@ -1190,6 +1463,8 @@ export declare const toolDefinitions: ({
1190
1463
  tensionId?: undefined;
1191
1464
  order?: undefined;
1192
1465
  _id?: undefined;
1466
+ roleId?: undefined;
1467
+ removeNest?: undefined;
1193
1468
  partId?: undefined;
1194
1469
  childId?: undefined;
1195
1470
  status?: undefined;
@@ -1247,6 +1522,9 @@ export declare const toolDefinitions: ({
1247
1522
  };
1248
1523
  topic?: undefined;
1249
1524
  search?: undefined;
1525
+ includeImages?: undefined;
1526
+ imageIndexes?: undefined;
1527
+ maxImages?: undefined;
1250
1528
  limit?: undefined;
1251
1529
  page?: undefined;
1252
1530
  stripDescription?: undefined;
@@ -1296,6 +1574,8 @@ export declare const toolDefinitions: ({
1296
1574
  tensionId?: undefined;
1297
1575
  order?: undefined;
1298
1576
  _id?: undefined;
1577
+ roleId?: undefined;
1578
+ removeNest?: undefined;
1299
1579
  partId?: undefined;
1300
1580
  childId?: undefined;
1301
1581
  status?: undefined;
@@ -1341,6 +1621,9 @@ export declare const toolDefinitions: ({
1341
1621
  };
1342
1622
  topic?: undefined;
1343
1623
  search?: undefined;
1624
+ includeImages?: undefined;
1625
+ imageIndexes?: undefined;
1626
+ maxImages?: undefined;
1344
1627
  title?: undefined;
1345
1628
  purpose?: undefined;
1346
1629
  type?: undefined;
@@ -1391,6 +1674,8 @@ export declare const toolDefinitions: ({
1391
1674
  tensionId?: undefined;
1392
1675
  order?: undefined;
1393
1676
  _id?: undefined;
1677
+ roleId?: undefined;
1678
+ removeNest?: undefined;
1394
1679
  partId?: undefined;
1395
1680
  childId?: undefined;
1396
1681
  status?: undefined;
@@ -1428,6 +1713,9 @@ export declare const toolDefinitions: ({
1428
1713
  };
1429
1714
  topic?: undefined;
1430
1715
  search?: undefined;
1716
+ includeImages?: undefined;
1717
+ imageIndexes?: undefined;
1718
+ maxImages?: undefined;
1431
1719
  limit?: undefined;
1432
1720
  page?: undefined;
1433
1721
  workspaceId?: undefined;
@@ -1480,6 +1768,8 @@ export declare const toolDefinitions: ({
1480
1768
  tensionId?: undefined;
1481
1769
  order?: undefined;
1482
1770
  _id?: undefined;
1771
+ roleId?: undefined;
1772
+ removeNest?: undefined;
1483
1773
  partId?: undefined;
1484
1774
  childId?: undefined;
1485
1775
  status?: undefined;
@@ -1525,6 +1815,9 @@ export declare const toolDefinitions: ({
1525
1815
  };
1526
1816
  topic?: undefined;
1527
1817
  search?: undefined;
1818
+ includeImages?: undefined;
1819
+ imageIndexes?: undefined;
1820
+ maxImages?: undefined;
1528
1821
  workspaceId?: undefined;
1529
1822
  title?: undefined;
1530
1823
  purpose?: undefined;
@@ -1575,6 +1868,8 @@ export declare const toolDefinitions: ({
1575
1868
  tensionId?: undefined;
1576
1869
  order?: undefined;
1577
1870
  _id?: undefined;
1871
+ roleId?: undefined;
1872
+ removeNest?: undefined;
1578
1873
  partId?: undefined;
1579
1874
  childId?: undefined;
1580
1875
  status?: undefined;
@@ -1648,6 +1943,9 @@ export declare const toolDefinitions: ({
1648
1943
  };
1649
1944
  topic?: undefined;
1650
1945
  search?: undefined;
1946
+ includeImages?: undefined;
1947
+ imageIndexes?: undefined;
1948
+ maxImages?: undefined;
1651
1949
  limit?: undefined;
1652
1950
  page?: undefined;
1653
1951
  stripDescription?: undefined;
@@ -1694,6 +1992,8 @@ export declare const toolDefinitions: ({
1694
1992
  tensionId?: undefined;
1695
1993
  order?: undefined;
1696
1994
  _id?: undefined;
1995
+ roleId?: undefined;
1996
+ removeNest?: undefined;
1697
1997
  partId?: undefined;
1698
1998
  childId?: undefined;
1699
1999
  status?: undefined;
@@ -1783,6 +2083,9 @@ export declare const toolDefinitions: ({
1783
2083
  };
1784
2084
  topic?: undefined;
1785
2085
  search?: undefined;
2086
+ includeImages?: undefined;
2087
+ imageIndexes?: undefined;
2088
+ maxImages?: undefined;
1786
2089
  limit?: undefined;
1787
2090
  page?: undefined;
1788
2091
  stripDescription?: undefined;
@@ -1825,6 +2128,8 @@ export declare const toolDefinitions: ({
1825
2128
  tensionId?: undefined;
1826
2129
  order?: undefined;
1827
2130
  _id?: undefined;
2131
+ roleId?: undefined;
2132
+ removeNest?: undefined;
1828
2133
  partId?: undefined;
1829
2134
  childId?: undefined;
1830
2135
  status?: undefined;
@@ -1850,6 +2155,9 @@ export declare const toolDefinitions: ({
1850
2155
  };
1851
2156
  topic?: undefined;
1852
2157
  search?: undefined;
2158
+ includeImages?: undefined;
2159
+ imageIndexes?: undefined;
2160
+ maxImages?: undefined;
1853
2161
  limit?: undefined;
1854
2162
  page?: undefined;
1855
2163
  stripDescription?: undefined;
@@ -1905,6 +2213,8 @@ export declare const toolDefinitions: ({
1905
2213
  tensionId?: undefined;
1906
2214
  order?: undefined;
1907
2215
  _id?: undefined;
2216
+ roleId?: undefined;
2217
+ removeNest?: undefined;
1908
2218
  partId?: undefined;
1909
2219
  childId?: undefined;
1910
2220
  status?: undefined;
@@ -1932,8 +2242,18 @@ export declare const toolDefinitions: ({
1932
2242
  type: string;
1933
2243
  description: string;
1934
2244
  };
2245
+ labels: {
2246
+ type: string;
2247
+ items: {
2248
+ type: string;
2249
+ };
2250
+ description: string;
2251
+ };
1935
2252
  topic?: undefined;
1936
2253
  search?: undefined;
2254
+ includeImages?: undefined;
2255
+ imageIndexes?: undefined;
2256
+ maxImages?: undefined;
1937
2257
  limit?: undefined;
1938
2258
  page?: undefined;
1939
2259
  stripDescription?: undefined;
@@ -1951,7 +2271,6 @@ export declare const toolDefinitions: ({
1951
2271
  hints?: undefined;
1952
2272
  parentId?: undefined;
1953
2273
  description?: undefined;
1954
- labels?: undefined;
1955
2274
  fields?: undefined;
1956
2275
  users?: undefined;
1957
2276
  accountabilities?: undefined;
@@ -1988,6 +2307,8 @@ export declare const toolDefinitions: ({
1988
2307
  tensionId?: undefined;
1989
2308
  order?: undefined;
1990
2309
  _id?: undefined;
2310
+ roleId?: undefined;
2311
+ removeNest?: undefined;
1991
2312
  partId?: undefined;
1992
2313
  childId?: undefined;
1993
2314
  status?: undefined;
@@ -2015,8 +2336,18 @@ export declare const toolDefinitions: ({
2015
2336
  type: string;
2016
2337
  description: string;
2017
2338
  };
2339
+ labels: {
2340
+ type: string;
2341
+ items: {
2342
+ type: string;
2343
+ };
2344
+ description: string;
2345
+ };
2018
2346
  topic?: undefined;
2019
2347
  search?: undefined;
2348
+ includeImages?: undefined;
2349
+ imageIndexes?: undefined;
2350
+ maxImages?: undefined;
2020
2351
  limit?: undefined;
2021
2352
  page?: undefined;
2022
2353
  stripDescription?: undefined;
@@ -2035,7 +2366,6 @@ export declare const toolDefinitions: ({
2035
2366
  hints?: undefined;
2036
2367
  parentId?: undefined;
2037
2368
  description?: undefined;
2038
- labels?: undefined;
2039
2369
  fields?: undefined;
2040
2370
  users?: undefined;
2041
2371
  accountabilities?: undefined;
@@ -2071,6 +2401,8 @@ export declare const toolDefinitions: ({
2071
2401
  tensionId?: undefined;
2072
2402
  order?: undefined;
2073
2403
  _id?: undefined;
2404
+ roleId?: undefined;
2405
+ removeNest?: undefined;
2074
2406
  partId?: undefined;
2075
2407
  childId?: undefined;
2076
2408
  status?: undefined;
@@ -2096,6 +2428,9 @@ export declare const toolDefinitions: ({
2096
2428
  };
2097
2429
  topic?: undefined;
2098
2430
  search?: undefined;
2431
+ includeImages?: undefined;
2432
+ imageIndexes?: undefined;
2433
+ maxImages?: undefined;
2099
2434
  limit?: undefined;
2100
2435
  page?: undefined;
2101
2436
  stripDescription?: undefined;
@@ -2151,6 +2486,8 @@ export declare const toolDefinitions: ({
2151
2486
  tensionId?: undefined;
2152
2487
  order?: undefined;
2153
2488
  _id?: undefined;
2489
+ roleId?: undefined;
2490
+ removeNest?: undefined;
2154
2491
  partId?: undefined;
2155
2492
  childId?: undefined;
2156
2493
  status?: undefined;
@@ -2188,6 +2525,9 @@ export declare const toolDefinitions: ({
2188
2525
  };
2189
2526
  topic?: undefined;
2190
2527
  search?: undefined;
2528
+ includeImages?: undefined;
2529
+ imageIndexes?: undefined;
2530
+ maxImages?: undefined;
2191
2531
  title?: undefined;
2192
2532
  purpose?: undefined;
2193
2533
  type?: undefined;
@@ -2240,6 +2580,8 @@ export declare const toolDefinitions: ({
2240
2580
  tensionId?: undefined;
2241
2581
  order?: undefined;
2242
2582
  _id?: undefined;
2583
+ roleId?: undefined;
2584
+ removeNest?: undefined;
2243
2585
  partId?: undefined;
2244
2586
  childId?: undefined;
2245
2587
  status?: undefined;
@@ -2281,6 +2623,9 @@ export declare const toolDefinitions: ({
2281
2623
  };
2282
2624
  topic?: undefined;
2283
2625
  search?: undefined;
2626
+ includeImages?: undefined;
2627
+ imageIndexes?: undefined;
2628
+ maxImages?: undefined;
2284
2629
  title?: undefined;
2285
2630
  purpose?: undefined;
2286
2631
  type?: undefined;
@@ -2332,6 +2677,8 @@ export declare const toolDefinitions: ({
2332
2677
  tensionId?: undefined;
2333
2678
  order?: undefined;
2334
2679
  _id?: undefined;
2680
+ roleId?: undefined;
2681
+ removeNest?: undefined;
2335
2682
  partId?: undefined;
2336
2683
  childId?: undefined;
2337
2684
  status?: undefined;
@@ -2373,6 +2720,9 @@ export declare const toolDefinitions: ({
2373
2720
  };
2374
2721
  topic?: undefined;
2375
2722
  search?: undefined;
2723
+ includeImages?: undefined;
2724
+ imageIndexes?: undefined;
2725
+ maxImages?: undefined;
2376
2726
  limit?: undefined;
2377
2727
  page?: undefined;
2378
2728
  stripDescription?: undefined;
@@ -2424,6 +2774,8 @@ export declare const toolDefinitions: ({
2424
2774
  tensionId?: undefined;
2425
2775
  order?: undefined;
2426
2776
  _id?: undefined;
2777
+ roleId?: undefined;
2778
+ removeNest?: undefined;
2427
2779
  partId?: undefined;
2428
2780
  childId?: undefined;
2429
2781
  status?: undefined;
@@ -2453,6 +2805,9 @@ export declare const toolDefinitions: ({
2453
2805
  };
2454
2806
  topic?: undefined;
2455
2807
  search?: undefined;
2808
+ includeImages?: undefined;
2809
+ imageIndexes?: undefined;
2810
+ maxImages?: undefined;
2456
2811
  limit?: undefined;
2457
2812
  page?: undefined;
2458
2813
  stripDescription?: undefined;
@@ -2507,6 +2862,8 @@ export declare const toolDefinitions: ({
2507
2862
  tensionId?: undefined;
2508
2863
  order?: undefined;
2509
2864
  _id?: undefined;
2865
+ roleId?: undefined;
2866
+ removeNest?: undefined;
2510
2867
  partId?: undefined;
2511
2868
  childId?: undefined;
2512
2869
  status?: undefined;
@@ -2543,6 +2900,9 @@ export declare const toolDefinitions: ({
2543
2900
  description: string;
2544
2901
  };
2545
2902
  topic?: undefined;
2903
+ includeImages?: undefined;
2904
+ imageIndexes?: undefined;
2905
+ maxImages?: undefined;
2546
2906
  stripDescription?: undefined;
2547
2907
  title?: undefined;
2548
2908
  purpose?: undefined;
@@ -2596,6 +2956,8 @@ export declare const toolDefinitions: ({
2596
2956
  tensionId?: undefined;
2597
2957
  order?: undefined;
2598
2958
  _id?: undefined;
2959
+ roleId?: undefined;
2960
+ removeNest?: undefined;
2599
2961
  partId?: undefined;
2600
2962
  childId?: undefined;
2601
2963
  status?: undefined;
@@ -2637,6 +2999,9 @@ export declare const toolDefinitions: ({
2637
2999
  };
2638
3000
  topic?: undefined;
2639
3001
  search?: undefined;
3002
+ includeImages?: undefined;
3003
+ imageIndexes?: undefined;
3004
+ maxImages?: undefined;
2640
3005
  title?: undefined;
2641
3006
  purpose?: undefined;
2642
3007
  type?: undefined;
@@ -2688,6 +3053,8 @@ export declare const toolDefinitions: ({
2688
3053
  tensionId?: undefined;
2689
3054
  order?: undefined;
2690
3055
  _id?: undefined;
3056
+ roleId?: undefined;
3057
+ removeNest?: undefined;
2691
3058
  partId?: undefined;
2692
3059
  childId?: undefined;
2693
3060
  status?: undefined;
@@ -2717,11 +3084,20 @@ export declare const toolDefinitions: ({
2717
3084
  description: string;
2718
3085
  };
2719
3086
  depth: {
2720
- type: string;
3087
+ oneOf: ({
3088
+ type: string;
3089
+ enum?: undefined;
3090
+ } | {
3091
+ type: string;
3092
+ enum: string[];
3093
+ })[];
2721
3094
  description: string;
2722
3095
  };
2723
3096
  topic?: undefined;
2724
3097
  search?: undefined;
3098
+ includeImages?: undefined;
3099
+ imageIndexes?: undefined;
3100
+ maxImages?: undefined;
2725
3101
  limit?: undefined;
2726
3102
  page?: undefined;
2727
3103
  stripDescription?: undefined;
@@ -2776,6 +3152,8 @@ export declare const toolDefinitions: ({
2776
3152
  tensionId?: undefined;
2777
3153
  order?: undefined;
2778
3154
  _id?: undefined;
3155
+ roleId?: undefined;
3156
+ removeNest?: undefined;
2779
3157
  partId?: undefined;
2780
3158
  childId?: undefined;
2781
3159
  status?: undefined;
@@ -2809,6 +3187,9 @@ export declare const toolDefinitions: ({
2809
3187
  };
2810
3188
  topic?: undefined;
2811
3189
  search?: undefined;
3190
+ includeImages?: undefined;
3191
+ imageIndexes?: undefined;
3192
+ maxImages?: undefined;
2812
3193
  limit?: undefined;
2813
3194
  page?: undefined;
2814
3195
  title?: undefined;
@@ -2862,6 +3243,8 @@ export declare const toolDefinitions: ({
2862
3243
  tensionId?: undefined;
2863
3244
  order?: undefined;
2864
3245
  _id?: undefined;
3246
+ roleId?: undefined;
3247
+ removeNest?: undefined;
2865
3248
  partId?: undefined;
2866
3249
  childId?: undefined;
2867
3250
  status?: undefined;
@@ -2891,6 +3274,9 @@ export declare const toolDefinitions: ({
2891
3274
  };
2892
3275
  topic?: undefined;
2893
3276
  search?: undefined;
3277
+ includeImages?: undefined;
3278
+ imageIndexes?: undefined;
3279
+ maxImages?: undefined;
2894
3280
  limit?: undefined;
2895
3281
  page?: undefined;
2896
3282
  stripDescription?: undefined;
@@ -2945,6 +3331,8 @@ export declare const toolDefinitions: ({
2945
3331
  tensionId?: undefined;
2946
3332
  order?: undefined;
2947
3333
  _id?: undefined;
3334
+ roleId?: undefined;
3335
+ removeNest?: undefined;
2948
3336
  partId?: undefined;
2949
3337
  childId?: undefined;
2950
3338
  status?: undefined;
@@ -2982,6 +3370,9 @@ export declare const toolDefinitions: ({
2982
3370
  };
2983
3371
  topic?: undefined;
2984
3372
  search?: undefined;
3373
+ includeImages?: undefined;
3374
+ imageIndexes?: undefined;
3375
+ maxImages?: undefined;
2985
3376
  limit?: undefined;
2986
3377
  page?: undefined;
2987
3378
  stripDescription?: undefined;
@@ -3034,6 +3425,8 @@ export declare const toolDefinitions: ({
3034
3425
  tensionId?: undefined;
3035
3426
  order?: undefined;
3036
3427
  _id?: undefined;
3428
+ roleId?: undefined;
3429
+ removeNest?: undefined;
3037
3430
  partId?: undefined;
3038
3431
  childId?: undefined;
3039
3432
  status?: undefined;
@@ -3063,6 +3456,9 @@ export declare const toolDefinitions: ({
3063
3456
  };
3064
3457
  topic?: undefined;
3065
3458
  search?: undefined;
3459
+ includeImages?: undefined;
3460
+ imageIndexes?: undefined;
3461
+ maxImages?: undefined;
3066
3462
  limit?: undefined;
3067
3463
  page?: undefined;
3068
3464
  stripDescription?: undefined;
@@ -3117,6 +3513,8 @@ export declare const toolDefinitions: ({
3117
3513
  tensionId?: undefined;
3118
3514
  order?: undefined;
3119
3515
  _id?: undefined;
3516
+ roleId?: undefined;
3517
+ removeNest?: undefined;
3120
3518
  partId?: undefined;
3121
3519
  childId?: undefined;
3122
3520
  status?: undefined;
@@ -3158,6 +3556,9 @@ export declare const toolDefinitions: ({
3158
3556
  };
3159
3557
  topic?: undefined;
3160
3558
  search?: undefined;
3559
+ includeImages?: undefined;
3560
+ imageIndexes?: undefined;
3561
+ maxImages?: undefined;
3161
3562
  page?: undefined;
3162
3563
  stripDescription?: undefined;
3163
3564
  title?: undefined;
@@ -3209,6 +3610,8 @@ export declare const toolDefinitions: ({
3209
3610
  tensionId?: undefined;
3210
3611
  order?: undefined;
3211
3612
  _id?: undefined;
3613
+ roleId?: undefined;
3614
+ removeNest?: undefined;
3212
3615
  partId?: undefined;
3213
3616
  childId?: undefined;
3214
3617
  status?: undefined;
@@ -3234,6 +3637,9 @@ export declare const toolDefinitions: ({
3234
3637
  };
3235
3638
  topic?: undefined;
3236
3639
  search?: undefined;
3640
+ includeImages?: undefined;
3641
+ imageIndexes?: undefined;
3642
+ maxImages?: undefined;
3237
3643
  limit?: undefined;
3238
3644
  page?: undefined;
3239
3645
  stripDescription?: undefined;
@@ -3289,6 +3695,8 @@ export declare const toolDefinitions: ({
3289
3695
  tensionId?: undefined;
3290
3696
  order?: undefined;
3291
3697
  _id?: undefined;
3698
+ roleId?: undefined;
3699
+ removeNest?: undefined;
3292
3700
  partId?: undefined;
3293
3701
  childId?: undefined;
3294
3702
  status?: undefined;
@@ -3318,6 +3726,9 @@ export declare const toolDefinitions: ({
3318
3726
  };
3319
3727
  topic?: undefined;
3320
3728
  search?: undefined;
3729
+ includeImages?: undefined;
3730
+ imageIndexes?: undefined;
3731
+ maxImages?: undefined;
3321
3732
  limit?: undefined;
3322
3733
  page?: undefined;
3323
3734
  workspaceId?: undefined;
@@ -3372,6 +3783,8 @@ export declare const toolDefinitions: ({
3372
3783
  tensionId?: undefined;
3373
3784
  order?: undefined;
3374
3785
  _id?: undefined;
3786
+ roleId?: undefined;
3787
+ removeNest?: undefined;
3375
3788
  partId?: undefined;
3376
3789
  childId?: undefined;
3377
3790
  status?: undefined;
@@ -3406,6 +3819,9 @@ export declare const toolDefinitions: ({
3406
3819
  };
3407
3820
  topic?: undefined;
3408
3821
  search?: undefined;
3822
+ includeImages?: undefined;
3823
+ imageIndexes?: undefined;
3824
+ maxImages?: undefined;
3409
3825
  limit?: undefined;
3410
3826
  page?: undefined;
3411
3827
  stripDescription?: undefined;
@@ -3460,6 +3876,8 @@ export declare const toolDefinitions: ({
3460
3876
  tensionId?: undefined;
3461
3877
  order?: undefined;
3462
3878
  _id?: undefined;
3879
+ roleId?: undefined;
3880
+ removeNest?: undefined;
3463
3881
  partId?: undefined;
3464
3882
  childId?: undefined;
3465
3883
  status?: undefined;
@@ -3489,6 +3907,9 @@ export declare const toolDefinitions: ({
3489
3907
  };
3490
3908
  topic?: undefined;
3491
3909
  search?: undefined;
3910
+ includeImages?: undefined;
3911
+ imageIndexes?: undefined;
3912
+ maxImages?: undefined;
3492
3913
  limit?: undefined;
3493
3914
  page?: undefined;
3494
3915
  workspaceId?: undefined;
@@ -3543,6 +3964,8 @@ export declare const toolDefinitions: ({
3543
3964
  tensionId?: undefined;
3544
3965
  order?: undefined;
3545
3966
  _id?: undefined;
3967
+ roleId?: undefined;
3968
+ removeNest?: undefined;
3546
3969
  partId?: undefined;
3547
3970
  childId?: undefined;
3548
3971
  status?: undefined;
@@ -3584,6 +4007,9 @@ export declare const toolDefinitions: ({
3584
4007
  };
3585
4008
  topic?: undefined;
3586
4009
  search?: undefined;
4010
+ includeImages?: undefined;
4011
+ imageIndexes?: undefined;
4012
+ maxImages?: undefined;
3587
4013
  limit?: undefined;
3588
4014
  page?: undefined;
3589
4015
  stripDescription?: undefined;
@@ -3635,6 +4061,8 @@ export declare const toolDefinitions: ({
3635
4061
  tensionId?: undefined;
3636
4062
  order?: undefined;
3637
4063
  _id?: undefined;
4064
+ roleId?: undefined;
4065
+ removeNest?: undefined;
3638
4066
  partId?: undefined;
3639
4067
  childId?: undefined;
3640
4068
  status?: undefined;
@@ -3663,6 +4091,9 @@ export declare const toolDefinitions: ({
3663
4091
  };
3664
4092
  topic?: undefined;
3665
4093
  search?: undefined;
4094
+ includeImages?: undefined;
4095
+ imageIndexes?: undefined;
4096
+ maxImages?: undefined;
3666
4097
  limit?: undefined;
3667
4098
  page?: undefined;
3668
4099
  stripDescription?: undefined;
@@ -3718,6 +4149,8 @@ export declare const toolDefinitions: ({
3718
4149
  tensionId?: undefined;
3719
4150
  order?: undefined;
3720
4151
  _id?: undefined;
4152
+ roleId?: undefined;
4153
+ removeNest?: undefined;
3721
4154
  partId?: undefined;
3722
4155
  childId?: undefined;
3723
4156
  status?: undefined;
@@ -3752,6 +4185,9 @@ export declare const toolDefinitions: ({
3752
4185
  };
3753
4186
  topic?: undefined;
3754
4187
  search?: undefined;
4188
+ includeImages?: undefined;
4189
+ imageIndexes?: undefined;
4190
+ maxImages?: undefined;
3755
4191
  limit?: undefined;
3756
4192
  page?: undefined;
3757
4193
  stripDescription?: undefined;
@@ -3805,6 +4241,8 @@ export declare const toolDefinitions: ({
3805
4241
  tensionId?: undefined;
3806
4242
  order?: undefined;
3807
4243
  _id?: undefined;
4244
+ roleId?: undefined;
4245
+ removeNest?: undefined;
3808
4246
  partId?: undefined;
3809
4247
  childId?: undefined;
3810
4248
  status?: undefined;
@@ -3814,83 +4252,6 @@ export declare const toolDefinitions: ({
3814
4252
  };
3815
4253
  required: string[];
3816
4254
  };
3817
- } | {
3818
- annotations: {
3819
- readOnlyHint: boolean;
3820
- destructiveHint: boolean;
3821
- };
3822
- name: string;
3823
- description: string;
3824
- inputSchema: {
3825
- type: "object";
3826
- properties: {
3827
- topic?: undefined;
3828
- search?: undefined;
3829
- limit?: undefined;
3830
- page?: undefined;
3831
- stripDescription?: undefined;
3832
- workspaceId?: undefined;
3833
- title?: undefined;
3834
- purpose?: undefined;
3835
- type?: undefined;
3836
- governance?: undefined;
3837
- plan?: undefined;
3838
- apps?: undefined;
3839
- layout?: undefined;
3840
- query?: undefined;
3841
- _listTitle?: undefined;
3842
- nestId?: undefined;
3843
- fieldsMetaData?: undefined;
3844
- hints?: undefined;
3845
- parentId?: undefined;
3846
- description?: undefined;
3847
- labels?: undefined;
3848
- fields?: undefined;
3849
- users?: undefined;
3850
- accountabilities?: undefined;
3851
- domains?: undefined;
3852
- data?: undefined;
3853
- due?: undefined;
3854
- completed?: undefined;
3855
- body?: undefined;
3856
- commentId?: undefined;
3857
- circleId?: undefined;
3858
- includeSubCircles?: undefined;
3859
- userId?: undefined;
3860
- endDate?: undefined;
3861
- metricId?: undefined;
3862
- depth?: undefined;
3863
- username?: undefined;
3864
- fullName?: undefined;
3865
- language?: undefined;
3866
- labelId?: undefined;
3867
- from?: undefined;
3868
- to?: undefined;
3869
- completedAfter?: undefined;
3870
- nestIds?: undefined;
3871
- position?: undefined;
3872
- relatedNestId?: undefined;
3873
- color?: undefined;
3874
- icon?: undefined;
3875
- fullWorkspaces?: undefined;
3876
- context?: undefined;
3877
- skip?: undefined;
3878
- showRead?: undefined;
3879
- group?: undefined;
3880
- feeling?: undefined;
3881
- needs?: undefined;
3882
- tensionId?: undefined;
3883
- order?: undefined;
3884
- _id?: undefined;
3885
- partId?: undefined;
3886
- childId?: undefined;
3887
- status?: undefined;
3888
- relation?: undefined;
3889
- direction?: undefined;
3890
- targetId?: undefined;
3891
- };
3892
- required?: undefined;
3893
- };
3894
4255
  } | {
3895
4256
  annotations: {
3896
4257
  readOnlyHint: boolean;
@@ -3919,6 +4280,9 @@ export declare const toolDefinitions: ({
3919
4280
  };
3920
4281
  topic?: undefined;
3921
4282
  search?: undefined;
4283
+ includeImages?: undefined;
4284
+ imageIndexes?: undefined;
4285
+ maxImages?: undefined;
3922
4286
  limit?: undefined;
3923
4287
  page?: undefined;
3924
4288
  stripDescription?: undefined;
@@ -3971,6 +4335,8 @@ export declare const toolDefinitions: ({
3971
4335
  tensionId?: undefined;
3972
4336
  order?: undefined;
3973
4337
  _id?: undefined;
4338
+ roleId?: undefined;
4339
+ removeNest?: undefined;
3974
4340
  partId?: undefined;
3975
4341
  childId?: undefined;
3976
4342
  status?: undefined;
@@ -4003,6 +4369,9 @@ export declare const toolDefinitions: ({
4003
4369
  };
4004
4370
  topic?: undefined;
4005
4371
  search?: undefined;
4372
+ includeImages?: undefined;
4373
+ imageIndexes?: undefined;
4374
+ maxImages?: undefined;
4006
4375
  limit?: undefined;
4007
4376
  page?: undefined;
4008
4377
  stripDescription?: undefined;
@@ -4057,6 +4426,8 @@ export declare const toolDefinitions: ({
4057
4426
  tensionId?: undefined;
4058
4427
  order?: undefined;
4059
4428
  _id?: undefined;
4429
+ roleId?: undefined;
4430
+ removeNest?: undefined;
4060
4431
  partId?: undefined;
4061
4432
  childId?: undefined;
4062
4433
  status?: undefined;
@@ -4082,6 +4453,9 @@ export declare const toolDefinitions: ({
4082
4453
  };
4083
4454
  topic?: undefined;
4084
4455
  search?: undefined;
4456
+ includeImages?: undefined;
4457
+ imageIndexes?: undefined;
4458
+ maxImages?: undefined;
4085
4459
  limit?: undefined;
4086
4460
  page?: undefined;
4087
4461
  workspaceId?: undefined;
@@ -4137,6 +4511,8 @@ export declare const toolDefinitions: ({
4137
4511
  tensionId?: undefined;
4138
4512
  order?: undefined;
4139
4513
  _id?: undefined;
4514
+ roleId?: undefined;
4515
+ removeNest?: undefined;
4140
4516
  partId?: undefined;
4141
4517
  childId?: undefined;
4142
4518
  status?: undefined;
@@ -4171,6 +4547,9 @@ export declare const toolDefinitions: ({
4171
4547
  };
4172
4548
  topic?: undefined;
4173
4549
  search?: undefined;
4550
+ includeImages?: undefined;
4551
+ imageIndexes?: undefined;
4552
+ maxImages?: undefined;
4174
4553
  limit?: undefined;
4175
4554
  page?: undefined;
4176
4555
  stripDescription?: undefined;
@@ -4225,6 +4604,8 @@ export declare const toolDefinitions: ({
4225
4604
  tensionId?: undefined;
4226
4605
  order?: undefined;
4227
4606
  _id?: undefined;
4607
+ roleId?: undefined;
4608
+ removeNest?: undefined;
4228
4609
  partId?: undefined;
4229
4610
  childId?: undefined;
4230
4611
  status?: undefined;
@@ -4250,6 +4631,9 @@ export declare const toolDefinitions: ({
4250
4631
  };
4251
4632
  topic?: undefined;
4252
4633
  search?: undefined;
4634
+ includeImages?: undefined;
4635
+ imageIndexes?: undefined;
4636
+ maxImages?: undefined;
4253
4637
  limit?: undefined;
4254
4638
  page?: undefined;
4255
4639
  stripDescription?: undefined;
@@ -4305,6 +4689,8 @@ export declare const toolDefinitions: ({
4305
4689
  tensionId?: undefined;
4306
4690
  order?: undefined;
4307
4691
  _id?: undefined;
4692
+ roleId?: undefined;
4693
+ removeNest?: undefined;
4308
4694
  partId?: undefined;
4309
4695
  childId?: undefined;
4310
4696
  status?: undefined;
@@ -4330,6 +4716,9 @@ export declare const toolDefinitions: ({
4330
4716
  };
4331
4717
  topic?: undefined;
4332
4718
  search?: undefined;
4719
+ includeImages?: undefined;
4720
+ imageIndexes?: undefined;
4721
+ maxImages?: undefined;
4333
4722
  limit?: undefined;
4334
4723
  page?: undefined;
4335
4724
  stripDescription?: undefined;
@@ -4385,6 +4774,8 @@ export declare const toolDefinitions: ({
4385
4774
  tensionId?: undefined;
4386
4775
  order?: undefined;
4387
4776
  _id?: undefined;
4777
+ roleId?: undefined;
4778
+ removeNest?: undefined;
4388
4779
  partId?: undefined;
4389
4780
  childId?: undefined;
4390
4781
  status?: undefined;
@@ -4427,6 +4818,9 @@ export declare const toolDefinitions: ({
4427
4818
  };
4428
4819
  topic?: undefined;
4429
4820
  search?: undefined;
4821
+ includeImages?: undefined;
4822
+ imageIndexes?: undefined;
4823
+ maxImages?: undefined;
4430
4824
  page?: undefined;
4431
4825
  stripDescription?: undefined;
4432
4826
  workspaceId?: undefined;
@@ -4478,6 +4872,8 @@ export declare const toolDefinitions: ({
4478
4872
  tensionId?: undefined;
4479
4873
  order?: undefined;
4480
4874
  _id?: undefined;
4875
+ roleId?: undefined;
4876
+ removeNest?: undefined;
4481
4877
  partId?: undefined;
4482
4878
  childId?: undefined;
4483
4879
  status?: undefined;
@@ -4519,6 +4915,9 @@ export declare const toolDefinitions: ({
4519
4915
  };
4520
4916
  topic?: undefined;
4521
4917
  search?: undefined;
4918
+ includeImages?: undefined;
4919
+ imageIndexes?: undefined;
4920
+ maxImages?: undefined;
4522
4921
  limit?: undefined;
4523
4922
  page?: undefined;
4524
4923
  stripDescription?: undefined;
@@ -4570,6 +4969,8 @@ export declare const toolDefinitions: ({
4570
4969
  tensionId?: undefined;
4571
4970
  order?: undefined;
4572
4971
  _id?: undefined;
4972
+ roleId?: undefined;
4973
+ removeNest?: undefined;
4573
4974
  partId?: undefined;
4574
4975
  childId?: undefined;
4575
4976
  status?: undefined;
@@ -4599,6 +5000,9 @@ export declare const toolDefinitions: ({
4599
5000
  };
4600
5001
  topic?: undefined;
4601
5002
  search?: undefined;
5003
+ includeImages?: undefined;
5004
+ imageIndexes?: undefined;
5005
+ maxImages?: undefined;
4602
5006
  limit?: undefined;
4603
5007
  page?: undefined;
4604
5008
  stripDescription?: undefined;
@@ -4653,6 +5057,8 @@ export declare const toolDefinitions: ({
4653
5057
  needs?: undefined;
4654
5058
  order?: undefined;
4655
5059
  _id?: undefined;
5060
+ roleId?: undefined;
5061
+ removeNest?: undefined;
4656
5062
  partId?: undefined;
4657
5063
  childId?: undefined;
4658
5064
  status?: undefined;
@@ -4689,6 +5095,9 @@ export declare const toolDefinitions: ({
4689
5095
  description: string;
4690
5096
  };
4691
5097
  topic?: undefined;
5098
+ includeImages?: undefined;
5099
+ imageIndexes?: undefined;
5100
+ maxImages?: undefined;
4692
5101
  page?: undefined;
4693
5102
  stripDescription?: undefined;
4694
5103
  workspaceId?: undefined;
@@ -4742,6 +5151,8 @@ export declare const toolDefinitions: ({
4742
5151
  needs?: undefined;
4743
5152
  tensionId?: undefined;
4744
5153
  _id?: undefined;
5154
+ roleId?: undefined;
5155
+ removeNest?: undefined;
4745
5156
  partId?: undefined;
4746
5157
  childId?: undefined;
4747
5158
  status?: undefined;
@@ -4787,6 +5198,9 @@ export declare const toolDefinitions: ({
4787
5198
  };
4788
5199
  topic?: undefined;
4789
5200
  search?: undefined;
5201
+ includeImages?: undefined;
5202
+ imageIndexes?: undefined;
5203
+ maxImages?: undefined;
4790
5204
  limit?: undefined;
4791
5205
  page?: undefined;
4792
5206
  stripDescription?: undefined;
@@ -4837,6 +5251,8 @@ export declare const toolDefinitions: ({
4837
5251
  group?: undefined;
4838
5252
  order?: undefined;
4839
5253
  _id?: undefined;
5254
+ roleId?: undefined;
5255
+ removeNest?: undefined;
4840
5256
  partId?: undefined;
4841
5257
  childId?: undefined;
4842
5258
  status?: undefined;
@@ -4916,8 +5332,19 @@ export declare const toolDefinitions: ({
4916
5332
  };
4917
5333
  description: string;
4918
5334
  };
5335
+ roleId: {
5336
+ type: string;
5337
+ description: string;
5338
+ };
5339
+ removeNest: {
5340
+ type: string;
5341
+ description: string;
5342
+ };
4919
5343
  topic?: undefined;
4920
5344
  search?: undefined;
5345
+ includeImages?: undefined;
5346
+ imageIndexes?: undefined;
5347
+ maxImages?: undefined;
4921
5348
  limit?: undefined;
4922
5349
  page?: undefined;
4923
5350
  stripDescription?: undefined;
@@ -5043,6 +5470,9 @@ export declare const toolDefinitions: ({
5043
5470
  };
5044
5471
  topic?: undefined;
5045
5472
  search?: undefined;
5473
+ includeImages?: undefined;
5474
+ imageIndexes?: undefined;
5475
+ maxImages?: undefined;
5046
5476
  limit?: undefined;
5047
5477
  page?: undefined;
5048
5478
  stripDescription?: undefined;
@@ -5088,6 +5518,8 @@ export declare const toolDefinitions: ({
5088
5518
  needs?: undefined;
5089
5519
  order?: undefined;
5090
5520
  _id?: undefined;
5521
+ roleId?: undefined;
5522
+ removeNest?: undefined;
5091
5523
  childId?: undefined;
5092
5524
  status?: undefined;
5093
5525
  relation?: undefined;
@@ -5120,6 +5552,9 @@ export declare const toolDefinitions: ({
5120
5552
  };
5121
5553
  topic?: undefined;
5122
5554
  search?: undefined;
5555
+ includeImages?: undefined;
5556
+ imageIndexes?: undefined;
5557
+ maxImages?: undefined;
5123
5558
  limit?: undefined;
5124
5559
  page?: undefined;
5125
5560
  stripDescription?: undefined;
@@ -5174,6 +5609,8 @@ export declare const toolDefinitions: ({
5174
5609
  needs?: undefined;
5175
5610
  order?: undefined;
5176
5611
  _id?: undefined;
5612
+ roleId?: undefined;
5613
+ removeNest?: undefined;
5177
5614
  childId?: undefined;
5178
5615
  status?: undefined;
5179
5616
  relation?: undefined;
@@ -5202,6 +5639,9 @@ export declare const toolDefinitions: ({
5202
5639
  };
5203
5640
  topic?: undefined;
5204
5641
  search?: undefined;
5642
+ includeImages?: undefined;
5643
+ imageIndexes?: undefined;
5644
+ maxImages?: undefined;
5205
5645
  limit?: undefined;
5206
5646
  page?: undefined;
5207
5647
  stripDescription?: undefined;
@@ -5256,6 +5696,8 @@ export declare const toolDefinitions: ({
5256
5696
  needs?: undefined;
5257
5697
  order?: undefined;
5258
5698
  _id?: undefined;
5699
+ roleId?: undefined;
5700
+ removeNest?: undefined;
5259
5701
  childId?: undefined;
5260
5702
  status?: undefined;
5261
5703
  relation?: undefined;
@@ -5295,6 +5737,9 @@ export declare const toolDefinitions: ({
5295
5737
  };
5296
5738
  topic?: undefined;
5297
5739
  search?: undefined;
5740
+ includeImages?: undefined;
5741
+ imageIndexes?: undefined;
5742
+ maxImages?: undefined;
5298
5743
  limit?: undefined;
5299
5744
  page?: undefined;
5300
5745
  stripDescription?: undefined;
@@ -5347,6 +5792,8 @@ export declare const toolDefinitions: ({
5347
5792
  needs?: undefined;
5348
5793
  order?: undefined;
5349
5794
  _id?: undefined;
5795
+ roleId?: undefined;
5796
+ removeNest?: undefined;
5350
5797
  childId?: undefined;
5351
5798
  status?: undefined;
5352
5799
  relation?: undefined;
@@ -5383,6 +5830,9 @@ export declare const toolDefinitions: ({
5383
5830
  };
5384
5831
  topic?: undefined;
5385
5832
  search?: undefined;
5833
+ includeImages?: undefined;
5834
+ imageIndexes?: undefined;
5835
+ maxImages?: undefined;
5386
5836
  limit?: undefined;
5387
5837
  page?: undefined;
5388
5838
  stripDescription?: undefined;
@@ -5436,6 +5886,8 @@ export declare const toolDefinitions: ({
5436
5886
  needs?: undefined;
5437
5887
  order?: undefined;
5438
5888
  _id?: undefined;
5889
+ roleId?: undefined;
5890
+ removeNest?: undefined;
5439
5891
  status?: undefined;
5440
5892
  relation?: undefined;
5441
5893
  direction?: undefined;
@@ -5467,6 +5919,9 @@ export declare const toolDefinitions: ({
5467
5919
  };
5468
5920
  topic?: undefined;
5469
5921
  search?: undefined;
5922
+ includeImages?: undefined;
5923
+ imageIndexes?: undefined;
5924
+ maxImages?: undefined;
5470
5925
  limit?: undefined;
5471
5926
  page?: undefined;
5472
5927
  stripDescription?: undefined;
@@ -5521,6 +5976,8 @@ export declare const toolDefinitions: ({
5521
5976
  needs?: undefined;
5522
5977
  order?: undefined;
5523
5978
  _id?: undefined;
5979
+ roleId?: undefined;
5980
+ removeNest?: undefined;
5524
5981
  status?: undefined;
5525
5982
  relation?: undefined;
5526
5983
  direction?: undefined;
@@ -5553,6 +6010,9 @@ export declare const toolDefinitions: ({
5553
6010
  };
5554
6011
  topic?: undefined;
5555
6012
  search?: undefined;
6013
+ includeImages?: undefined;
6014
+ imageIndexes?: undefined;
6015
+ maxImages?: undefined;
5556
6016
  limit?: undefined;
5557
6017
  page?: undefined;
5558
6018
  stripDescription?: undefined;
@@ -5607,6 +6067,8 @@ export declare const toolDefinitions: ({
5607
6067
  needs?: undefined;
5608
6068
  order?: undefined;
5609
6069
  _id?: undefined;
6070
+ roleId?: undefined;
6071
+ removeNest?: undefined;
5610
6072
  partId?: undefined;
5611
6073
  childId?: undefined;
5612
6074
  relation?: undefined;
@@ -5648,6 +6110,9 @@ export declare const toolDefinitions: ({
5648
6110
  };
5649
6111
  topic?: undefined;
5650
6112
  search?: undefined;
6113
+ includeImages?: undefined;
6114
+ imageIndexes?: undefined;
6115
+ maxImages?: undefined;
5651
6116
  stripDescription?: undefined;
5652
6117
  workspaceId?: undefined;
5653
6118
  title?: undefined;
@@ -5701,6 +6166,8 @@ export declare const toolDefinitions: ({
5701
6166
  tensionId?: undefined;
5702
6167
  order?: undefined;
5703
6168
  _id?: undefined;
6169
+ roleId?: undefined;
6170
+ removeNest?: undefined;
5704
6171
  partId?: undefined;
5705
6172
  childId?: undefined;
5706
6173
  status?: undefined;
@@ -5732,6 +6199,9 @@ export declare const toolDefinitions: ({
5732
6199
  };
5733
6200
  topic?: undefined;
5734
6201
  search?: undefined;
6202
+ includeImages?: undefined;
6203
+ imageIndexes?: undefined;
6204
+ maxImages?: undefined;
5735
6205
  limit?: undefined;
5736
6206
  page?: undefined;
5737
6207
  stripDescription?: undefined;
@@ -5787,6 +6257,8 @@ export declare const toolDefinitions: ({
5787
6257
  tensionId?: undefined;
5788
6258
  order?: undefined;
5789
6259
  _id?: undefined;
6260
+ roleId?: undefined;
6261
+ removeNest?: undefined;
5790
6262
  partId?: undefined;
5791
6263
  childId?: undefined;
5792
6264
  status?: undefined;
@@ -5799,11 +6271,29 @@ export type ToolResult = {
5799
6271
  content: Array<{
5800
6272
  type: "text";
5801
6273
  text: string;
6274
+ } | {
6275
+ type: "image";
6276
+ data: string;
6277
+ mimeType: string;
5802
6278
  }>;
5803
6279
  isError?: boolean;
5804
6280
  };
5805
6281
  export declare function stripDescriptionFields(data: unknown): unknown;
5806
6282
  export declare function unescapeRichTextFields(args: Record<string, unknown>): Record<string, unknown>;
5807
- export declare function handleToolCall(client: NestrClient, name: string, args: Record<string, unknown>): Promise<ToolResult>;
6283
+ /**
6284
+ * Per-tool-call context. Carries session-level info that diagnose-style
6285
+ * tools need but ordinary tools don't. Optional so tests/callers that don't
6286
+ * have a session (CLI, stdio mode) can still call handleToolCall.
6287
+ */
6288
+ export interface ToolCallContext {
6289
+ getDiagnose?: () => DiagnoseSnapshot;
6290
+ /**
6291
+ * When true, this call came in on the PUBLIC (unauthenticated) MCP surface.
6292
+ * Only PUBLIC_TOOL_NAMES are permitted, and nestr_get_me returns a guest
6293
+ * payload without contacting the Nestr API. Any other tool is refused.
6294
+ */
6295
+ isPublic?: boolean;
6296
+ }
6297
+ export declare function handleToolCall(client: NestrClient, name: string, args: Record<string, unknown>, context?: ToolCallContext): Promise<ToolResult>;
5808
6298
  export {};
5809
6299
  //# sourceMappingURL=index.d.ts.map