Sends statblocks, maps, props, encounters and characters to a Tome server, and compiles a folder of notes into a PDF for its reference library.
Tome Connector is an Obsidian plugin that sends selected note content to a Tome server. Content is sent only when you select a Send to Tome button or the character sync action.
From version 1.1.0 the connector sends every creature, character, spell, magic
item and piece of equipment with its rules inside one named record - dnd5e
for D&D 5e, pf2e for Pathfinder 2e - beside the parts that belong to no rule
set, such as the name, the picture and the D&D Beyond ID. That is the only
shape a current Tome server accepts: it refuses the flat fields earlier
connectors sent, saying the note came from an out-of-date connector.
A Tome server older than that change does not read the named record, so 1.1.0 cannot fill in anything but names there. Keep 1.0.4 for such a server.
Copy these release files into .obsidian/plugins/tome-connector/ in your
vault:
main.jsmanifest.jsonstyles.cssReload Obsidian, then enable Tome Connector under Settings -> Community plugins.
Open Settings -> Tome Connector and configure:
https://tomegaming.com/; change it only if you run your own Tome server.
Do not include an API action path.X-Api-Key header and is not stored in the plugin's data.json.#tome. Notes carrying it are included by the
Send notes with the sync tag to Tome command. Leave it empty and that
command opens this setting instead; the folder and vault commands never consult it.The API key determines the Tome account. Before every campaign-scoped import, the
connector loads that account's campaigns and asks which one should receive the content.
It sends the selected id in the X-Campaign-Id header.
Every request also carries the connector's own version, from its manifest, in the
X-Tome-Connector-Version header, so Tome can tell you when your connector is out of date.
By default, pictures are shrunk to fit Tome before they are uploaded - maps to 3072px on the longest edge, tokens to 1024px, cover art to 1600px - and re-encoded as WebP, but only when that actually produces a smaller file. An image already inside its cap is sent exactly as it is, and so are GIFs and SVGs, which lose too much to a canvas to be worth re-encoding.
Turn Downscale images before sending off to upload originals untouched. Before you do, know what Tome accepts:
| What you are sending | Ceiling | What happens above it |
|---|---|---|
| Map background | 50 MB | Refused, with a message |
| Prop | 5 MB | Refused, with a message |
| Statblock, character, item or adventure cover art | 5 MB | The entry is created without its picture, and nothing says so |
The last row is the one worth remembering: an oversized token or item illustration does not fail the send, it just quietly does not arrive. The setting says as much the moment you switch it off.
This setting covers uploads only. Compiling a folder into a PDF reference is a separate feature with its own image handling, described under Send a folder as a PDF reference, and is not affected either way.
The plugin adds send controls for:
statblock YAML blocksencounter YAML blockszoommap and Leaflet leaflet YAML blocksprop YAML blockstome encounter objectdocs/authoring-adventures.md for the format, whether the
folder came from ttrpg-convert-cli or was written by handAn image in a statblock, map or prop block may be a vault path or a wikilink
(image: [[Goblin.png]]), resolved from the note the block is in, wherever in the
vault the file is. An image that cannot be read stops that send - for every kind,
including a magic item, equipment or spell in a vault sync, which used to go without its
art. Nothing is sent in its place, and a vault sync lists it as unresolvable.
A magic item, equipment or spell replaces the campaign's item of the same name, an SRD one included. The send's notice says so, and a vault sync's results count the replaced items, for example "12 sent to Test 2, 3 replaced an existing item of the same name".
Example JSON encounter:
{
"tome": {
"name": "Goblin ambush",
"encounterNpcs": [
{ "name": "Goblin", "quantity": 4 }
]
}
}
On creation, Tome Connector writes the returned ID back into encounter, NPC,
map, and prop source blocks, as id - except a Leaflet block, whose id is
Leaflet's own map name, where it goes under tome_id instead. Only an ID Tome
issued (a GUID) is sent back on a later send. Player-character IDs are stored in the note's
frontmatter: tome_id for a character sent to a campaign, and tome_vault_id
for one sent to My Characters. They are separate properties because a note
can be sent to both, and those are two characters in Tome that do not sync to
each other. Later sends use those IDs where the API supports identity-based
updates.
A player-character send asks where it should go before it sends: My Characters, the account's own shelf, or any campaign the API key's account owns. Re-sending the same note updates the character it made the first time rather than adding another, on either destination.
A player-character send reads these frontmatter properties, and no others: name, race,
class, level, background, alignment, gender, xp, hp_max, hp_current,
hp_temp, ac, speed, proficiency_bonus, the six ability scores (str to cha),
dndbeyond_id, image, and classes. Everything else on the sheet - proficiencies,
attacks, spells, features, inventory - is read from the tables in the note body.
A note with no ac sends no armour class at all, rather than zero: Tome gives a new
character its default and leaves an existing one's armour class as it was.
class is free text and is sent as written: Barbarian 3, Rogue (Thief) or
Fighter (Champion) 3 / Rogue 2 are all fine, and Tome reads the classes out of the line
itself. A character with more than one class needs nothing further. The optional classes
property is for a note that wants to name each class explicitly, as a list of
{ class, subclass, level } objects or of strings written the way Tome prints them:
classes:
- { class: Fighter, subclass: Champion, level: 3 }
- Wizard 2
Right-click a folder in the File Explorer and select Tome → Import as a Tome Reference. This entry is desktop only (see below). Every note in the folder, including those in subfolders, is compiled into one PDF and uploaded to the campaign's Reference library.
Chapter 2
comes before Chapter 10.Two limitations worth knowing:
Right-click a note that holds a statblock, encounter, leaflet or zoommap
block (or declares a statblock in its frontmatter) and select Send this note to
Tome. It sends just that note - everything in it that a folder import would send -
with the same confirm and results dialogs as the folder menu's Tome → Import
Library items to Tome. Other notes don't show the entry.
Select Offer older-book feats at level 4 to file feats from pre-2024 books as General feats. This option is off by default. The confirmation and completed-import notice say how many imported feats will not be offered when levelling up, because they have no category or a prerequisite Tome cannot check.
Unlabelled ability-increase bullets are imported as benefits, including the choice of abilities and the maximum score. Each filed feat gets a level-4 prerequisite, checked together with any ability score prerequisite it already had. Tome cannot yet check racial prerequisites, so a feat with one keeps its text and no rule, and Tome does not offer it. The connector never replaces a prerequisite with a rule that checks only level.
Tome counts a subclass feature's uses only when the import says how many there are;
it never reads them from the feature's text. To state them, add a tome-uses block
under the feature's heading in the subclass note. This is Portent, two uses from
level 3 and three from level 14:
### Portent (Level 3)
Glimpses of the future begin to press on your awareness.
```tome-uses
{
"cost": "none",
"summary": "Replace a d20 roll with a foretelling roll.",
"tiers": [
{ "from": 3, "count": { "fixed": 2 }, "shortRest": "none" },
{ "from": 14, "count": { "fixed": 3 }, "shortRest": "none" }
]
}
```
cost is action, attack, bonus, reaction or none.summary is a short line saying what a use does; it cannot be empty.from, 1 to 20) and says how many uses (count) and how
many come back on a Short Rest (shortRest: none, one or all).count is one of { "fixed": 2 }, { "proficiency": true } (the proficiency
bonus), { "modifier": "wis" } (an ability modifier, at least 1),
{ "perLevel": 5 } (class level times the number) or { "unlimited": true }.The connector puts tiers in level order and keeps the block out of the feature's text. A feature without a block imports with no uses, and Tome falls back to its own list or a Custom use. Write the block on its own, not inside a callout, and once per feature. A block Tome would refuse, or a second one under the same feature, leaves its subclass out of the import, and the import lists that note as one it could not read.
Tome Connector does not send data automatically. A send action transmits the selected block, allowed character properties, or - for a folder export - the rendered text of every note in the chosen folder to the configured Tome server. Referenced images are read from the vault and embedded as base64 data. Unless Downscale images before sending has been turned off, they are shrunk and re-encoded first, so what reaches the server is smaller than what is in the vault - see Image size. Nothing is uploaded to any third party at any point; the resizing happens on your own machine, in Obsidian.
For block and character sends, a referenced image that cannot be read cancels the request; local vault paths are not sent as a fallback. A folder export instead drops the unreadable image and continues, marking the spot with a "Missing attachment" placeholder that names only the link as written in the note. A single stale link should not discard a book-length render, and because the element is removed rather than left broken, no local filesystem path is included either way. Unreadable images and notes are summarised in a notice and listed in the developer console.
Images a note references by URL are left as URLs and are fetched by the PDF renderer at print time, exactly as the reading view already fetches them.
A vault, tag, or folder send begins by enumerating the vault.
getMarkdownFiles() returns every markdown path in the vault, and a folder or
tag scope filters that list before anything is read; notes left in scope are
then read with cachedRead to find what can be sent. A content-source import on a
book's own folder (its reading notes, all tagged with one book source) widens
to every note carrying that book's source tag, wherever it sits. This runs only when you
invoke one of those commands, and it stops at a confirmation modal that names
what it found - nothing leaves the machine until you approve it.
The file list itself is not transmitted. A note's vault path is dropped when its library entry is built, so a local path never reaches the server; paths appear only in the local progress and failure reports. A content-source import uses each note's filename as the entry key, so the name travels but the folder it sat in does not.
Payloads and API keys are not written to the developer console. Failed server responses may be logged to help diagnose API errors.
Use Node.js 22.13 or later in the 22.x series, 24.x, or 26 and later. Vitest 5 no longer supports Node.js 20.
Install dependencies and run the checks from this directory:
npm ci
npm run build
npm test
npm run lint
Use npm run dev for a watch build. Production release artifacts are
main.js, manifest.json, and styles.css; main.js is generated and should
not be committed.
Releases are driven by the version in manifest.json. Bump it with npm version, which updates package.json, manifest.json, and versions.json
together so the three stay aligned:
npm version patch # or minor / major
git push --follow-tags
On every push to main, the Release Obsidian plugin workflow reads the
version from manifest.json and checks whether a release with that tag already
exists. If one does, the workflow stops there, so ordinary pushes that do not
change the version are a no-op. Otherwise it builds the plugin, attests build
provenance, and opens a draft release tagged with the version, with
main.js, manifest.json, and styles.css attached as assets.
Publish that draft to finish the release. Two rules matter for the Obsidian plugin review:
v prefix.main.js and manifest.json must be attached to the release as assets. The
review bot only reads published releases, so a draft holding the assets will
be reported as missing them.Never create a second release reusing a tag that already exists. GitHub allows a draft to share a tag name with a published release, and the review bot will read whichever one is published, even if it has no assets.