Logo vun Sillytavern Api Reference

Sillytavern Api Reference

Communautéit
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.

Iwwersiicht

Editeuryukk4159-bit
Repositorycharcard-workshop
Skill-Nummsillytavern-api-reference
Stären
37
Forks
3
Matgeliwwert Fichieren
2
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum yukk4159-bit op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Sillytavern Api Reference an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/yukk4159-bit/charcard-workshop/tree/main/skills/sillytavern-api-reference
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Sillytavern Api Reference an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Sillytavern Api Reference automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Sillytavern Api Reference net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Sillytavern Api Reference op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Sillytavern Api Reference besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Sillytavern Api Reference an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/yukk4159-bit/charcard-workshop/tree/main/skills/sillytavern-api-reference an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Sillytavern Api Reference benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Sillytavern Api Reference benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Sillytavern Api Reference domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Sillytavern Api Reference gratis?

Jo. De Skill gëtt vum yukk4159-bit ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇