AI assistant
Studio’s AI assistant understands your content schemas, the current entry you’re editing, and your entire project structure. It can create and edit content, modify source files, update styling, and manage pull requests — all through natural conversation with multi-turn tool execution.
Opening the assistant
Section titled “Opening the assistant”The AI assistant is available from both the visual editor and the collection browser. Open it by clicking the AI Assistant button in the Studio toolbar.
The assistant is fully contextual — it automatically receives information about the current branch, the active collection’s Zod schema (as JSON Schema), and the entry you are viewing. This means you can ask questions or give instructions without needing to specify which collection or entry you are working with.
What AI can do
Section titled “What AI can do”The assistant has access to 24 specialised tools organised into six categories. Each tool can be chained together in a single conversation turn, so a prompt like “create a blog post and open a pull request” triggers multiple tools in sequence.
Content tools
Section titled “Content tools”| Tool | Description |
|---|---|
create_entry | Create a new content entry in a collection with frontmatter and body |
update_entry | Merge updated frontmatter fields into an existing entry without overwriting unchanged fields |
patch_entry_body | Find and replace text within an entry’s Markdown or MDX body |
delete_entry | Remove a content entry from a collection |
list_entries | List all entries in a collection with their frontmatter summaries |
get_entry | Retrieve the full frontmatter and body of a specific entry |
Schema tools
Section titled “Schema tools”| Tool | Description |
|---|---|
list_collections | List all content collections defined in the project |
get_schema | Retrieve the Zod schema for a collection as a JSON Schema object |
create_collection | Create a new content collection with field definitions and an Astro page template |
File tools
Section titled “File tools”| Tool | Description |
|---|---|
read_file | Read the contents of any file in the project |
write_file | Create or overwrite a file with new content |
patch_file | Find and replace text within any source file |
list_files | List files in the project matching a glob pattern |
create_directory | Create a new directory in the project file tree |
Media tools
Section titled “Media tools”| Tool | Description |
|---|---|
list_media | List all media assets available in the project |
upload_media | Upload a new media asset to the project’s media directory |
Styling tools
Section titled “Styling tools”| Tool | Description |
|---|---|
update_tailwind_config | Modify the Tailwind CSS configuration (colours, spacing, fonts, and other design tokens) |
update_global_styles | Edit the project’s global stylesheet |
Workflow tools
Section titled “Workflow tools”| Tool | Description |
|---|---|
create_pull_request | Open a new pull request from the current branch with a title and description |
list_pull_requests | List open pull requests for the project |
get_pull_request | Retrieve details of a specific pull request including status and reviewers |
add_pr_comment | Add a comment to an existing pull request |
get_pr_comments | Retrieve all comments on a pull request |
get_pr_files | List the files changed in a pull request |
Example prompts
Section titled “Example prompts”Here are practical examples you can try with the AI assistant:
- “Create a new blog post about getting started with Astro” — The assistant uses
create_entryto scaffold a complete entry with frontmatter fields populated from the blog collection’s schema. - “Update the hero image on my latest post to
/images/new-hero.jpg” — The assistant usesupdate_entryto merge the new image path into the entry’s frontmatter without touching other fields. - “Add a
categoryenum field to the blog schema with options: tutorial, news, opinion” — The assistant usescreate_collectionor modifies the schema definition to add the new field. - “Change the primary colour in Tailwind config to
#007c64” — The assistant usesupdate_tailwind_configto locate and update the colour value in your Tailwind configuration. - “Create a pull request with my changes titled ‘New blog posts for February’” — The assistant uses
create_pull_requestto open a PR from your current branch with the specified title.
How it works
Section titled “How it works”The AI assistant is powered by Claude with multi-turn tool calling. Each request can trigger multiple tool executions in a loop — up to 25 rounds per conversation turn — allowing the assistant to complete complex, multi-step tasks without further input.
When you send a message, the assistant receives rich context automatically:
- Current branch — so it commits changes to the correct branch
- Collection schema — the full Zod schema for the active collection, serialised as JSON Schema
- Current entry — the frontmatter fields and Markdown body of the entry you are editing
Changes made by the assistant are committed directly to the current branch. When content or styles are modified, the live preview updates automatically so you can see the results immediately.
Next steps
Section titled “Next steps”- Code editor — Browse and edit source files directly in the Monaco-powered in-browser IDE
- Branches and environments — Learn how Git-native branch workflows power preview environments and content review