ddb_search_classes
Search D&D Beyond classes by name, source book, or rules edition (2024/2014), returning hit die and spellcasting data; fall back to Open5e SRD without a D&D Beyond login.
Instructions
Search all D&D Beyond classes with hit die and spellcasting. Requires login for D&D Beyond content (run ddb_login); without it, falls back to the Open5e SRD. A source lists one book's entries and wins over rules_edition. Returns 2024 content by default; set rules_edition to '2014' for 2014 rules. The 'Rules:' line or [tag] in the output names the ruleset.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ddb_search_classes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Partial class name (e.g. 'fighter', 'wizard') | |
| limit | No | Max results (default 30) | |
| offset | No | Skip N results for pagination | |
| source | No | Book: slug (phb-2024), short name or title. Lists or picks that book's version, of either edition; wins over rules_edition. "homebrew" lists homebrew entries only. | |
| rules_edition | No | Ruleset: '2024' (default) or '2014'. | 2024 |