@ankimcp/anki-mcp-server 0.8.3 → 0.8.5

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 (33) hide show
  1. package/README.md +30 -3
  2. package/dist/mcp/primitives/essential/tools/add-note.tool.d.ts +8 -16
  3. package/dist/mcp/primitives/essential/tools/create-deck.tool.d.ts +8 -16
  4. package/dist/mcp/primitives/essential/tools/create-model.tool.d.ts +8 -16
  5. package/dist/mcp/primitives/essential/tools/delete-notes.tool.d.ts +8 -16
  6. package/dist/mcp/primitives/essential/tools/find-notes.tool.d.ts +8 -16
  7. package/dist/mcp/primitives/essential/tools/get-due-cards.tool.d.ts +8 -16
  8. package/dist/mcp/primitives/essential/tools/list-decks.tool.d.ts +8 -16
  9. package/dist/mcp/primitives/essential/tools/mediaActions/mediaActions.tool.d.ts +8 -16
  10. package/dist/mcp/primitives/essential/tools/model-field-names.tool.d.ts +8 -16
  11. package/dist/mcp/primitives/essential/tools/model-names.tool.d.ts +8 -16
  12. package/dist/mcp/primitives/essential/tools/model-styling.tool.d.ts +8 -16
  13. package/dist/mcp/primitives/essential/tools/notes-info.tool.d.ts +8 -16
  14. package/dist/mcp/primitives/essential/tools/present-card.tool.d.ts +8 -16
  15. package/dist/mcp/primitives/essential/tools/rate-card.tool.d.ts +8 -16
  16. package/dist/mcp/primitives/essential/tools/sync.tool.d.ts +8 -16
  17. package/dist/mcp/primitives/essential/tools/update-model-styling.tool.d.ts +8 -16
  18. package/dist/mcp/primitives/essential/tools/update-note-fields.tool.d.ts +8 -16
  19. package/dist/mcp/primitives/gui/tools/gui-add-cards.tool.d.ts +8 -16
  20. package/dist/mcp/primitives/gui/tools/gui-browse.tool.d.ts +8 -16
  21. package/dist/mcp/primitives/gui/tools/gui-current-card.tool.d.ts +8 -16
  22. package/dist/mcp/primitives/gui/tools/gui-deck-browser.tool.d.ts +8 -16
  23. package/dist/mcp/primitives/gui/tools/gui-deck-overview.tool.d.ts +8 -16
  24. package/dist/mcp/primitives/gui/tools/gui-edit-note.tool.d.ts +8 -16
  25. package/dist/mcp/primitives/gui/tools/gui-select-card.tool.d.ts +8 -16
  26. package/dist/mcp/primitives/gui/tools/gui-selected-notes.tool.d.ts +8 -16
  27. package/dist/mcp/primitives/gui/tools/gui-show-answer.tool.d.ts +8 -16
  28. package/dist/mcp/primitives/gui/tools/gui-show-question.tool.d.ts +8 -16
  29. package/dist/mcp/primitives/gui/tools/gui-undo.tool.d.ts +8 -16
  30. package/dist/services/ngrok.service.js +5 -1
  31. package/dist/services/ngrok.service.js.map +1 -1
  32. package/dist/tsconfig.build.tsbuildinfo +1 -1
  33. package/package.json +12 -4
package/README.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Anki MCP Server
2
2
 
3
+ > **⚠️ IMPORTANT: Project Renamed (v0.8.2+)**
4
+ >
5
+ > This project has been renamed and moved:
6
+ > - **Package**: `anki-mcp-http` → `@ankimcp/anki-mcp-server`
7
+ > - **Commands**: `anki-mcp-http` → `ankimcp` or `anki-mcp-server`
8
+ > - **Repository**: `anki-mcp/anki-mcp-desktop` → `ankimcp/anki-mcp-server`
9
+ >
10
+ > The old `anki-mcp-http` package continues to be published for backward compatibility but is deprecated. Please migrate to the new package.
11
+ >
12
+ > **[Read more about this change →](https://ankimcp.ai/blog/organization-and-naming-update/)**
13
+
3
14
  [![Tests](https://github.com/ankimcp/anki-mcp-server/actions/workflows/test.yml/badge.svg)](https://github.com/ankimcp/anki-mcp-server/actions/workflows/test.yml)
4
15
  [![npm version](https://badge.fury.io/js/@ankimcp%2Fanki-mcp-server.svg)](https://www.npmjs.com/package/@ankimcp/anki-mcp-server)
5
16
 
@@ -358,11 +369,26 @@ The `findNotes` tool supports Anki's powerful query syntax:
358
369
  - Each note model has its own CSS styling - use `modelStyling` to get model-specific CSS
359
370
 
360
371
  #### Update Warning
361
- ⚠️ **IMPORTANT**: When using `updateNoteFields`, do NOT view the note in Anki's browser while updating, or the fields will not update properly. Close the browser or switch to a different note before updating.
372
+ ⚠️ **IMPORTANT**: When using `updateNoteFields`, do NOT view the note in Anki's browser while updating, or the fields will not update properly. Close the browser or switch to a different note before updating. See [Known Issues](#known-issues) for more details.
362
373
 
363
374
  #### Deletion Safety
364
375
  The `deleteNotes` tool requires explicit confirmation (`confirmDeletion: true`) to prevent accidental deletions. Deleting a note removes ALL associated cards permanently.
365
376
 
377
+ ## Known Issues
378
+
379
+ For a comprehensive list of known issues and limitations, please visit our documentation:
380
+
381
+ **[Known Issues Documentation](https://ankimcp.ai/docs/known-issues/)**
382
+
383
+ ### Critical Limitations
384
+
385
+ #### Note Updates Fail When Viewed in Browser
386
+ ⚠️ **IMPORTANT**: When updating notes using `updateNoteFields`, the update will silently fail if the note is currently being viewed in Anki's browser window. This is an upstream AnkiConnect limitation.
387
+
388
+ **Workaround**: Always close the browser or navigate to a different note before updating.
389
+
390
+ For more details and other known issues, see the [full documentation](https://ankimcp.ai/docs/known-issues/).
391
+
366
392
  ## Development
367
393
 
368
394
  ### Transport Modes
@@ -438,14 +464,15 @@ This command will:
438
464
  2. Remove old `.mcpb` files
439
465
  3. Build the TypeScript project
440
466
  4. Package `dist/` and `node_modules/` into an `.mcpb` file
467
+ 5. Run `mcpb clean` to remove devDependencies (optimizes bundle from ~47MB to ~10MB)
441
468
 
442
- The output file will be named based on the current version (e.g., `@ankimcp/anki-mcp-server-0.5.0.mcpb`) and can be distributed for one-click installation.
469
+ The output file will be named `anki-mcp-server-X.X.X.mcpb` and can be distributed for one-click installation.
443
470
 
444
471
  #### What Gets Bundled
445
472
 
446
473
  The MCPB package includes:
447
474
  - Compiled JavaScript (`dist/` directory - includes both entry points)
448
- - All dependencies (`node_modules/`)
475
+ - Production dependencies only (`node_modules/` - devDependencies removed by `mcpb clean`)
449
476
  - Package metadata (`package.json`)
450
477
  - Manifest configuration (`manifest.json` - configured to use `main-stdio.js`)
451
478
  - Icon (`icon.png`)
@@ -19,14 +19,12 @@ export declare class AddNoteTool {
19
19
  }, context: Context): Promise<{
20
20
  [x: string]: unknown;
21
21
  content: ({
22
- [x: string]: unknown;
23
22
  type: "text";
24
23
  text: string;
25
24
  _meta?: {
26
25
  [x: string]: unknown;
27
26
  } | undefined;
28
27
  } | {
29
- [x: string]: unknown;
30
28
  type: "image";
31
29
  data: string;
32
30
  mimeType: string;
@@ -34,7 +32,6 @@ export declare class AddNoteTool {
34
32
  [x: string]: unknown;
35
33
  } | undefined;
36
34
  } | {
37
- [x: string]: unknown;
38
35
  type: "audio";
39
36
  data: string;
40
37
  mimeType: string;
@@ -42,41 +39,36 @@ export declare class AddNoteTool {
42
39
  [x: string]: unknown;
43
40
  } | undefined;
44
41
  } | {
45
- [x: string]: unknown;
46
- type: "resource_link";
47
- name: string;
48
42
  uri: string;
43
+ name: string;
44
+ type: "resource_link";
45
+ description?: string | undefined;
46
+ mimeType?: string | undefined;
49
47
  _meta?: {
50
48
  [x: string]: unknown;
51
49
  } | undefined;
52
- mimeType?: string | undefined;
53
- title?: string | undefined;
54
- description?: string | undefined;
55
50
  icons?: {
56
- [x: string]: unknown;
57
51
  src: string;
58
52
  mimeType?: string | undefined;
59
53
  sizes?: string[] | undefined;
60
54
  }[] | undefined;
55
+ title?: string | undefined;
61
56
  } | {
62
- [x: string]: unknown;
63
57
  type: "resource";
64
58
  resource: {
65
- [x: string]: unknown;
66
- text: string;
67
59
  uri: string;
60
+ text: string;
61
+ mimeType?: string | undefined;
68
62
  _meta?: {
69
63
  [x: string]: unknown;
70
64
  } | undefined;
71
- mimeType?: string | undefined;
72
65
  } | {
73
- [x: string]: unknown;
74
66
  uri: string;
75
67
  blob: string;
68
+ mimeType?: string | undefined;
76
69
  _meta?: {
77
70
  [x: string]: unknown;
78
71
  } | undefined;
79
- mimeType?: string | undefined;
80
72
  };
81
73
  _meta?: {
82
74
  [x: string]: unknown;
@@ -9,14 +9,12 @@ export declare class CreateDeckTool {
9
9
  }, context: Context): Promise<{
10
10
  [x: string]: unknown;
11
11
  content: ({
12
- [x: string]: unknown;
13
12
  type: "text";
14
13
  text: string;
15
14
  _meta?: {
16
15
  [x: string]: unknown;
17
16
  } | undefined;
18
17
  } | {
19
- [x: string]: unknown;
20
18
  type: "image";
21
19
  data: string;
22
20
  mimeType: string;
@@ -24,7 +22,6 @@ export declare class CreateDeckTool {
24
22
  [x: string]: unknown;
25
23
  } | undefined;
26
24
  } | {
27
- [x: string]: unknown;
28
25
  type: "audio";
29
26
  data: string;
30
27
  mimeType: string;
@@ -32,41 +29,36 @@ export declare class CreateDeckTool {
32
29
  [x: string]: unknown;
33
30
  } | undefined;
34
31
  } | {
35
- [x: string]: unknown;
36
- type: "resource_link";
37
- name: string;
38
32
  uri: string;
33
+ name: string;
34
+ type: "resource_link";
35
+ description?: string | undefined;
36
+ mimeType?: string | undefined;
39
37
  _meta?: {
40
38
  [x: string]: unknown;
41
39
  } | undefined;
42
- mimeType?: string | undefined;
43
- title?: string | undefined;
44
- description?: string | undefined;
45
40
  icons?: {
46
- [x: string]: unknown;
47
41
  src: string;
48
42
  mimeType?: string | undefined;
49
43
  sizes?: string[] | undefined;
50
44
  }[] | undefined;
45
+ title?: string | undefined;
51
46
  } | {
52
- [x: string]: unknown;
53
47
  type: "resource";
54
48
  resource: {
55
- [x: string]: unknown;
56
- text: string;
57
49
  uri: string;
50
+ text: string;
51
+ mimeType?: string | undefined;
58
52
  _meta?: {
59
53
  [x: string]: unknown;
60
54
  } | undefined;
61
- mimeType?: string | undefined;
62
55
  } | {
63
- [x: string]: unknown;
64
56
  uri: string;
65
57
  blob: string;
58
+ mimeType?: string | undefined;
66
59
  _meta?: {
67
60
  [x: string]: unknown;
68
61
  } | undefined;
69
- mimeType?: string | undefined;
70
62
  };
71
63
  _meta?: {
72
64
  [x: string]: unknown;
@@ -14,14 +14,12 @@ export declare class CreateModelTool {
14
14
  }, context: Context): Promise<{
15
15
  [x: string]: unknown;
16
16
  content: ({
17
- [x: string]: unknown;
18
17
  type: "text";
19
18
  text: string;
20
19
  _meta?: {
21
20
  [x: string]: unknown;
22
21
  } | undefined;
23
22
  } | {
24
- [x: string]: unknown;
25
23
  type: "image";
26
24
  data: string;
27
25
  mimeType: string;
@@ -29,7 +27,6 @@ export declare class CreateModelTool {
29
27
  [x: string]: unknown;
30
28
  } | undefined;
31
29
  } | {
32
- [x: string]: unknown;
33
30
  type: "audio";
34
31
  data: string;
35
32
  mimeType: string;
@@ -37,41 +34,36 @@ export declare class CreateModelTool {
37
34
  [x: string]: unknown;
38
35
  } | undefined;
39
36
  } | {
40
- [x: string]: unknown;
41
- type: "resource_link";
42
- name: string;
43
37
  uri: string;
38
+ name: string;
39
+ type: "resource_link";
40
+ description?: string | undefined;
41
+ mimeType?: string | undefined;
44
42
  _meta?: {
45
43
  [x: string]: unknown;
46
44
  } | undefined;
47
- mimeType?: string | undefined;
48
- title?: string | undefined;
49
- description?: string | undefined;
50
45
  icons?: {
51
- [x: string]: unknown;
52
46
  src: string;
53
47
  mimeType?: string | undefined;
54
48
  sizes?: string[] | undefined;
55
49
  }[] | undefined;
50
+ title?: string | undefined;
56
51
  } | {
57
- [x: string]: unknown;
58
52
  type: "resource";
59
53
  resource: {
60
- [x: string]: unknown;
61
- text: string;
62
54
  uri: string;
55
+ text: string;
56
+ mimeType?: string | undefined;
63
57
  _meta?: {
64
58
  [x: string]: unknown;
65
59
  } | undefined;
66
- mimeType?: string | undefined;
67
60
  } | {
68
- [x: string]: unknown;
69
61
  uri: string;
70
62
  blob: string;
63
+ mimeType?: string | undefined;
71
64
  _meta?: {
72
65
  [x: string]: unknown;
73
66
  } | undefined;
74
- mimeType?: string | undefined;
75
67
  };
76
68
  _meta?: {
77
69
  [x: string]: unknown;
@@ -10,14 +10,12 @@ export declare class DeleteNotesTool {
10
10
  }, context: Context): Promise<{
11
11
  [x: string]: unknown;
12
12
  content: ({
13
- [x: string]: unknown;
14
13
  type: "text";
15
14
  text: string;
16
15
  _meta?: {
17
16
  [x: string]: unknown;
18
17
  } | undefined;
19
18
  } | {
20
- [x: string]: unknown;
21
19
  type: "image";
22
20
  data: string;
23
21
  mimeType: string;
@@ -25,7 +23,6 @@ export declare class DeleteNotesTool {
25
23
  [x: string]: unknown;
26
24
  } | undefined;
27
25
  } | {
28
- [x: string]: unknown;
29
26
  type: "audio";
30
27
  data: string;
31
28
  mimeType: string;
@@ -33,41 +30,36 @@ export declare class DeleteNotesTool {
33
30
  [x: string]: unknown;
34
31
  } | undefined;
35
32
  } | {
36
- [x: string]: unknown;
37
- type: "resource_link";
38
- name: string;
39
33
  uri: string;
34
+ name: string;
35
+ type: "resource_link";
36
+ description?: string | undefined;
37
+ mimeType?: string | undefined;
40
38
  _meta?: {
41
39
  [x: string]: unknown;
42
40
  } | undefined;
43
- mimeType?: string | undefined;
44
- title?: string | undefined;
45
- description?: string | undefined;
46
41
  icons?: {
47
- [x: string]: unknown;
48
42
  src: string;
49
43
  mimeType?: string | undefined;
50
44
  sizes?: string[] | undefined;
51
45
  }[] | undefined;
46
+ title?: string | undefined;
52
47
  } | {
53
- [x: string]: unknown;
54
48
  type: "resource";
55
49
  resource: {
56
- [x: string]: unknown;
57
- text: string;
58
50
  uri: string;
51
+ text: string;
52
+ mimeType?: string | undefined;
59
53
  _meta?: {
60
54
  [x: string]: unknown;
61
55
  } | undefined;
62
- mimeType?: string | undefined;
63
56
  } | {
64
- [x: string]: unknown;
65
57
  uri: string;
66
58
  blob: string;
59
+ mimeType?: string | undefined;
67
60
  _meta?: {
68
61
  [x: string]: unknown;
69
62
  } | undefined;
70
- mimeType?: string | undefined;
71
63
  };
72
64
  _meta?: {
73
65
  [x: string]: unknown;
@@ -9,14 +9,12 @@ export declare class FindNotesTool {
9
9
  }, context: Context): Promise<{
10
10
  [x: string]: unknown;
11
11
  content: ({
12
- [x: string]: unknown;
13
12
  type: "text";
14
13
  text: string;
15
14
  _meta?: {
16
15
  [x: string]: unknown;
17
16
  } | undefined;
18
17
  } | {
19
- [x: string]: unknown;
20
18
  type: "image";
21
19
  data: string;
22
20
  mimeType: string;
@@ -24,7 +22,6 @@ export declare class FindNotesTool {
24
22
  [x: string]: unknown;
25
23
  } | undefined;
26
24
  } | {
27
- [x: string]: unknown;
28
25
  type: "audio";
29
26
  data: string;
30
27
  mimeType: string;
@@ -32,41 +29,36 @@ export declare class FindNotesTool {
32
29
  [x: string]: unknown;
33
30
  } | undefined;
34
31
  } | {
35
- [x: string]: unknown;
36
- type: "resource_link";
37
- name: string;
38
32
  uri: string;
33
+ name: string;
34
+ type: "resource_link";
35
+ description?: string | undefined;
36
+ mimeType?: string | undefined;
39
37
  _meta?: {
40
38
  [x: string]: unknown;
41
39
  } | undefined;
42
- mimeType?: string | undefined;
43
- title?: string | undefined;
44
- description?: string | undefined;
45
40
  icons?: {
46
- [x: string]: unknown;
47
41
  src: string;
48
42
  mimeType?: string | undefined;
49
43
  sizes?: string[] | undefined;
50
44
  }[] | undefined;
45
+ title?: string | undefined;
51
46
  } | {
52
- [x: string]: unknown;
53
47
  type: "resource";
54
48
  resource: {
55
- [x: string]: unknown;
56
- text: string;
57
49
  uri: string;
50
+ text: string;
51
+ mimeType?: string | undefined;
58
52
  _meta?: {
59
53
  [x: string]: unknown;
60
54
  } | undefined;
61
- mimeType?: string | undefined;
62
55
  } | {
63
- [x: string]: unknown;
64
56
  uri: string;
65
57
  blob: string;
58
+ mimeType?: string | undefined;
66
59
  _meta?: {
67
60
  [x: string]: unknown;
68
61
  } | undefined;
69
- mimeType?: string | undefined;
70
62
  };
71
63
  _meta?: {
72
64
  [x: string]: unknown;
@@ -10,14 +10,12 @@ export declare class GetDueCardsTool {
10
10
  }, context: Context): Promise<{
11
11
  [x: string]: unknown;
12
12
  content: ({
13
- [x: string]: unknown;
14
13
  type: "text";
15
14
  text: string;
16
15
  _meta?: {
17
16
  [x: string]: unknown;
18
17
  } | undefined;
19
18
  } | {
20
- [x: string]: unknown;
21
19
  type: "image";
22
20
  data: string;
23
21
  mimeType: string;
@@ -25,7 +23,6 @@ export declare class GetDueCardsTool {
25
23
  [x: string]: unknown;
26
24
  } | undefined;
27
25
  } | {
28
- [x: string]: unknown;
29
26
  type: "audio";
30
27
  data: string;
31
28
  mimeType: string;
@@ -33,41 +30,36 @@ export declare class GetDueCardsTool {
33
30
  [x: string]: unknown;
34
31
  } | undefined;
35
32
  } | {
36
- [x: string]: unknown;
37
- type: "resource_link";
38
- name: string;
39
33
  uri: string;
34
+ name: string;
35
+ type: "resource_link";
36
+ description?: string | undefined;
37
+ mimeType?: string | undefined;
40
38
  _meta?: {
41
39
  [x: string]: unknown;
42
40
  } | undefined;
43
- mimeType?: string | undefined;
44
- title?: string | undefined;
45
- description?: string | undefined;
46
41
  icons?: {
47
- [x: string]: unknown;
48
42
  src: string;
49
43
  mimeType?: string | undefined;
50
44
  sizes?: string[] | undefined;
51
45
  }[] | undefined;
46
+ title?: string | undefined;
52
47
  } | {
53
- [x: string]: unknown;
54
48
  type: "resource";
55
49
  resource: {
56
- [x: string]: unknown;
57
- text: string;
58
50
  uri: string;
51
+ text: string;
52
+ mimeType?: string | undefined;
59
53
  _meta?: {
60
54
  [x: string]: unknown;
61
55
  } | undefined;
62
- mimeType?: string | undefined;
63
56
  } | {
64
- [x: string]: unknown;
65
57
  uri: string;
66
58
  blob: string;
59
+ mimeType?: string | undefined;
67
60
  _meta?: {
68
61
  [x: string]: unknown;
69
62
  } | undefined;
70
- mimeType?: string | undefined;
71
63
  };
72
64
  _meta?: {
73
65
  [x: string]: unknown;
@@ -9,14 +9,12 @@ export declare class ListDecksTool {
9
9
  }, context: Context): Promise<{
10
10
  [x: string]: unknown;
11
11
  content: ({
12
- [x: string]: unknown;
13
12
  type: "text";
14
13
  text: string;
15
14
  _meta?: {
16
15
  [x: string]: unknown;
17
16
  } | undefined;
18
17
  } | {
19
- [x: string]: unknown;
20
18
  type: "image";
21
19
  data: string;
22
20
  mimeType: string;
@@ -24,7 +22,6 @@ export declare class ListDecksTool {
24
22
  [x: string]: unknown;
25
23
  } | undefined;
26
24
  } | {
27
- [x: string]: unknown;
28
25
  type: "audio";
29
26
  data: string;
30
27
  mimeType: string;
@@ -32,41 +29,36 @@ export declare class ListDecksTool {
32
29
  [x: string]: unknown;
33
30
  } | undefined;
34
31
  } | {
35
- [x: string]: unknown;
36
- type: "resource_link";
37
- name: string;
38
32
  uri: string;
33
+ name: string;
34
+ type: "resource_link";
35
+ description?: string | undefined;
36
+ mimeType?: string | undefined;
39
37
  _meta?: {
40
38
  [x: string]: unknown;
41
39
  } | undefined;
42
- mimeType?: string | undefined;
43
- title?: string | undefined;
44
- description?: string | undefined;
45
40
  icons?: {
46
- [x: string]: unknown;
47
41
  src: string;
48
42
  mimeType?: string | undefined;
49
43
  sizes?: string[] | undefined;
50
44
  }[] | undefined;
45
+ title?: string | undefined;
51
46
  } | {
52
- [x: string]: unknown;
53
47
  type: "resource";
54
48
  resource: {
55
- [x: string]: unknown;
56
- text: string;
57
49
  uri: string;
50
+ text: string;
51
+ mimeType?: string | undefined;
58
52
  _meta?: {
59
53
  [x: string]: unknown;
60
54
  } | undefined;
61
- mimeType?: string | undefined;
62
55
  } | {
63
- [x: string]: unknown;
64
56
  uri: string;
65
57
  blob: string;
58
+ mimeType?: string | undefined;
66
59
  _meta?: {
67
60
  [x: string]: unknown;
68
61
  } | undefined;
69
- mimeType?: string | undefined;
70
62
  };
71
63
  _meta?: {
72
64
  [x: string]: unknown;
@@ -15,14 +15,12 @@ export declare class MediaActionsTool {
15
15
  }, context: Context): Promise<{
16
16
  [x: string]: unknown;
17
17
  content: ({
18
- [x: string]: unknown;
19
18
  type: "text";
20
19
  text: string;
21
20
  _meta?: {
22
21
  [x: string]: unknown;
23
22
  } | undefined;
24
23
  } | {
25
- [x: string]: unknown;
26
24
  type: "image";
27
25
  data: string;
28
26
  mimeType: string;
@@ -30,7 +28,6 @@ export declare class MediaActionsTool {
30
28
  [x: string]: unknown;
31
29
  } | undefined;
32
30
  } | {
33
- [x: string]: unknown;
34
31
  type: "audio";
35
32
  data: string;
36
33
  mimeType: string;
@@ -38,41 +35,36 @@ export declare class MediaActionsTool {
38
35
  [x: string]: unknown;
39
36
  } | undefined;
40
37
  } | {
41
- [x: string]: unknown;
42
- type: "resource_link";
43
- name: string;
44
38
  uri: string;
39
+ name: string;
40
+ type: "resource_link";
41
+ description?: string | undefined;
42
+ mimeType?: string | undefined;
45
43
  _meta?: {
46
44
  [x: string]: unknown;
47
45
  } | undefined;
48
- mimeType?: string | undefined;
49
- title?: string | undefined;
50
- description?: string | undefined;
51
46
  icons?: {
52
- [x: string]: unknown;
53
47
  src: string;
54
48
  mimeType?: string | undefined;
55
49
  sizes?: string[] | undefined;
56
50
  }[] | undefined;
51
+ title?: string | undefined;
57
52
  } | {
58
- [x: string]: unknown;
59
53
  type: "resource";
60
54
  resource: {
61
- [x: string]: unknown;
62
- text: string;
63
55
  uri: string;
56
+ text: string;
57
+ mimeType?: string | undefined;
64
58
  _meta?: {
65
59
  [x: string]: unknown;
66
60
  } | undefined;
67
- mimeType?: string | undefined;
68
61
  } | {
69
- [x: string]: unknown;
70
62
  uri: string;
71
63
  blob: string;
64
+ mimeType?: string | undefined;
72
65
  _meta?: {
73
66
  [x: string]: unknown;
74
67
  } | undefined;
75
- mimeType?: string | undefined;
76
68
  };
77
69
  _meta?: {
78
70
  [x: string]: unknown;