trace_edge
trace_edgeTrace a handler or edge function to find its route, app-code callers, tables, and RPCs it touches, along with related DB triggers.
Instructions
Trace a handler / edge function: its own route, app-code callers (ast-grep on fetch('/functions/v1/$NAME') and supabase.functions.invoke('$NAME')), tables and RPCs the handler touches, and DB triggers whose body references the name. Snapshot-strict.
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": {
"name": "<name>"
},
"name": "trace_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| projectId | No | ||
| projectRef | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _hints | Yes | ||
| result | Yes | ||
| toolName | Yes | ||
| projectId | Yes |