cos_graph_references
Discover what references a code, doc, or folder by listing inbound graph edges. Specify a node UID and optional edge kinds to see dependents, callers, or importers.
Instructions
List inbound edges — "who references this?".
Args:
uid: Fully-qualified node uid. Scheme: code:file:<path> |
code:function:<path>::<name> | code:class:<path>::<name> |
code:module:<dotted> | doc:file:<path> | folder:<path>.
Raw repo paths are auto-resolved.
kinds: Comma-separated edge types. Empty string (default)
picks edge types automatically per node-kind — class
nodes get constructs+has_param_type+is_decorated_by+inherits_from,
function/method get calls+accesses_field+imports, files
get imports+links_to+references_doc+contains. R4-02.
limit: Max edges returned (default 100).
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": {
"uid": "<uid>"
},
"name": "cos_graph_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| kinds | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |