{"ok":true,"site":{"host":"tok.show","url":"https://tok.show/","type":"live","desc":"TokShow","tools":[{"name":"inspect","kind":"answer","impl":"imperative","description":"Get a compact description of the current Tok·Show UI state without reading the editor contents or detailed token results.","title":"Inspect UI","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{},"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"read_editor","kind":"answer","impl":"imperative","description":"Read the complete contents of the editor currently visible in Tok·Show.","title":"Read editor","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{},"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"read_results","kind":"answer","impl":"imperative","description":"Get the current token counts for the models visible in Tok·Show. If GUI tokenization is still pending or running, waits for the current UI state to become idle before reading results.","title":"Read results","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{},"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"overwrite_editor","kind":"act","impl":"imperative","description":"Replace the contents of the editor currently visible in Tok·Show with supplied text or the UTF-8 body fetched from a URL.","title":"Overwrite editor","annotations":{"readOnlyHint":false,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"text":{"type":"string","maxLength":1000000,"description":"Text content to use directly."},"url":{"type":"string","description":"HTTP(S) URL whose UTF-8 response body should be used as text content. Cross-origin URLs must permit browser fetches."}},"oneOf":[{"required":["text"],"not":{"required":["url"]}},{"required":["url"],"not":{"required":["text"]}}],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"get_permalink","kind":"answer","impl":"imperative","description":"Get a permalink representing the current visible Tok·Show editor, model selection, focused model and editor mode.","title":"Get permalink","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{},"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"list_models","kind":"answer","impl":"imperative","description":"List every tokenizer model available in Tok·Show, including its stable model ID, display names, tokenizer kind, OpenRouter identifier when available and source metadata.","title":"List models","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{},"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"count_tokens","kind":"answer","impl":"imperative","description":"Count tokens for supplied text with one model or several models without changing the Tok·Show UI. models accepts one model ID or an array and defaults to all models.","title":"Count tokens","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"text":{"type":"string","maxLength":1000000,"description":"Text content to use directly."},"url":{"type":"string","description":"HTTP(S) URL whose UTF-8 response body should be used as text content. Cross-origin URLs must permit browser fetches."},"models":{"oneOf":[{"type":"string","enum":["gpt","gemma","qwen","kimi","deepseek","mimo","sdxl","glm","minimax","hy","step","muse"]},{"type":"array","items":{"type":"string","enum":["gpt","gemma","qwen","kimi","deepseek","mimo","sdxl","glm","minimax","hy","step","muse"]},"minItems":1,"maxItems":12,"uniqueItems":true}],"description":"One model ID or an array of model IDs. Defaults to all available models."}},"oneOf":[{"required":["text"],"not":{"required":["url"]}},{"required":["url"],"not":{"required":["text"]}}],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"tokenize","kind":"act","impl":"imperative","description":"Return token ID arrays for supplied text with one model or several models without changing the Tok·Show UI. models accepts one model ID or an array and defaults to all models.","title":"Tokenize","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"text":{"type":"string","maxLength":1000000,"description":"Text content to use directly."},"url":{"type":"string","description":"HTTP(S) URL whose UTF-8 response body should be used as text content. Cross-origin URLs must permit browser fetches."},"models":{"oneOf":[{"type":"string","enum":["gpt","gemma","qwen","kimi","deepseek","mimo","sdxl","glm","minimax","hy","step","muse"]},{"type":"array","items":{"type":"string","enum":["gpt","gemma","qwen","kimi","deepseek","mimo","sdxl","glm","minimax","hy","step","muse"]},"minItems":1,"maxItems":12,"uniqueItems":true}],"description":"One model ID or an array of model IDs. Defaults to all available models."}},"oneOf":[{"required":["text"],"not":{"required":["url"]}},{"required":["url"],"not":{"required":["text"]}}],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"create_spans","kind":"act","impl":"imperative","description":"Return the byte start/end span corresponding to every token for supplied text with one model or several models, without changing the Tok·Show UI. Spans normally address the supplied input bytes. If a tokenizer normalizes its input first, spanInputs identifies the processed text whose bytes the spans address.","title":"Create spans","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"text":{"type":"string","maxLength":1000000,"description":"Text content to use directly."},"url":{"type":"string","description":"HTTP(S) URL whose UTF-8 response body should be used as text content. Cross-origin URLs must permit browser fetches."},"models":{"oneOf":[{"type":"string","enum":["gpt","gemma","qwen","kimi","deepseek","mimo","sdxl","glm","minimax","hy","step","muse"]},{"type":"array","items":{"type":"string","enum":["gpt","gemma","qwen","kimi","deepseek","mimo","sdxl","glm","minimax","hy","step","muse"]},"minItems":1,"maxItems":12,"uniqueItems":true}],"description":"One model ID or an array of model IDs. Defaults to all available models."}},"oneOf":[{"required":["text"],"not":{"required":["url"]}},{"required":["url"],"not":{"required":["text"]}}],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"compare","kind":"act","impl":"imperative","description":"Compare token counts for multiple content cases using one model. Each case is either inline text or a URL whose UTF-8 response body is fetched.","title":"Compare cases","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"model":{"type":"string","enum":["gpt","gemma","qwen","kimi","deepseek","mimo","sdxl","glm","minimax","hy","step","muse"]},"cases":{"type":"array","minItems":2,"maxItems":64,"items":{"type":"object","properties":{"text":{"type":"string","maxLength":1000000,"description":"Text content to use directly."},"url":{"type":"string","description":"HTTP(S) URL whose UTF-8 response body should be used as text content. Cross-origin URLs must permit browser fetches."}},"oneOf":[{"required":["text"],"not":{"required":["url"]}},{"required":["url"],"not":{"required":["text"]}}],"additionalProperties":false}}},"required":["model","cases"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"create_permalink","kind":"act","impl":"imperative","description":"Build a Tok·Show permalink for a made-up UI state without changing the current page. Content may be inline text or fetched from a URL.","title":"Create permalink","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"text":{"type":"string","maxLength":1000000,"description":"Text content to use directly."},"url":{"type":"string","description":"HTTP(S) URL whose UTF-8 response body should be used as text content. Cross-origin URLs must permit browser fetches."},"models":{"oneOf":[{"type":"string","enum":["gpt","gemma","qwen","kimi","deepseek","mimo","sdxl","glm","minimax","hy","step","muse"]},{"type":"array","items":{"type":"string","enum":["gpt","gemma","qwen","kimi","deepseek","mimo","sdxl","glm","minimax","hy","step","muse"]},"minItems":1,"maxItems":12,"uniqueItems":true}],"description":"One model ID or an array of model IDs. Defaults to all available models."},"model":{"type":"string","enum":["gpt","gemma","qwen","kimi","deepseek","mimo","sdxl","glm","minimax","hy","step","muse"]},"monaco":{"type":"boolean","description":"Whether the permalink should use the Monaco editor. Defaults to true.","default":true}},"oneOf":[{"required":["text"],"not":{"required":["url"]}},{"required":["url"],"not":{"required":["text"]}}],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"}],"category":"AI & Agents","favicon":"/favicons/tok.show.png","apiSurface":"spec","toolCount":11}}