Doco Create Relation
doco_create_relationCreate an explicit, auditable typed relation from a source block to a target doco URI. The server checks permissions and block existence before adding the link.
Instructions
从稳定来源块创建一条显式、可审计的类型关系。target_uri 使用 doco://doc/{id}#block={block_id};创建前服务端校验两端权限与块存在性。
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_document_id": "<source_document_id>",
"source_block_id": "<source_block_id>",
"target_uri": "<target_uri>"
},
"name": "doco_create_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| predicate | No | Relationship type to filter or create. | |
| target_uri | Yes | Doco URI of the target document or block. | |
| anchor_text | No | Optional human-readable text anchoring the relation. | |
| idempotency_key | No | Optional key that makes a retried write safe. | |
| source_block_id | Yes | Stable ID of the source block. | |
| source_document_id | Yes | Document containing the source block. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||