PhotoAction shape.
"clear"→{ kind: "clear" }(reserved sentinel — to send a literal file namedclear, pass"./clear"or load it as aBuffer).stringpath → reads the file lazily vianode:fs/promises.readFile; MIME type inferred from the filename extension.URL→ fetched lazily over the network into memory; never touches the filesystem, so it works in read-only environments. MIME type is inferred from the URL pathname extension at build time (override withoptions.mimeTypeif the URL has no usable extension).Buffer→ in-memory bytes;options.mimeTypeis required.
read() is memoized so repeated
build() / send cycles don’t re-read the same file.