goatedit-mcp 1.1.3 → 1.1.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/bundle/goatedit-mcp.js +17 -4
- package/package.json +1 -1
package/bundle/goatedit-mcp.js
CHANGED
|
@@ -19748,13 +19748,13 @@ var BASE_TOOLS = [
|
|
|
19748
19748
|
},
|
|
19749
19749
|
{
|
|
19750
19750
|
name: "remove_background",
|
|
19751
|
-
description: "Cut the subject out of a still image \u2014 a product, an object, a person \u2014 into a transparent PNG, the way stock photos become floating cut-outs. Runs in the editor tab (the model downloads once, ~
|
|
19751
|
+
description: "Cut the subject out of a still image \u2014 a product, an object, a person \u2014 into a transparent PNG, the way stock photos become floating cut-outs. Runs in the editor tab (the model downloads once, ~9 MB for quality). The cut-out is added to the bin as a new file and, by default, every clip showing the photo switches to it (or only clipId when given); the original stays. For video use roto instead.",
|
|
19752
19752
|
inputSchema: {
|
|
19753
19753
|
type: "object",
|
|
19754
19754
|
properties: {
|
|
19755
19755
|
clipId: str("An image clip to cut out; it switches to the cut-out."),
|
|
19756
19756
|
mediaFileId: str("A bin image to cut out, instead of a clip."),
|
|
19757
|
-
engine: { type: "string", enum: ["quality", "fast"], description: "quality (default): any subject,
|
|
19757
|
+
engine: { type: "string", enum: ["quality", "fast"], description: "quality (default): any subject, keeps what sits in the middle of the photo. fast: people only, tiny download." },
|
|
19758
19758
|
applyToClips: bool("Switch clips to the cut-out. Default true.")
|
|
19759
19759
|
}
|
|
19760
19760
|
},
|
|
@@ -20038,7 +20038,7 @@ var BASE_TOOLS = [
|
|
|
20038
20038
|
method: "setClipTransform"
|
|
20039
20039
|
},
|
|
20040
20040
|
{
|
|
20041
|
-
name: "
|
|
20041
|
+
name: "set_chroma_key",
|
|
20042
20042
|
description: "Green screen: knock a colour out of a video or image clip so the tracks beneath show through \u2014 a paper unfold, a smoke burst or a presenter shot on green or blue. Unset values keep what the clip already has (or the defaults: green, tolerance 0.18, softness 0.1, spill 0.4). Raise tolerance when green is left behind, softness for a gentler edge, spill when edges carry a green tint. Check the result with render_preview_frame; pass remove to take the key off.",
|
|
20043
20043
|
inputSchema: {
|
|
20044
20044
|
type: "object",
|
|
@@ -20625,7 +20625,16 @@ var TOOLS = BASE_TOOLS.map((tool) => {
|
|
|
20625
20625
|
}
|
|
20626
20626
|
};
|
|
20627
20627
|
});
|
|
20628
|
-
var
|
|
20628
|
+
var TOOL_ALIASES = {
|
|
20629
|
+
set_ultra_key: "set_chroma_key"
|
|
20630
|
+
};
|
|
20631
|
+
var TOOLS_BY_NAME = new Map([
|
|
20632
|
+
...TOOLS.map((t) => [t.name, t]),
|
|
20633
|
+
...Object.entries(TOOL_ALIASES).flatMap(([alias, name]) => {
|
|
20634
|
+
const tool = TOOLS.find((t) => t.name === name);
|
|
20635
|
+
return tool ? [[alias, tool]] : [];
|
|
20636
|
+
})
|
|
20637
|
+
]);
|
|
20629
20638
|
function editDistance(a, b) {
|
|
20630
20639
|
const rows = [Array.from({ length: b.length + 1 }, (_, j) => j)];
|
|
20631
20640
|
for (let i = 1; i <= a.length; i++) {
|
|
@@ -21355,6 +21364,10 @@ var LOCAL_TOOLS = [
|
|
|
21355
21364
|
];
|
|
21356
21365
|
var BROWSER_TOOLS = TOOLS.filter((t) => t.method !== null);
|
|
21357
21366
|
var BROWSER_TOOLS_BY_NAME = new Map(BROWSER_TOOLS.map((t) => [t.name, t]));
|
|
21367
|
+
for (const [alias, name] of Object.entries(TOOL_ALIASES)) {
|
|
21368
|
+
const tool = BROWSER_TOOLS_BY_NAME.get(name);
|
|
21369
|
+
if (tool) BROWSER_TOOLS_BY_NAME.set(alias, tool);
|
|
21370
|
+
}
|
|
21358
21371
|
var SAVES_FRAMES = new Set(
|
|
21359
21372
|
BROWSER_TOOLS.filter((t) => "saveToDisk" in (t.inputSchema.properties ?? {})).map((t) => t.name)
|
|
21360
21373
|
);
|
package/package.json
CHANGED