Message: clarify media schema + fix MEDIA newline

This commit is contained in:
Gustavo Madeira Santana
2026-02-04 19:59:08 -05:00
parent 21f8c3db18
commit a6fd76efeb
2 changed files with 6 additions and 2 deletions

View File

@@ -56,7 +56,11 @@ function buildSendSchema(options: { includeButtons: boolean; includeCards: boole
effect: Type.Optional(
Type.String({ description: "Alias for effectId (e.g., invisible-ink, balloons)." }),
),
media: Type.Optional(Type.String()),
media: Type.Optional(
Type.String({
description: "Media URL or local path. data: URLs are not supported here, use buffer.",
}),
),
filename: Type.Optional(Type.String()),
buffer: Type.Optional(
Type.String({

View File

@@ -579,7 +579,7 @@ describe("runMessageAction sandboxed media validation", () => {
params: {
channel: "slack",
target: "#C12345678",
message: "Hello\\nMEDIA: ./data/note.ogg",
message: "Hello\nMEDIA: ./data/note.ogg",
},
sandboxRoot: sandboxDir,
dryRun: true,