trace_rpc
trace_rpcTraces an RPC end-to-end by finding its definition, dependent SQL bodies, table references, and application code call sites with snapshot-strict accuracy.
Instructions
Trace an RPC end-to-end: the RPC definition (searchSchemaObjects filtered to rpc), other PL/pgSQL bodies whose body text references it (searchSchemaBodies), overload-aware table refs (listFunctionTableRefs), and app-code .rpc('$FN') call sites (FTS-retrieval + ast-grep proof). Snapshot-strict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| schema | No | ||
| argTypes | No | ||
| projectId | No | ||
| projectRef | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _hints | Yes | ||
| result | Yes | ||
| toolName | Yes | ||
| projectId | Yes |