MyAnythingList Canonical English Docs
Freshness: 2026-03-17 v1 • Standard navigation header/footer • This document is the canonical place to see what can be scripted.

Commands and Functions

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.

Canonical rule: if a command, argument, mode, option, or output contract is intended to be scriptable, it belongs in this document. Hidden behavior, undocumented arguments, UI-only side effects, and implementation-only flags are not allowed as part of the stable scripting interface.

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.

1. Core scripting principles

2. Command groups

GroupPurposeExamples
State inputProvide URLs, media, text, playlist data, and layout state.setProjectState, setURL, setThumbnail
Composition controlControl QR, URL art, overlays, labels, and layer visibility.setQR, setTextArt, setOverlayVisibility
RenderingRender the canonical tile or page composition at a target resolution.renderTile, renderPage
ExportWrite PNG/JPEG or other supported outputs without degrading the master path.exportImage, exportBatch
ValidationCheck readiness, layer completeness, and acceptance-test conditions.validateState, assertQRReady
LocalizationControl language, locale, direction, and string-key resolution.setLocale, getString

3. Canonical command definitions

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.

FieldTypeRequiredMeaning
modestringyesimage or url-art
sourcestring/objectwhen mode=imagehighest available source asset
fitstringnofit/contain/crop behavior as defined elsewhere in docs
preserveSourceQualitybooleannocontrols source-quality handling without changing export resolution
Rule: source images may be source-limited; overlays, QR, and text must not inherit that limitation.

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.

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.

Failure rule: if export proceeds before QR readiness and the output omits a visible QR, that build fails acceptance.

renderTile(options)

Renders the canonical tile composition at the requested target resolution.

FieldMeaning
resolutionFinal output dimensions or named preset such as 4K/8K.
backgroundModeSelected background behavior.
includeOverlaysWhether documented overlays are present.
outputSurfaceCanvas, 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.

4. Argument and naming rules

5. Example scripting flows

Text-art + QR master export

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" })

Image thumbnail export with crisp overlays

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" })

6. Fail conditions tied to scripting

7. Maintenance rule for future sessions

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.

Package rule: people should be able to open commands-and-functions_en.html and immediately understand what can be scripted without searching the rest of the package first.