create_discourse_relation
Create a typed discourse relation between two existing nodes, validating the relation and preventing duplicates; use dry_run to preview the resolved link before writing.
Instructions
Create a typed discourse relation between two existing discourse nodes (e.g. assert that a piece of Evidence Supports a Claim). Writes a single stored relation record; the reverse direction is derived automatically and must not be created separately. Validates that the relation is legal between the two node types, and is a no-op if the relation already exists. Use dry_run to preview the resolution first.
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": {
"source_uid": "<source_uid>",
"destination_uid": "<destination_uid>",
"relation": "<relation>"
},
"name": "create_discourse_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | No | Graph name or nickname. | |
| dry_run | No | Resolve and validate everything, report what would be written, but do not write. Default false. | |
| relation | Yes | Relation label, e.g. 'Supports'. May also be a complement label (e.g. 'Supported By'), in which case the stored record is written in the canonical forward direction automatically. | |
| source_uid | Yes | Page UID of the source node. | |
| destination_uid | Yes | Page UID of the destination node. | |
| relation_schema_uid | No | UID of a specific relation definition, to disambiguate when the graph defines the same label more than once. |