Patch a macro — name, type, command, scope, image or folder; omitted fields stay unchanged. **`folder_id` is tri-state** (same pattern as folders.parent_id): - omit both `folder_id` and `clear_folder` → don't touch the folder - `folder_id: "abc"` → move into that folder (folder ID, NOT name) - `clear_folder: true` → move to root (Foundry: folder=null) Cross-field rule: setting BOTH `folder_id` and `clear_folder: true` returns 422. Script macros (the macro is, or becomes, `type: script`) need the module setting **Allow Script Macros** (409 otherwise).
FoundryVTTMCPAIGamingAutomation
Properties
Name
Type
Description
clear_folder
boolean
Move the macro to the root. Mutually exclusive with `folder_id`. Default false.
command
string
folder_id
string
New folder ID (NOT name). Mutually exclusive with `clear_folder: true`.
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.