ldh-CreateItem
Creates a structured LinkedDataHub Item document under an existing container, requiring a title and valid trailing-slash URL with optional slug, description, and topic.
Instructions
Creates a LinkedDataHub Item document with proper structure.
IMPORTANT CONSTRAINTS:
- The document URL needs to end with a trailing slash (/)
- Documents can only be created at URLs relative to existing container's URL
- Example: if https://localhost/blog/ exists, you cannot create https://localhost/blog/posts/something/
before creating https://localhost/blog/posts/
- LinkedDataHub automatically manages timestamps (dct:created, dct:modified)
- LinkedDataHub automatically manages parent-child relationships (sioc:has_parent) based on URI hierarchy
- It only creates: a document already at the URI is left as it is and the operation fails, unless
if_absent is true, which accepts it as the result (like mkdir -p). To replace a document, PUT it.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": {
"container": "<container>",
"title": "<title>"
},
"name": "ldh-CreateItem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | URL path segment (optional). Defaults to a random UUID. | |
| title | Yes | The title of the item | |
| container | Yes | URI of the parent container | |
| if_absent | No | Optional: whether a document already at the URI counts as success, left as it is (like mkdir -p). Without it the operation fails there. | |
| description | No | Description (optional) | |
| primary_topic | No | URI reference of what the item is about, resolved against its URI (optional), e.g. #this. |