solutions/snowflake/README.md
README.md: full Markdown source from the Snowflake stored procedure folder of Spatial9 Agent Skills. Free, MIT licensed code for immersive audio with the...
Raw file · View on GitHub · Download every file as a zip
Spatial9 on Snowflake
Render tracks listed in a Snowflake table, with outbound access locked to spatial9.ai and the key stored as a Snowflake secret.
File · What it does
setup.sql · Network rule, secret, external access integration, queue table and stage
spatial9_procedure.sql · SPATIAL9_RUN Python procedure with the MCP handshake, plus a Task every 15 minutes
Run it
- Run
setup.sql, replacings9_replace_mewith your key from https://spatial9.ai/connect. - Run
spatial9_procedure.sql. - Insert rows into
RENDERS_QUEUEwith a presignedSOURCE_URLfor each master. CALL SPATIAL9_RUN(3);returns a small report of renders started and finished.
Cortex Agents
Snowflake's own MCP server feature publishes Snowflake data to outside agents. It does not call outside servers. To let a Cortex Agent start renders, add SPATIAL9_RUN (or a smaller procedure per tool) as a custom tool. The agent then works through the same network rule, secret and grants.