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.
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 | |||