generate_pr_json
Format new or modified spells and monsters into PR-ready JSON for open5e-api submissions, with document slug and add/modify operation.
Instructions
Generate PR-ready JSON output for a new or modified entry, suitable for submitting to open5e-api.
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": {
"resource_type": "<resource_type>",
"data": "<data>",
"document_slug": "<document_slug>",
"operation": "<operation>"
},
"name": "generate_pr_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Resource data to format for PR | |
| operation | Yes | Whether adding new or modifying existing | |
| document_slug | Yes | Target source book (e.g., "srd-2014", "tob") | |
| resource_type | Yes | Type of resource |