Cortex Run Agent
cortex_run_agentRun a Snowflake Cortex Agent via DATA_AGENT_RUN to execute agent requests, optionally create a thread, and return results; agent tools may write data.
Instructions
Run a Cortex Agent with SNOWFLAKE.CORTEX.DATA_AGENT_RUN. Agent tools may write. https://docs.snowflake.com/en/sql-reference/functions/data_agent_run-snowflake-cortex
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_name": "<agent_name>",
"request": "<request>"
},
"name": "cortex_run_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | ||
| version | No | ||
| database | No | Quote names that aren't all uppercase, exactly as list tools return them. | |
| agent_name | Yes | Quote names that aren't all uppercase, exactly as list tools return them. | |
| schema_name | No | Quote names that aren't all uppercase, exactly as list tools return them. | |
| create_thread_if_not_present | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||