Decodes a data:<mime>;base64,<payload> URL into a raw Buffer when the
input matches that shape. Returns the input unchanged otherwise. Used by
the AgentRunner gather path so binary tool libraries (xlsx, docx, pdf)
receive a parseable Buffer instead of the wrapped data URL string.
Decodes a
data:<mime>;base64,<payload>URL into a raw Buffer when the input matches that shape. Returns the input unchanged otherwise. Used by the AgentRunner gather path so binary tool libraries (xlsx, docx, pdf) receive a parseable Buffer instead of the wrapped data URL string.