Detect format
detect_formatIdentify unknown or unlabelled input formats (JSON, YAML, TOML, XML, CSV, base64, JWT, UUID, and more) with confidence-ranked candidates so you can choose the correct utility.
Instructions
Guess what input is — JSON, YAML, TOML, XML, HTML, CSV/TSV, base64/base32/hex, URL-encoding, JWT, UUID, data URI, gzip/zlib, email, URL, IP address, unix timestamp, Markdown, SQL, Morse code, ROT13, plain binary — and return {candidates: [{format, confidence, note}]}, best first, confidence 0-1. Use it when you are handed an opaque or unlabelled value and must pick a utility for it; skip it when the format is already known. It only identifies, never transforms: to decode, search list_utilities for the top format (base64 -> base64_decode, JWT -> jwt_decode) and run that with run_utility. Ambiguous input yields several candidates (all-digit text can be a timestamp, JSON and hex at once); treat anything below about 0.45 as a weak guess. Use inputEncoding "base64"/"hex" only to deliver binary data such as gzip bytes: it is decoded before detection, so a base64 string you want identified must stay "text" (the default). Empty input yields an empty list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The value to inspect. | |
| inputEncoding | No | How to decode `input` first. Default "text". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| candidates | Yes | Likely formats, best first; confidence is 0-1. Empty for empty input. |