get_trigger_source
Retrieve the full PSQL source code of a trigger by database and trigger name.
Instructions
Return the full PSQL source body of a trigger. Returns the raw PSQL text, or an error message if not found.
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": {
"database": "<database>",
"trigger": "<trigger>"
},
"name": "get_trigger_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database key from list_databases. | |
| trigger | Yes | Trigger name from list_triggers. Use just the name — NOT the ' (on TABLE)' suffix. Automatically uppercased. |