Cortex Extract Answer
cortex_extract_answerExtract answers from source text using Snowflake AI_EXTRACT, returning a structured JSON object with response or error details for reliable downstream parsing.
Instructions
Extract answers from text via Snowflake AI_EXTRACT. Returns the AI_EXTRACT JSON object (response/error), not a legacy plain-string answer.
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": {
"source_text": "<source_text>",
"question": "<question>"
},
"name": "cortex_extract_answer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | ||
| source_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||