Updates to Excalidraw MCP server and documentation (#43)

This commit is contained in:
yctimlin
2026-02-13 00:20:01 +08:00
committed by GitHub
parent 4a17c47b54
commit 913f9b89b7
5 changed files with 224 additions and 28 deletions
+6
View File
@@ -111,12 +111,15 @@ const CreateElementSchema = z.object({
fontFamily: z.string().optional(),
groupIds: z.array(z.string()).optional(),
locked: z.boolean().optional(),
roundness: z.object({ type: z.number(), value: z.number().optional() }).nullable().optional(),
fillStyle: z.string().optional(),
// Arrow-specific properties
points: z.any().optional(),
start: z.object({ id: z.string() }).optional(),
end: z.object({ id: z.string() }).optional(),
startArrowhead: z.string().nullable().optional(),
endArrowhead: z.string().nullable().optional(),
elbowed: z.boolean().optional(),
});
const UpdateElementSchema = z.object({
@@ -140,6 +143,8 @@ const UpdateElementSchema = z.object({
fontFamily: z.string().optional(),
groupIds: z.array(z.string()).optional(),
locked: z.boolean().optional(),
roundness: z.object({ type: z.number(), value: z.number().optional() }).nullable().optional(),
fillStyle: z.string().optional(),
points: z.array(z.union([
z.tuple([z.number(), z.number()]),
z.object({ x: z.number(), y: z.number() })
@@ -148,6 +153,7 @@ const UpdateElementSchema = z.object({
end: z.object({ id: z.string() }).optional(),
startArrowhead: z.string().nullable().optional(),
endArrowhead: z.string().nullable().optional(),
elbowed: z.boolean().optional(),
});
// API Routes