Skip to main content
New to Corsair? See API access, authentication, and error handling.

Designs

grep

designs.grep Search the files of another Magic Patterns design Risk: read
Input Output

preview

designs.preview Take a live screenshot or short GIF of a design as it is on the canvas Risk: read
Input
Output

read

designs.read Get the file list and entry preview of another Magic Patterns design Risk: read
Input Output

readFiles

designs.readFiles Read files from another Magic Patterns design Risk: read
Input
Output

Feedback

send

feedback.send Send feedback to the Magic Patterns team Risk: destructive
Input Output

Files

copy

files.copy Copy files byte for byte inside a project Risk: write
Input
Output

delete

files.delete Delete one file inside an OS file Risk: destructive · Irreversible
Input Output

edit

files.edit Replace exact text in a file in a project Risk: write
Input
Output

glob

files.glob Find files in an OS file by glob pattern Risk: read
Input Output

grep

files.grep Search file contents in a project with a regex Risk: read
Input Output

list

files.list List a project’s OS files, or the files inside one OS file Risk: read
Input Output

read

files.read Read a file in a project, with line numbers Risk: read
Input Output

runCommand

files.runCommand Run a shell command in a project’s workspace Risk: destructive · Irreversible
Input Output

write

files.write Create or overwrite a file in a project Risk: write
Input Output

Images

generate

images.generate Generate up to 5 images from a description and get CDN URLs Risk: destructive
Input
Output

Legacy

createArtifact

legacy.createArtifact Create a working branch (artifact) of a legacy design Risk: write
Input Output

createDesign

legacy.createDesign Create a legacy editor design, optionally generating it from a prompt Risk: destructive
Input Output

createDesignSystem

legacy.createDesignSystem Create a legacy design system Risk: write
Input Output

createSlideDeck

legacy.createSlideDeck Generate a legacy slide deck from a prompt Risk: destructive
Input Output

getArtifact

legacy.getArtifact Get a legacy design’s active artifact and its files Risk: read
Input Output

getDesignStatus

legacy.getDesignStatus Get a legacy design’s generation status and active artifact Risk: read
Input Output

getDesignSystem

legacy.getDesignSystem Get a legacy design system and its files Risk: read
Input Output

getEditorIdFromUrl

legacy.getEditorIdFromUrl Resolve a legacy Magic Patterns URL to its editor id Risk: read
Input Output

getInspirationDocument

legacy.getInspirationDocument Read an existing legacy inspiration document Risk: read
Input Output

listDesignSystems

legacy.listDesignSystems List the design systems available to legacy editor designs Risk: read
Input: empty object Output

listVersionHistory

legacy.listVersionHistory List the version history of a legacy design Risk: read
Input Output

publishArtifact

legacy.publishArtifact Compile a legacy artifact and make it the design’s active version Risk: write
Input Output

publishDesignSystem

legacy.publishDesignSystem Publish a legacy design system as a new immutable version Risk: destructive · Irreversible
Input Output

readArtifactFiles

legacy.readArtifactFiles Read source files from a legacy design artifact Risk: read
Input Output

readDesignSystemFiles

legacy.readDesignSystemFiles Read source files from a legacy design system Risk: read
Input Output

readMessageHistory

legacy.readMessageHistory Read recent chat messages of a legacy design Risk: read
Input Output

sendPrompt

legacy.sendPrompt Send a prompt to the AI on a legacy design Risk: destructive
Input Output

writeArtifactFiles

legacy.writeArtifactFiles Write source files to a legacy design artifact Risk: write
Input
Output

writeDesignSystemFiles

legacy.writeDesignSystemFiles Write source files to a legacy design system Risk: write
Input
Output

Magicos

ask

magicos.ask Send a prompt to MagicOS, the project’s own design agent (spends credits) Risk: destructive
Input Output

listThreads

magicos.listThreads List MagicOS threads in a project and follow their progress Risk: read
Input Output

Os Files

create

osFiles.create Add a prototype, frame, canvas, slide, document, image or note to a project canvas Risk: write
Input
Output

delete

osFiles.delete Remove a whole OS file and its placements from a project canvas Risk: destructive · Irreversible
Input Output

Projects

check

projects.check Type-check and build a project’s designs and report what is broken Risk: read
Input Output

create

projects.create Create a new, empty MagicOS project Risk: write
Input Output

done

projects.done Mark the current request finished and get links and pictures of the changed designs Risk: write
Input Output

guide

projects.guide Read a project’s workflow and conventions before creating or writing in it Risk: read
Input Output

importClaudeDesign

projects.importClaudeDesign Import a Claude Design HTML bundle from a public URL as a new prototype Risk: write
Input Output

list

projects.list List the MagicOS projects you can reach, with their ids and your access Risk: read
Input: empty object Output

setStatus

projects.setStatus Show the people watching a project what the agent is working on Risk: write
Input Output

Threads

read

threads.read Read the messages and actions in one project thread Risk: read
Input Output

threads.search Search a project’s past conversation threads Risk: read
Input Output