illustrator-mcp-server 1.2.3 → 1.2.4
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/dist/tools/modify/close-document.d.ts +3 -0
- package/dist/tools/modify/close-document.d.ts.map +1 -0
- package/dist/tools/modify/close-document.js +46 -0
- package/dist/tools/modify/close-document.js.map +1 -0
- package/dist/tools/modify/create-document.d.ts +3 -0
- package/dist/tools/modify/create-document.d.ts.map +1 -0
- package/dist/tools/modify/create-document.js +65 -0
- package/dist/tools/modify/create-document.js.map +1 -0
- package/dist/tools/modify/place-image.d.ts +3 -0
- package/dist/tools/modify/place-image.d.ts.map +1 -0
- package/dist/tools/modify/place-image.js +122 -0
- package/dist/tools/modify/place-image.js.map +1 -0
- package/dist/tools/registry.d.ts.map +1 -1
- package/dist/tools/registry.js +8 -0
- package/dist/tools/registry.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-document.d.ts","sourceRoot":"","sources":["../../../src/tools/modify/close-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA0BpE,wBAAgB,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA0BhD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { executeJsx } from '../../executor/jsx-runner.js';
|
|
3
|
+
const jsxCode = `
|
|
4
|
+
try {
|
|
5
|
+
var verErr = checkIllustratorVersion();
|
|
6
|
+
if (verErr) {
|
|
7
|
+
writeResultFile(RESULT_PATH, verErr);
|
|
8
|
+
} else {
|
|
9
|
+
var params = readParamsFile(PARAMS_PATH);
|
|
10
|
+
var save = params.save === true;
|
|
11
|
+
|
|
12
|
+
if (app.documents.length === 0) {
|
|
13
|
+
writeResultFile(RESULT_PATH, { error: true, message: "No document is open" });
|
|
14
|
+
} else {
|
|
15
|
+
var saveOpt = save ? SaveOptions.SAVECHANGES : SaveOptions.DONOTSAVECHANGES;
|
|
16
|
+
app.activeDocument.close(saveOpt);
|
|
17
|
+
writeResultFile(RESULT_PATH, { success: true });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
} catch (e) {
|
|
21
|
+
writeResultFile(RESULT_PATH, { error: true, message: "Failed to close document: " + e.message, line: e.line });
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
export function register(server) {
|
|
25
|
+
server.registerTool('close_document', {
|
|
26
|
+
title: 'Close Document',
|
|
27
|
+
description: 'Close the active Illustrator document. Note: Illustrator will be activated (brought to foreground) during execution.',
|
|
28
|
+
inputSchema: {
|
|
29
|
+
save: z
|
|
30
|
+
.boolean()
|
|
31
|
+
.optional()
|
|
32
|
+
.default(false)
|
|
33
|
+
.describe('Whether to save before closing (default: false)'),
|
|
34
|
+
},
|
|
35
|
+
annotations: {
|
|
36
|
+
readOnlyHint: false,
|
|
37
|
+
destructiveHint: true,
|
|
38
|
+
idempotentHint: false,
|
|
39
|
+
openWorldHint: false,
|
|
40
|
+
},
|
|
41
|
+
}, async (params) => {
|
|
42
|
+
const result = await executeJsx(jsxCode, params, { activate: true });
|
|
43
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=close-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-document.js","sourceRoot":"","sources":["../../../src/tools/modify/close-document.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;CAoBf,CAAC;AAEF,MAAM,UAAU,QAAQ,CAAC,MAAiB;IACxC,MAAM,CAAC,YAAY,CACjB,gBAAgB,EAChB;QACE,KAAK,EAAE,gBAAgB;QACvB,WAAW,EACT,sHAAsH;QACxH,WAAW,EAAE;YACX,IAAI,EAAE,CAAC;iBACJ,OAAO,EAAE;iBACT,QAAQ,EAAE;iBACV,OAAO,CAAC,KAAK,CAAC;iBACd,QAAQ,CAAC,iDAAiD,CAAC;SAC/D;QACD,WAAW,EAAE;YACX,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,IAAI;YACrB,cAAc,EAAE,KAAK;YACrB,aAAa,EAAE,KAAK;SACrB;KACF,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACf,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACrE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IAChF,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-document.d.ts","sourceRoot":"","sources":["../../../src/tools/modify/create-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAmCpE,wBAAgB,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAoChD"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { executeJsx } from '../../executor/jsx-runner.js';
|
|
3
|
+
const jsxCode = `
|
|
4
|
+
try {
|
|
5
|
+
var verErr = checkIllustratorVersion();
|
|
6
|
+
if (verErr) {
|
|
7
|
+
writeResultFile(RESULT_PATH, verErr);
|
|
8
|
+
} else {
|
|
9
|
+
var params = readParamsFile(PARAMS_PATH);
|
|
10
|
+
var w = params.width || 595.28;
|
|
11
|
+
var h = params.height || 841.89;
|
|
12
|
+
var colorMode = (params.color_mode === "cmyk")
|
|
13
|
+
? DocumentColorSpace.CMYK
|
|
14
|
+
: DocumentColorSpace.RGB;
|
|
15
|
+
|
|
16
|
+
var doc = app.documents.add(colorMode, w, h);
|
|
17
|
+
|
|
18
|
+
// Set artboard to match requested size
|
|
19
|
+
doc.artboards[0].artboardRect = [0, h, w, 0];
|
|
20
|
+
|
|
21
|
+
writeResultFile(RESULT_PATH, {
|
|
22
|
+
success: true,
|
|
23
|
+
fileName: doc.name,
|
|
24
|
+
width: w,
|
|
25
|
+
height: h,
|
|
26
|
+
colorMode: (colorMode === DocumentColorSpace.CMYK) ? "CMYK" : "RGB"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
} catch (e) {
|
|
30
|
+
writeResultFile(RESULT_PATH, { error: true, message: "Failed to create document: " + e.message, line: e.line });
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
export function register(server) {
|
|
34
|
+
server.registerTool('create_document', {
|
|
35
|
+
title: 'Create Document',
|
|
36
|
+
description: 'Create a new Illustrator document. Note: Illustrator will be activated (brought to foreground) during execution.',
|
|
37
|
+
inputSchema: {
|
|
38
|
+
width: z
|
|
39
|
+
.number()
|
|
40
|
+
.optional()
|
|
41
|
+
.default(595.28)
|
|
42
|
+
.describe('Document width in points (default: A4 width 595.28pt)'),
|
|
43
|
+
height: z
|
|
44
|
+
.number()
|
|
45
|
+
.optional()
|
|
46
|
+
.default(841.89)
|
|
47
|
+
.describe('Document height in points (default: A4 height 841.89pt)'),
|
|
48
|
+
color_mode: z
|
|
49
|
+
.enum(['rgb', 'cmyk'])
|
|
50
|
+
.optional()
|
|
51
|
+
.default('rgb')
|
|
52
|
+
.describe('Color mode (default: rgb)'),
|
|
53
|
+
},
|
|
54
|
+
annotations: {
|
|
55
|
+
readOnlyHint: false,
|
|
56
|
+
destructiveHint: false,
|
|
57
|
+
idempotentHint: false,
|
|
58
|
+
openWorldHint: false,
|
|
59
|
+
},
|
|
60
|
+
}, async (params) => {
|
|
61
|
+
const result = await executeJsx(jsxCode, params, { activate: true });
|
|
62
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=create-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-document.js","sourceRoot":"","sources":["../../../src/tools/modify/create-document.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Bf,CAAC;AAEF,MAAM,UAAU,QAAQ,CAAC,MAAiB;IACxC,MAAM,CAAC,YAAY,CACjB,iBAAiB,EACjB;QACE,KAAK,EAAE,iBAAiB;QACxB,WAAW,EACT,kHAAkH;QACpH,WAAW,EAAE;YACX,KAAK,EAAE,CAAC;iBACL,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,OAAO,CAAC,MAAM,CAAC;iBACf,QAAQ,CAAC,uDAAuD,CAAC;YACpE,MAAM,EAAE,CAAC;iBACN,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,OAAO,CAAC,MAAM,CAAC;iBACf,QAAQ,CAAC,yDAAyD,CAAC;YACtE,UAAU,EAAE,CAAC;iBACV,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;iBACrB,QAAQ,EAAE;iBACV,OAAO,CAAC,KAAK,CAAC;iBACd,QAAQ,CAAC,2BAA2B,CAAC;SACzC;QACD,WAAW,EAAE;YACX,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,KAAK;YACrB,aAAa,EAAE,KAAK;SACrB;KACF,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACf,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACrE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IAChF,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"place-image.d.ts","sourceRoot":"","sources":["../../../src/tools/modify/place-image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA4FpE,wBAAgB,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAsChD"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { executeJsx } from '../../executor/jsx-runner.js';
|
|
3
|
+
const jsxCode = `
|
|
4
|
+
var preflight = preflightChecks();
|
|
5
|
+
if (preflight) {
|
|
6
|
+
writeResultFile(RESULT_PATH, preflight);
|
|
7
|
+
} else {
|
|
8
|
+
try {
|
|
9
|
+
var params = readParamsFile(PARAMS_PATH);
|
|
10
|
+
var doc = app.activeDocument;
|
|
11
|
+
var coordSystem = params.coordinate_system || "artboard-web";
|
|
12
|
+
|
|
13
|
+
var filePath = params.file_path;
|
|
14
|
+
var imgFile = new File(filePath);
|
|
15
|
+
if (!imgFile.exists) {
|
|
16
|
+
writeResultFile(RESULT_PATH, { error: true, message: "Image file not found: " + filePath });
|
|
17
|
+
} else {
|
|
18
|
+
var targetLayer = doc.activeLayer;
|
|
19
|
+
if (params.layer_name) {
|
|
20
|
+
try {
|
|
21
|
+
targetLayer = doc.layers.getByName(params.layer_name);
|
|
22
|
+
} catch (e) {
|
|
23
|
+
targetLayer = doc.layers.add();
|
|
24
|
+
targetLayer.name = params.layer_name;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var placed = targetLayer.placedItems.add();
|
|
29
|
+
placed.file = imgFile;
|
|
30
|
+
|
|
31
|
+
// Position
|
|
32
|
+
if (typeof params.x === "number" && typeof params.y === "number") {
|
|
33
|
+
var inputX = params.x;
|
|
34
|
+
var inputY = params.y;
|
|
35
|
+
if (coordSystem === "artboard-web") {
|
|
36
|
+
var ab = doc.artboards[doc.artboards.getActiveArtboardIndex()];
|
|
37
|
+
var abRect = ab.artboardRect;
|
|
38
|
+
placed.left = abRect[0] + inputX;
|
|
39
|
+
placed.top = abRect[1] + (-inputY);
|
|
40
|
+
} else {
|
|
41
|
+
placed.left = inputX;
|
|
42
|
+
placed.top = inputY;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (params.name) {
|
|
47
|
+
placed.name = params.name;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Embed if requested — embed() transforms PlacedItem into RasterItem
|
|
51
|
+
var resultItem = placed;
|
|
52
|
+
if (params.embed === true) {
|
|
53
|
+
// Mark with a temporary tag before embed so we can find the resulting RasterItem
|
|
54
|
+
var tag = "__place_image_embed_" + (new Date()).getTime();
|
|
55
|
+
placed.name = tag;
|
|
56
|
+
placed.embed();
|
|
57
|
+
// After embed(), 'placed' is no longer valid. Find the RasterItem by name.
|
|
58
|
+
for (var ri = 0; ri < doc.rasterItems.length; ri++) {
|
|
59
|
+
if (doc.rasterItems[ri].name === tag) {
|
|
60
|
+
resultItem = doc.rasterItems[ri];
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
// Restore the requested name
|
|
65
|
+
if (params.name) {
|
|
66
|
+
resultItem.name = params.name;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var uuid = ensureUUID(resultItem);
|
|
71
|
+
var bounds = resultItem.geometricBounds;
|
|
72
|
+
var widthPt = bounds[2] - bounds[0];
|
|
73
|
+
var heightPt = -(bounds[3] - bounds[1]);
|
|
74
|
+
if (widthPt < 0) widthPt = -widthPt;
|
|
75
|
+
if (heightPt < 0) heightPt = -heightPt;
|
|
76
|
+
|
|
77
|
+
writeResultFile(RESULT_PATH, {
|
|
78
|
+
uuid: uuid,
|
|
79
|
+
type: params.embed ? "embedded" : "linked",
|
|
80
|
+
filePath: filePath,
|
|
81
|
+
widthPt: widthPt,
|
|
82
|
+
heightPt: heightPt
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
} catch (e) {
|
|
86
|
+
writeResultFile(RESULT_PATH, { error: true, message: "Failed to place image: " + e.message, line: e.line });
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
`;
|
|
90
|
+
export function register(server) {
|
|
91
|
+
server.registerTool('place_image', {
|
|
92
|
+
title: 'Place Image',
|
|
93
|
+
description: 'Place an image file (PNG, JPG, TIFF, PSD, etc.) into the document as a linked or embedded image. Note: Illustrator will be activated (brought to foreground) during execution.',
|
|
94
|
+
inputSchema: {
|
|
95
|
+
file_path: z.string().describe('Absolute path to the image file'),
|
|
96
|
+
x: z.number().optional().describe('X position'),
|
|
97
|
+
y: z.number().optional().describe('Y position'),
|
|
98
|
+
embed: z
|
|
99
|
+
.boolean()
|
|
100
|
+
.optional()
|
|
101
|
+
.default(false)
|
|
102
|
+
.describe('Embed the image instead of linking (default: false)'),
|
|
103
|
+
layer_name: z.string().optional().describe('Target layer name'),
|
|
104
|
+
name: z.string().optional().describe('Object name'),
|
|
105
|
+
coordinate_system: z
|
|
106
|
+
.enum(['artboard-web', 'document'])
|
|
107
|
+
.optional()
|
|
108
|
+
.default('artboard-web')
|
|
109
|
+
.describe('Coordinate system (artboard-web: artboard-relative Y-down, document: native Illustrator coordinates)'),
|
|
110
|
+
},
|
|
111
|
+
annotations: {
|
|
112
|
+
readOnlyHint: false,
|
|
113
|
+
destructiveHint: false,
|
|
114
|
+
idempotentHint: false,
|
|
115
|
+
openWorldHint: false,
|
|
116
|
+
},
|
|
117
|
+
}, async (params) => {
|
|
118
|
+
const result = await executeJsx(jsxCode, params, { activate: true });
|
|
119
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=place-image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"place-image.js","sourceRoot":"","sources":["../../../src/tools/modify/place-image.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFf,CAAC;AAEF,MAAM,UAAU,QAAQ,CAAC,MAAiB;IACxC,MAAM,CAAC,YAAY,CACjB,aAAa,EACb;QACE,KAAK,EAAE,aAAa;QACpB,WAAW,EACT,gLAAgL;QAClL,WAAW,EAAE;YACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;YACjE,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;YAC/C,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;YAC/C,KAAK,EAAE,CAAC;iBACL,OAAO,EAAE;iBACT,QAAQ,EAAE;iBACV,OAAO,CAAC,KAAK,CAAC;iBACd,QAAQ,CAAC,qDAAqD,CAAC;YAClE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;YAC/D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;YACnD,iBAAiB,EAAE,CAAC;iBACjB,IAAI,CAAC,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;iBAClC,QAAQ,EAAE;iBACV,OAAO,CAAC,cAAc,CAAC;iBACvB,QAAQ,CACP,sGAAsG,CACvG;SACJ;QACD,WAAW,EAAE;YACX,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,KAAK;YACrB,aAAa,EAAE,KAAK;SACrB;KACF,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACf,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACrE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IAChF,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/tools/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/tools/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA0CpE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAwCxD"}
|
package/dist/tools/registry.js
CHANGED
|
@@ -29,6 +29,10 @@ import { register as registerCreatePath } from './modify/create-path.js';
|
|
|
29
29
|
import { register as registerModifyObject } from './modify/modify-object.js';
|
|
30
30
|
import { register as registerConvertToOutlines } from './modify/convert-to-outlines.js';
|
|
31
31
|
import { register as registerApplyColorProfile } from './modify/apply-color-profile.js';
|
|
32
|
+
import { register as registerPlaceImage } from './modify/place-image.js';
|
|
33
|
+
// Phase 5: ドキュメント管理ツール
|
|
34
|
+
import { register as registerCreateDocument } from './modify/create-document.js';
|
|
35
|
+
import { register as registerCloseDocument } from './modify/close-document.js';
|
|
32
36
|
export function registerAllTools(server) {
|
|
33
37
|
// Phase 1: 基本読み取りツール
|
|
34
38
|
registerGetDocumentInfo(server);
|
|
@@ -61,5 +65,9 @@ export function registerAllTools(server) {
|
|
|
61
65
|
registerModifyObject(server);
|
|
62
66
|
registerConvertToOutlines(server);
|
|
63
67
|
registerApplyColorProfile(server);
|
|
68
|
+
registerPlaceImage(server);
|
|
69
|
+
// Phase 5: ドキュメント管理
|
|
70
|
+
registerCreateDocument(server);
|
|
71
|
+
registerCloseDocument(server);
|
|
64
72
|
}
|
|
65
73
|
//# sourceMappingURL=registry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/tools/registry.ts"],"names":[],"mappings":"AAEA,qBAAqB;AACrB,OAAO,EAAE,QAAQ,IAAI,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,QAAQ,IAAI,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEhF,6BAA6B;AAC7B,OAAO,EAAE,QAAQ,IAAI,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,QAAQ,IAAI,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,QAAQ,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