Sillytavern Api Reference logo

Sillytavern Api Reference

Community
yukk4159-bit
sillytavern-api-reference

Verify exact SillyTavern, Tavern Helper / JS-Slash-Runner, STScript, macro, prompt-injection, worldbook, EJS, MVU, and runtime-library capabilities before implementing or reviewing rolecard automation. Use when a task depends on a function signature, event payload, slash-command grammar, variable scope, message-floor operation, generation option, runtime-symbol provider, Git/CDN loader, or version-sensitive extension capability.

Overview

Publisheryukk4159-bit
Repositorycharcard-workshop
Skill namesillytavern-api-reference
Stars
37
Forks
3
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by yukk4159-bit on GitHub. Read the source before you install it.

Installation

Install the Sillytavern Api Reference AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/yukk4159-bit/charcard-workshop/tree/main/skills/sillytavern-api-reference
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/yukk4159-bit/charcard-workshop.git /tmp/charcard-workshop
mkdir -p .claude/skills
cp -r /tmp/charcard-workshop/skills/sillytavern-api-reference .claude/skills/sillytavern-api-reference
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sillytavern Api Reference in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sillytavern Api Reference on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sillytavern Api Reference is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

SillyTavern API Reference

Use $consult-tavernweave-library with the sillytavern-api-reference route for the smallest relevant ST guide set, then verify exact symbols against the identified target version. A guide route is navigation evidence, not a substitute for the installed runtime or pinned source. Add A0 only if the task becomes write-capable.

Treat this skill as an authority-routing procedure, not as a frozen copy of an evolving API. The public baselines in references/core-facts.md are dated navigation snapshots, not claims about the latest release. The target runtime always wins.

Resolve the runtime surface

Classify every requested operation before selecting an API:

SurfaceUse forPrimary authority
SillyTavern coreHost context, native events, rendering, and extension APIsSource and documentation for the installed SillyTavern release
Tavern Helper / JS-Slash-RunnerMessage, variable, generation, injection, worldbook, and iframe helpersDeclarations and documentation matching the installed extension
STScriptSlash-command pipelines, closures, Quick Replies, and scoped variablesCommand help from the running SillyTavern instance or matching command reference
MacrosPrompt-time substitution and simple variable accessMacro help from the running SillyTavern instance or matching macro reference
ST-Prompt-TemplateEJS evaluation and prompt-template featuresThe installed extension version and its upstream documentation
MVU / MagVarUpdateStructured stat_data, update parsing, replacement, and lifecycle eventsThe installed MVU global, matching declarations, and upstream source

Do not transfer a symbol between surfaces merely because similarly named globals exist.

Verification workflow

  1. Capture the target versions and capabilities. In a Tavern Helper context, prefer getTavernVersion() and getTavernHelperVersion(). Probe optional integrations with typeof, Object.keys, or documented initialization helpers.

  2. Identify whether each dependency is host-provided, embedded in the card, or loaded remotely. Do not infer an installation requirement from an imported helper or a global symbol.

  3. Search the authority that matches those versions. Prefer runtime source or official versioned documentation, then matching declarations, then the public interoperability index in references/core-facts.md.

  4. Copy the exact symbol spelling, parameter shape, return type, event constant, or command grammar. Never reconstruct it from memory. If the request omits the concrete symbol or installed version, stop before giving an exact value or signature. Ask for the hook and runtime identity; do not volunteer an example from a moving branch as though it answered the target-runtime question.

  5. Record provenance beside version-sensitive work using this compact form:

    text
    symbol: updateWorldbookWith
    surface: Tavern Helper
    applies_to: detected extension version or declaration snapshot
    provenance: public upstream URL plus commit/path, or identified runtime source
    confidence: high | medium | low
    runtime_check: performed check, or reason it remains pending
  6. Implement the narrowest supported API and add capability failure behavior. Do not silently fall back to private host DOM, deprecated APIs, or a different persistence scope.

  7. Verify the call in the intended context. A browser console probe does not prove the same global exists inside a message iframe, script iframe, prompt template, or STScript pipeline.

Confidence rules

  • High: exact fact read from matching runtime source, official versioned documentation, or declarations corroborated in the target runtime.
  • Medium: declaration-only, changelog-only, single-source, or version-adjacent fact. Add a capability probe or a real-runtime test.
  • Low: inferred, conflicting, or unversioned fact. Do not implement from it; resolve the conflict first.

A moving branch name such as main, release, or beta is not a version identity. If it is useful only for navigation, label it as such. Any example containing an exact event value or callback signature must cite an immutable commit or matching installed source and must not be presented as the answer for a different or unidentified runtime.

Keep declaration truth separate from runtime truth. A declaration can establish spelling and a nominal type while leaving callback timing, lifecycle, side effects, or actual availability unverified.

Implementation rules

  • Prefer Tavern Helper wrappers when they provide the required operation. Use window.SillyTavern.getContext() only for core state or APIs not covered by the wrapper.
  • Treat injected global functions and window.TavernHelper properties as two access forms of the same helper surface only after checking the installed version.
  • Prefer the current WorldbookEntry API family: getWorldbook, replaceWorldbook, updateWorldbookWith, createWorldbookEntries, and deleteWorldbookEntries. Do not introduce deprecated lorebook-entry APIs into new code.
  • Prefer updater functions or entry-level helpers over whole-object replacement. Preserve unknown fields, entry identity, unrelated user content, and the intended chat/character/global scope.
  • Distinguish generate from generateRaw: the latter supplies its own ordered prompts. Neither should be assumed to create a normal chat turn or to run MVU parsing automatically.
  • Treat message floors and swipes explicitly. Read with include_swipes: true when alternate pages matter, and choose the smallest refresh scope after writes.
  • Wait for optional globals such as Mvu before use. Subscribe with exported event constants, especially where upstream string values contain historical spelling mistakes.
  • Do not infer a provider, installation state, or delivery class from an API identifier alone. Trace the actual card script, import, manifest declaration, and runtime registration path.
  • Treat packaged domestic/global MVU Zod scripts as card assets whose presence and enabled states must match the card contract. Treat the Git/CDN modules imported by those scripts as remote delivery. Do not replace this packaged loading path with a standalone Zod installation instruction.
  • Treat a remote import as runtime delivery, not proof of installation or execution. Record its URL/ref, fallback, and readiness probe.
  • Keep macros for substitution. A macro that writes variables may run during preview, swipe, or re-render; use an explicit transaction when timing matters.
  • Preserve STScript pipe values, named-argument syntax, quoting, and closure delimiters exactly as documented. /send adds a message but does not itself trigger generation.
  • Add cleanup for listeners, prompt injections, timers, and shared interfaces when their lifecycle can outlive the current operation.
  • Never expose API keys, authentication data, extension settings, or private chat content in logs or examples.

Resolve disagreements

When sources disagree:

  1. Check that they describe the same surface and release.
  2. Prefer the target runtime implementation over a guide or declaration.
  3. Prefer a raw declaration or command/macro reference over a narrative summary for exact spelling.
  4. Downgrade confidence and supply a minimal runtime probe when behavior is still unclear.
  5. State the unresolved fact instead of presenting a guessed snippet as runnable.

Output contract

For API-dependent answers or patches:

  • name every runtime or extension dependency;
  • state whether each dependency is host-provided, card-embedded, remote-loaded, optional, regional, or development-only;
  • state the detected or assumed version;
  • identify the exact authority used for each sensitive symbol;
  • provide code for the correct execution context;
  • label any capability probe or real-runtime check still required;
  • avoid claiming that static inspection proves message creation, event timing, iframe access, or MVU persistence.

When the user has not supplied enough identity to resolve an exact API question, the correct output is a short evidence request plus a safe runtime probe plan. Do not pad that response with an unversioned exact signature.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Sillytavern Api Reference AI skill do?

Verify exact SillyTavern, Tavern Helper / JS-Slash-Runner, STScript, macro, prompt-injection, worldbook, EJS, MVU, and runtime-library capabilities before implementing or reviewing rolecard automation. Use when a task depends on a function signature, event payload, slash-command grammar, variable scope, message-floor operation, generation option, runtime-symbol provider, Git/CDN loader, or version-sensitive extension capability.

Why use Sillytavern Api Reference on TypingMind?

Because you install it once and use it with any model. Sillytavern Api Reference is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sillytavern Api Reference in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/yukk4159-bit/charcard-workshop/tree/main/skills/sillytavern-api-reference. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Sillytavern Api Reference?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sillytavern Api Reference?

As many as you like. As long as a model supports skills, you can use Sillytavern Api Reference with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sillytavern Api Reference AI skill free?

Yes. It is published on GitHub by yukk4159-bit under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇