Anthropic AI Prompts | Prompt Studio

    Anthropic Protocol

    Expertly crafted prompts and instructions extracted from the Anthropic system. Master the patterns that power professional AI interactions.

    26 Blocks
    System Protocol
    Optimized
    Open Generator

    Prompt Architecture

    Browse structured rules and examples for this system.

    Protocol Block
    Task Agent
    Technical Spec
    Launches a new agent to handle complex, multi-step tasks autonomously. Supports general-purpose agents, status line configuration, and output styles.

    Examples

    Write a function to check prime numbers.

    Agent: I will write the function and then use the 'code-reviewer' agent to validate the implementation.

    Usage Strategy

    Use this protocol when you need deep research or code searches that require autonomy. Ideal for tasks you cannot solve in a single attempt.

    Test Prompt
    Protocol Block
    Computer Use
    Technical Spec
    Interacts with the operating system and browser via mouse and keyboard control. Enables clicks, typing, screenshots, and scrolling.

    Examples

    Step 1

    screenshot -> Analyze image -> left_click at [x, y] to open the menu.

    Step 2

    type -> Enter 'https://google.com' in the address bar.

    Usage Strategy

    Before any click action, always request a screenshot to confirm visual coordinates. Ensure the cursor lands in the center of the target element.

    Test Prompt
    Protocol Block
    Element Discovery (Find)
    Technical Spec
    Locates specific elements on a web page using natural language descriptions. Useful for finding buttons, search bars, or products without knowing their coordinates.

    Examples

    Find the 'Add to cart' button.

    Agent: [Use find with query 'add to cart button'] -> Returns ref_123

    Usage Strategy

    Use 'find' when you need to interact with an element but are unsure of its exact position. Returns reference IDs that can be used with other tools.

    Test Prompt
    Protocol Block
    Page Structure (Read Page)
    Technical Spec
    Extracts the accessibility tree of the current page to understand its semantic structure. Shows interactive elements, labels, and hierarchies.

    Examples

    read_page with filter='interactive' to list only available buttons and links.

    Usage Strategy

    Use 'read_page' to get an overview of the DOM hierarchy. If the output is too large, use 'depth' or focus on a specific 'ref_id'.

    Test Prompt
    Protocol Block
    JavaScript Execution
    Technical Spec
    Runs JavaScript directly in the current web page context. Allows DOM manipulation, calling page functions, and extracting complex data.

    Examples

    javascript_tool -> text: 'window.appData.user.id' -> Returns the current user ID.

    Usage Strategy

    Use this tool for tasks visual tools cannot perform, such as extracting data from a global window variable or firing specific events.

    Test Prompt
    Protocol Block
    Network & Console Debugging
    Technical Spec
    Monitors network requests (XHR/Fetch) and browser console messages. Essential for diagnosing API errors or client-side logic failures.

    Examples

    read_console_messages with pattern='error' to find script load failures.

    Usage Strategy

    When a web action fails silently, check 'read_console_messages' and 'read_network_requests' to identify 4xx/5xx errors or JS exceptions.

    Test Prompt
    Protocol Block
    Bash Persistence
    Technical Spec
    Runs bash commands in a persistent session. Includes directory checks, handling spaces in paths, and safe execution.

    Examples

    npm install -> Installs project dependencies.

    Usage Strategy

    Use this block to interact with the operating system. Always verify the parent directory exists before creating files.

    Test Prompt
    Protocol Block
    Precise Editing
    Technical Spec
    Performs exact string replacements in files. Requires reading the file first to ensure context and indentation accuracy.

    Examples

    Read main.js -> Identify the function -> Use Edit to update the logic.

    Usage Strategy

    To edit code, read the file first. Capture enough context in 'old_string' so it is unique.

    Test Prompt
    Protocol Block
    GIF Automation Export
    Technical Spec
    Records and exports automation sessions as animated GIFs. Includes visual click indicators, drag paths, and action labels.

    Examples

    start_recording -> Run purchase sequence -> stop_recording -> export.

    Usage Strategy

    Start recording before a complex sequence of steps to document agent behavior or create automatic tutorials.

    Test Prompt
    Protocol Block
    Git Workflow
    Technical Spec
    Protocol for managing commits and pull requests. Includes diff analysis, concise message drafting, and repository standards compliance.

    Examples

    git status -> git diff -> git commit with a descriptive message.

    Usage Strategy

    When you finish a task, use this protocol to confirm changes. The assistant will analyze the log to follow the project's commit style.

    Test Prompt
    Protocol Block
    Computer Use
    Technical Spec
    Use a mouse and keyboard to interact with a web browser, and take screenshots. If you don't have a valid tab ID, use tabs_context first to get available tabs. * Whenever you intend to click on an element like an icon, you should consult a screenshot to determine the coordinates of the element before moving the cursor. * If you tried clicking on a program or link but it failed to load, even after waiting, try adjusting your click location so that the tip of the cursor visually falls on the element that you want to click. * Make sure to click any buttons, links, icons, etc with the cursor tip in the center of the element. Don't click boxes on their edges unless asked.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the computer protocol.

    Test Prompt
    Protocol Block
    Find
    Technical Spec
    Find elements on the page using natural language. Can search for elements by their purpose (e.g., "search bar", "login button") or by text content (e.g., "organic mango product"). Returns up to 20 matching elements with references that can be used with other tools. If more than 20 matches exist, you'll be notified to use a more specific query. If you don't have a valid tab ID, use tabs_context first to get available tabs.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the find protocol.

    Test Prompt
    Protocol Block
    Form_input
    Technical Spec
    Set values in form elements using element reference ID from the read_page tool. If you don't have a valid tab ID, use tabs_context first to get available tabs.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the form_input protocol.

    Test Prompt
    Protocol Block
    Get_page_text
    Technical Spec
    Extract raw text content from the page, prioritizing article content. Ideal for reading articles, blog posts, or other text-heavy pages. Returns plain text without HTML formatting. If you don't have a valid tab ID, use tabs_context first to get available tabs.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the get_page_text protocol.

    Test Prompt
    Protocol Block
    Gif_creator
    Technical Spec
    Manage GIF recording and export for browser automation sessions. Control when to start/stop recording browser actions (clicks, scrolls, navigation), then export as an animated GIF with visual overlays (click indicators, action labels, progress bar, watermark). All operations are scoped to the tab's group. When starting recording, take a screenshot immediately after to capture the initial state as the first frame. When stopping recording, take a screenshot immediately before to capture the final state as the last frame. For export, either provide 'coordinate' to drag/drop upload to a page element, or set 'download: true' to download the GIF.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the gif_creator protocol.

    Test Prompt
    Protocol Block
    Javascript_tool
    Technical Spec
    Execute JavaScript code in the context of the current page. The code runs in the page's context and can interact with the DOM, window object, and page variables. Returns the result of the last expression or any thrown errors. If you don't have a valid tab ID, use tabs_context first to get available tabs.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the javascript_tool protocol.

    Test Prompt
    Protocol Block
    Navigate
    Technical Spec
    Navigate to a URL, or go forward/back in browser history. If you don't have a valid tab ID, use tabs_context first to get available tabs.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the navigate protocol.

    Test Prompt
    Protocol Block
    Read_console_messages
    Technical Spec
    Read browser console messages (console.log, console.error, console.warn, etc.) from a specific tab. Useful for debugging JavaScript errors, viewing application logs, or understanding what's happening in the browser console. Returns console messages from the current domain only. If you don't have a valid tab ID, use tabs_context first to get available tabs. IMPORTANT: Always provide a pattern to filter messages - without a pattern, you may get too many irrelevant messages.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the read_console_messages protocol.

    Test Prompt
    Protocol Block
    Read_network_requests
    Technical Spec
    Read HTTP network requests (XHR, Fetch, documents, images, etc.) from a specific tab. Useful for debugging API calls, monitoring network activity, or understanding what requests a page is making. Returns all network requests made by the current page, including cross-origin requests. Requests are automatically cleared when the page navigates to a different domain. If you don't have a valid tab ID, use tabs_context first to get available tabs.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the read_network_requests protocol.

    Test Prompt
    Protocol Block
    Read_page
    Technical Spec
    Get an accessibility tree representation of elements on the page. By default returns all elements including non-visible ones. Output is limited to 50000 characters. If the output exceeds this limit, you will receive an error asking you to specify a smaller depth or focus on a specific element using ref_id. Optionally filter for only interactive elements. If you don't have a valid tab ID, use tabs_context first to get available tabs.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the read_page protocol.

    Test Prompt
    Protocol Block
    Resize_window
    Technical Spec
    Resize the current browser window to specified dimensions. Useful for testing responsive designs or setting up specific screen sizes. If you don't have a valid tab ID, use tabs_context first to get available tabs.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the resize_window protocol.

    Test Prompt
    Protocol Block
    Tabs_context
    Technical Spec
    Get context information about all tabs in the current tab group

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the tabs_context protocol.

    Test Prompt
    Protocol Block
    Tabs_create
    Technical Spec
    Creates a new empty tab in the current tab group

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the tabs_create protocol.

    Test Prompt
    Protocol Block
    Turn_answer_start
    Technical Spec
    Call this immediately before your text response to the user for this turn. Required every turn - whether or not you made tool calls. After calling, write your response. No more tools after this.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the turn_answer_start protocol.

    Test Prompt
    Protocol Block
    Update_plan
    Technical Spec
    Update the plan and present it to the user for approval before proceeding.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the update_plan protocol.

    Test Prompt
    Protocol Block
    Upload_image
    Technical Spec
    Upload a previously captured screenshot or user-uploaded image to a file input or drag & drop target. Supports two approaches: (1) ref - for targeting specific elements, especially hidden file inputs, (2) coordinate - for drag & drop to visible locations like Google Docs. Provide either ref or coordinate, not both.

    Usage Strategy

    Low-level automation tool for browser control. Integrated into the upload_image protocol.

    Test Prompt

    Visual Context Examples

    Explore the global gallery

    No direct visual matches found for this model yet. Browse our full collection for inspiration.

    Browse Gallery
    ¿Quieres llevar este flujo más lejos?

    Mantén el acceso gratuito a estos prompts. Premium desbloquea colecciones completas, plantillas avanzadas y más capacidad para reutilizar tus mejores flujos.

    Lo bloqueado se identifica antes de abrirlo; no interrumpimos la navegación con popups.

    Ver opciones Premium

    Engineering Masterclass

    1
    Context-Aware Strategy

    The protocols define how an agent should react to ambiguity. Always provide the "Strategy" to set the right technical boundaries.

    2
    Iterative Validation

    Don't apply all protocols at once. Start with the "Agency" or "Task Management" blocks and scale up as the task grows in complexity.

    3
    Actionable Examples

    Each example shows the expected input and output. Use them to train your own models or calibrate existing coding assistants.

    Back to Library

    Your ultimate collection of AI prompts. Gather inspiration, explore examples, and create with AI.

    Main hubs

    • Prompts
    • Images
    • Videos
    • Generate Videos
    • Templates
    • Animations
    • Prices
    • About
    • Affiliate

    Browse by type

    • Component builder
    • Component kits
    • Image Tags
    • Video Tags
    • Webs

    Popular topics

    • Music
    • Portfolio
    • Gaming
    • Travel
    • Nano Banana Pro

    Legal

    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Licenses Policy
    • Refund Policy
    • Affiliate Program Terms
    • Crowdfunding Terms

    Magzin LLC, 800 Third Avenue Associates, New York, NY, 10022, United States

    © 2026 Prompt Studio by Magzin. All rights reserved.