Record LSP references
record_lsp_referencesImport LSP reference edges into the code graph. Use after collecting definitions or references from an LSP client.
Instructions
Purpose: Import language-server reference edges into the code graph. When to use: call after collecting definitions or references from an external LSP client. Inputs: workspace_id, reference payloads, and replace flag. Side effects: writes or replaces code graph reference rows. Output: import counts and status. Failure modes: malformed reference payloads or invalid workspace ids are rejected.
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": {
"workspace_id": "<workspace_id>",
"references": "<references>"
},
"name": "record_lsp_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replace | No | Whether to replace existing reference edges for the imported scope. | |
| references | Yes | List of LSP-style reference objects with source and target locations. | |
| workspace_id | Yes | Workspace UUID receiving LSP reference edges. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||