This document is the canonical scripting surface for MyAnythingList. Developers, automation tools, and future ChatGPT sessions must use this file to understand what can be scripted, which commands exist, what arguments they accept, what each command must do, and what behaviors are forbidden.
This file complements developer_en.html and system_en.html. It does not replace those documents. It is the practical entry point for contributors who need to know what can be automated.
| Group | Purpose | Examples |
|---|---|---|
| State input | Provide URLs, media, text, playlist data, and layout state. | setProjectState, setURL, setThumbnail |
| Composition control | Control QR, URL art, overlays, labels, and layer visibility. | setQR, setTextArt, setOverlayVisibility |
| Rendering | Render the canonical tile or page composition at a target resolution. | renderTile, renderPage |
| Export | Write PNG/JPEG or other supported outputs without degrading the master path. | exportImage, exportBatch |
| Validation | Check readiness, layer completeness, and acceptance-test conditions. | validateState, assertQRReady |
| Localization | Control language, locale, direction, and string-key resolution. | setLocale, getString |
setProjectState(state)Loads or replaces the full project state used by live rendering and export rendering.
setProjectState({
url: "https://example.org",
thumbnail: { mode: "url-art" },
qr: { enabled: true, content: "https://example.org" },
export: { resolution: "8k", format: "png", qualityMode: "master" }
})
setURL(url, options)Defines the primary URL and any derived textual display values.
setThumbnail(config)Sets the primary thumbnail source or fallback mode.
| Field | Type | Required | Meaning |
|---|---|---|---|
mode | string | yes | image or url-art |
source | string/object | when mode=image | highest available source asset |
fit | string | no | fit/contain/crop behavior as defined elsewhere in docs |
preserveSourceQuality | boolean | no | controls source-quality handling without changing export resolution |
setTextArt(config)Configures URL-text-art rendering when no image thumbnail is used or when text art is explicitly selected.
setQR(config)Controls QR creation, content, visibility, and placement.
enabled, content when enabled.setQR({
enabled: true,
content: "https://example.org",
position: "bottom-right",
scaleMode: "layout-aware"
})
setOverlayVisibility(config)Toggles optional overlays such as type pills, small URL text, footer text, and other documented overlay elements.
setLocale(locale, options)Changes the active localization context for all user-facing labels and script-generated visible text.
validateState()Validates readiness before render/export.
assertQRReady()Confirms QR generation is complete before render/export proceeds.
renderTile(options)Renders the canonical tile composition at the requested target resolution.
| Field | Meaning |
|---|---|
resolution | Final output dimensions or named preset such as 4K/8K. |
backgroundMode | Selected background behavior. |
includeOverlays | Whether documented overlays are present. |
outputSurface | Canvas, bitmap, or internal render target. |
exportImage(options)Encodes a previously rendered result or a render-on-demand result to an output image.
exportImage({
format: "png",
resolution: "8k",
qualityMode: "master"
})
exportBatch(options)Exports multiple tiles/pages using the same deterministic rules.
auto unless the exact meaning is fully documented.setProjectState({
url: "https://define.com/_MyAnythingList.txt",
thumbnail: { mode: "url-art" },
qr: { enabled: true, content: "https://define.com/_MyAnythingList.txt" },
locale: "en",
export: { resolution: "8k", format: "png", qualityMode: "master" }
})
validateState()
assertQRReady()
renderTile({ resolution: "8k", includeOverlays: true })
exportImage({ format: "png", resolution: "8k", qualityMode: "master" })
setThumbnail({
mode: "image",
source: "/path/to/highest-available-source.jpg",
fit: "contain"
})
setQR({ enabled: true, content: "https://example.org" })
setOverlayVisibility({ typePill: true, smallURL: true, footer: true })
renderTile({ resolution: "7680x4320" })
exportImage({ format: "png", qualityMode: "master" })
This document is a standard part of the package. Future sessions, contributors, and automation agents must update it whenever a new scriptable capability, command, argument, mode, preset, or execution guarantee is discussed or implemented. No scriptable feature is considered complete until this file reflects it.
commands-and-functions_en.html and immediately understand what can be scripted without searching the rest of the package first.