category_upsert
Create a category in a Foundry VTT journal, ensuring it exists before adding pages. Idempotent operation for organizing entries like NPCs or locations.
Instructions
Create a category within a journal. Idempotent.
Categories must exist before pages can reference them. Common names: NPCs, Settlements, Factions, Locations.
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": {
"journal": "<journal>",
"name": "<name>"
},
"name": "category_upsert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| journal | Yes |