Implement a specification draft for MAIA, Machine Accessible Internet Applications
It's like , but for LLMs to be able to better interact with websites
Examples:
Buttons that navigate should show both the page where navigation will lead, as well as a reference for every other page on the next page and their possible interactions (like a tree of possible interactions paths)
Elements that need visual cue should better describe it to models than (like drag and drop, swipe, context menus, etc)
Perhaps even holding navigation/interaction tree in another file, but having MAIA being able to reference it (like a more descriptive sitemap)
Include references for meta/head tags that would make this possible
Think of all the other mechanics/interactions that could be made easier for LLMs
Assistant
User
okay, now improve it, think harder
Assistant
0.1: Machine Accessible Internet ApplicationsDraft Specification
Status of This Document
This is an early-stagedraftspecification for MAIA (Machine Accessible Internet Applications). aims to expand upon existing accessibility and semantic frameworks (such asWAI-ARIA) by providing additional, machine-centric metadata that large language models (LLMs) and other AI agents can use to better understand, navigate, and interact with complex web applications.
This draft is intended for discussion and prototyping. Itdoes notrepresent a finalized standard. Feedback is welcome.
Table of Contents
Introduction
Goals and Use Cases
Key Concepts and Terminology
MAIA Markup Elements4.1Global Attributes4.2Navigation and Interaction Trees4.3Extended Interaction Metadata
4.1Global Attributes
4.2Navigation and Interaction Trees
4.3Extended Interaction Metadata
External MAIA Map File
Head/Meta Tags for MAIA
Examples
Conformance
Security and Privacy Considerations
Change Log
Introduction
Goals and Use Cases
Key Concepts and Terminology
MAIA Markup Elements
4.1Global Attributes
4.2Navigation and Interaction Trees
4.3Extended Interaction Metadata
4.1Global Attributes
4.2Navigation and Interaction Trees
4.3Extended Interaction Metadata
External MAIA Map File
Head/Meta Tags for MAIA
Examples
Conformance
Security and Privacy Considerations
Change Log
Introduction
Modern web applications feature increasingly complex user interfaces and interaction patterns. While attributes can improve accessibility for assistive technologies, there is a growing need for a new set of metadata that speaks to machine agents—particularly large language models—enabling them to:
Understand possible interaction pathways (e.g., buttons, forms, drag-and-drop actions, swipes).
Predict and articulate the outcome of each user action (e.g., navigation steps).
Efficiently parse and manipulate application states.
Understand possible interaction pathways (e.g., buttons, forms, drag-and-drop actions, swipes).
Predict and articulate the outcome of each user action (e.g., navigation steps).
Efficiently parse and manipulate application states.
MAIA (Machine Accessible Internet Applications)is intended as a complementary specification to existing ARIA. It focuses on machine-readability and ensuring that advanced language models can confidently interpret complex UIs, whether they are assisting humans or performing actions on behalf of users.
Goals and Use Cases
Richer Machine-Readable ContextProvide LLMs with detailed semantic meaning of UI controls, including potential next states and pages that will load upon activation.
Structured Interaction PathsDefine a clear, machine-readable map of an application’s possible interaction and navigation paths (e.g., a “tree” of next possible states or screens).
Enhanced Visual/Behavioral CuesOffer more descriptive metadata for elements that rely on visual cues and complex interactions (drag-and-drop, swipe gestures, context menus).
Simplified Scripting and AutomationEnable AI-driven test frameworks and user agents to automate tasks across web applications with a clearer definition of possible paths and outcomes.
Extend Existing Accessibility WorkflowsEnsure synergy with existing ARIA specs, complementing them rather than replacing them.
Richer Machine-Readable ContextProvide LLMs with detailed semantic meaning of UI controls, including potential next states and pages that will load upon activation.
Structured Interaction PathsDefine a clear, machine-readable map of an application’s possible interaction and navigation paths (e.g., a “tree” of next possible states or screens).
Enhanced Visual/Behavioral CuesOffer more descriptive metadata for elements that rely on visual cues and complex interactions (drag-and-drop, swipe gestures, context menus).
Simplified Scripting and AutomationEnable AI-driven test frameworks and user agents to automate tasks across web applications with a clearer definition of possible paths and outcomes.
Extend Existing Accessibility WorkflowsEnsure synergy with existing ARIA specs, complementing them rather than replacing them.
Key Concepts and Terminology
LLM (Large Language Model): Refers to machine intelligence systems that are trained on large corpora of text, capable of generating and parsing human-like text.
: Additional or extended HTML attributes (or separate file references) that define the structure, behavior, and transitions within web applications.
Interaction Tree: A data structure (can be represented as JSON, XML, or embedded in the DOM) that outlines a set of UI states, possible user actions, and the resulting transitions.
LLM (Large Language Model): Refers to machine intelligence systems that are trained on large corpora of text, capable of generating and parsing human-like text.
: Additional or extended HTML attributes (or separate file references) that define the structure, behavior, and transitions within web applications.
Interaction Tree: A data structure (can be represented as JSON, XML, or embedded in the DOM) that outlines a set of UI states, possible user actions, and the resulting transitions.
4.1 Global Attributes
MAIA introduces severalglobal attributesthat can be applied toanyHTML element to enhance machine readability.
maia-labelPurpose: Analogous toaria-label, but specifically intended to provide an LLM with context for the element’s function or content.Usage:htmlCopy<buttonmaia-label="Submit the search query">SearchNotes: This can be redundant witharia-labelfor accessibility. Themaia-labelcan be more verbose or context-rich if needed.
Purpose: Analogous toaria-label, but specifically intended to provide an LLM with context for the element’s function or content.
Usage:htmlCopy<buttonmaia-label="Submit the search query">Search
Notes: This can be redundant witharia-labelfor accessibility. Themaia-labelcan be more verbose or context-rich if needed.
maia-purposePurpose: Indicates the functional role of the element (e.g., “navigation-button”, “primary-action”, “modal-trigger”).Usage:htmlCopy<buttonmaia-purpose="navigation-button"maia-target="/next-page">
Go to Next Page
Purpose: Indicates the functional role of the element (e.g., “navigation-button”, “primary-action”, “modal-trigger”).
Usage:htmlCopy<buttonmaia-purpose="navigation-button"maia-target="/next-page">
Go to Next Page
maia-targetPurpose: Specifies the next page URL or component state that will be loaded or triggered by activating the element.Usage:htmlCopy<amaia-target="/help-center"href="/help-center">Help CenterNotes: This is particularly useful for LLM-based user agents to know in advance the outcome of a click.
Purpose: Specifies the next page URL or component state that will be loaded or triggered by activating the element.
Usage:htmlCopy<amaia-target="/help-center"href="/help-center">Help Center
Notes: This is particularly useful for LLM-based user agents to know in advance the outcome of a click.
-next-stepsPurpose: Provides a reference (to an internal or external structure, or a unique ID) that describesthe set of possible next interactionsafter this element is activated.Usage:htmlCopy<buttonmaia-target="/dashboard"maia-next-steps="#dashboard-interactions">
Go to DashboardNotes: The actual next steps can be defined in a separateblock or in a standalone JSON/XML file (seeSection 5).
Purpose: Provides a reference (to an internal or external structure, or a unique ID) that describesthe set of possible next interactionsafter this element is activated.
Usage:htmlCopy<buttonmaia-target="/dashboard"maia-next-steps="#dashboard-interactions">
Go to Dashboard
Notes: The actual next steps can be defined in a separateblock or in a standalone JSON/XML file (seeSection 5).
maia-label
Purpose: Analogous toaria-label, but specifically intended to provide an LLM with context for the element’s function or content.
Usage:htmlCopy<buttonmaia-label="Submit the search query">Search
Notes: This can be redundant witharia-labelfor accessibility. Themaia-labelcan be more verbose or context-rich if needed.
Purpose: Analogous toaria-label, but specifically intended to provide an LLM with context for the element’s function or content.
htmlCopy<a -target="/help-center" href="/help-center">Help Center
Notes: This is particularly useful for LLM-based user agents to know in advance the outcome of a click.
-next-steps
Purpose: Provides a reference (to an internal or external structure, or a unique ID) that describesthe set of possible next interactionsafter this element is activated.
Usage:htmlCopy<buttonmaia-target="/dashboard"maia-next-steps="#dashboard-interactions">
Go to Dashboard
Notes: The actual next steps can be defined in a separateblock or in a standalone JSON/XML file (seeSection 5).
Purpose: Provides a reference (to an internal or external structure, or a unique ID) that describesthe set of possible next interactionsafter this element is activated.
htmlCopy<button -target="/dashboard" maia-next-steps="#dashboard-interactions">
Go to Dashboard
Notes: The actual next steps can be defined in a separateblock or in a standalone JSON/XML file (seeSection 5).
4.2 Navigation and Interaction Trees
MAIA supports detailed, hierarchical structures indicating possible interactions and transitions. These trees can be inlined (for simpler apps) or external (for larger systems).
htmlCopy
{
"componentName": "Dashboard",
"possibleActions": [
{
"elementId": "settingsButton",
"actionDescription": "Opens the settings panel",
"resultingPage": "/settings"
},
{
"elementId": "logoutLink",
"actionDescription": "Logs the user out and redirects to /login",
"resultingPage": "/login"
}
]
}
componentName: Identifies the name or type of the component/screen.
possibleActions: An array describing each actionable element, the expected behavior, and potential next page.
componentName: Identifies the name or type of the component/screen.
possibleActions: An array describing each actionable element, the expected behavior, and potential next page.
4.3 Extended Interaction Metadata
Some user interactions require more nuance than simple clicks or focus changes. MAIA introduces optional attributes that specify additional context:
maia-drag-handle(Boolean)Indicates that an element can be used to drag an item.htmlCopy<divmaia-drag-handle="true"maia-label="Drag from here to move the card">
Drag Handle
Indicates that an element can be used to drag an item.
maia-drop-target(String)Defines the valid item types that can be dropped onto an element, or references a set of valid item types.htmlCopy<divmaia-drop-target="file-card"maia-label="Drop a file card here to upload">
Drop Area
Defines the valid item types that can be dropped onto an element, or references a set of valid item types.
maia-gestureSpecifies the gesture required (e.g., “swipe-left”, “swipe-right”, “pinch”, etc.).htmlCopy<divmaia-gesture="swipe-left"maia-label="Swipe left to see next image">
Image Carousel
Specifies the gesture required (e.g., “swipe-left”, “swipe-right”, “pinch”, etc.).
maia-context-menuIndicates that a context menu (or right-click menu) is available on this element, with optional metadata linking to a description of menu <divmaia-context-menu="#context-menu-content"maia-label="Right-click for options">
File Name: report.docx<scripttype="application/json"id="context-menu-content">{"menuItems": [
{"label":"Rename","action":"/rename-file"},
{"label":"Delete","action":"/delete-file"}
]
}
Indicates that a context menu (or right-click menu) is available on this element, with optional metadata linking to a description of menu items.
maia-drag-handle(Boolean)
Indicates that an element can be used to drag an item.
Indicates that an element can be used to drag an item.
Larger, stateful applications may find it unwieldy to inline all possible interactions within the HTML. To address this, MAIA provides a format for external “map files,” which can be referenced inor from specific elements:
Conforming Documents: A conforming MAIA document or application:Must adhere to standard HTML5.May use MAIA attributes and structures as specified.Should not override or conflict with existing attributes.
Must adhere to standard HTML5.
May use attributes and structures as specified.
Should not override or conflict with existing attributes.
Conforming User Agents: A conforming user agent (e.g., an LLM-based browser or automation tool) should:Parse attributes and interpret them for navigation, labeling, and interaction.Respect any policies indicated through.
Parse attributes and interpret them for navigation, labeling, and interaction.
Respect any policies indicated through.
Graceful Degradation:Standard browsers or assistive technologies that do not support MAIA should still render the site in a functional manner.MAIA attributes and elements should remain inert for non-supporting user agents (e.g., older browsers).
Standard browsers or assistive technologies that do not support MAIA should still render the site in a functional manner.
attributes and elements should remain inert for non-supporting user agents (e.g., older browsers).
Conforming Documents: A conforming MAIA document or application:
Must adhere to standard HTML5.
May use attributes and structures as specified.
Should not override or conflict with existing attributes.
Must adhere to standard HTML5.
May use attributes and structures as specified.
Should not override or conflict with existing attributes.
Conforming User Agents: A conforming user agent (e.g., an LLM-based browser or automation tool) should:
Parse attributes and interpret them for navigation, labeling, and interaction.
Respect any policies indicated through.
Parse attributes and interpret them for navigation, labeling, and interaction.
Respect any policies indicated through.
Graceful Degradation:
Standard browsers or assistive technologies that do not support MAIA should still render the site in a functional manner.
attributes and elements should remain inert for non-supporting user agents (e.g., older browsers).
Standard browsers or assistive technologies that do not support MAIA should still render the site in a functional manner.
attributes and elements should remain inert for non-supporting user agents (e.g., older browsers).
Security and Privacy Considerations
Malicious or Overly Permissive MapsCareful consideration should be given to not expose sensitive application states or admin-only pages through the map.
Rate LimitingLLM-based agents could automate interactions at scale. Site owners may useor robots.txt-like conventions to limit or guide automation.
AuthenticationIf certain interaction paths are only valid for authenticated users, ensure that the MAIA map reflects access control restrictions (e.g., disclaimers about authentication requirements).
Sensitive DataAvoid placing personal or sensitive data in publicly visiblemaia-*attributes or map files.
Malicious or Overly Permissive MapsCareful consideration should be given to not expose sensitive application states or admin-only pages through the map.
Rate LimitingLLM-based agents could automate interactions at scale. Site owners may useor robots.txt-like conventions to limit or guide automation.
AuthenticationIf certain interaction paths are only valid for authenticated users, ensure that the MAIA map reflects access control restrictions (e.g., disclaimers about authentication requirements).
Sensitive DataAvoid placing personal or sensitive data in publicly visiblemaia-*attributes or map files.
Change Log
0.1 Draft
Initial release of MAIA concept with global attributes, external map file specification, and extended interaction metadata.
Initial release of MAIA concept with global attributes, external map file specification, and extended interaction metadata.
Summary
MAIAprovides anaugmented semantic layerfor web applications specifically tailored to machine agents like LLMs. By definingglobal attributes,interaction trees, andexternal map references, developers can expose detailed, navigable, and comprehensible state transitions and UI interactions. This fosters more robust automation, testing, and user assistance experiences, while building upon the solid foundation of traditional web standards.
End of MAIA 0.1 Draft
Below is animprovedandexpandeddraft of theMAIA (Machine Accessible Internet Applications) Specification, building on the original 0.1 version. This version introduces deeper structural elements, a recommended JSON schema for external files, and considerations for more complex web application patterns (SPAs, role-based content, wizard flows, etc.). All additions and revisions are aimed at enabling large language models (LLMs) and similar AI agents to interact with web applications in a more robust, context-aware manner.
0.2: Machine Accessible Internet Applications
Draft Specification
Status of This Document
This is aworking draftofMAIA 0.2, an exploratory specification aimed at empowering AI-driven user agents—particularly large language models—to navigate and interact with websites more effectively than is possible with current semantic or accessibility-focused standards alone.
Warning: This specification is a prototype. Substantial changes may occur before it can be considered stable.
Table of Contents
Introduction
Goals and Use Cases
Key Concepts and Terminology
MAIA Markup and Conditional Access Attributes4.4Form Extensions and Validation
4.1Global Attributes
4.2Extended Interaction Metadata
4.3Role-Based and Conditional Access Attributes
4.4Form Extensions and Validation
Navigation and Interaction Trees
External MAIA Map / Site Files6.1JSON Schema for MAIA Site Maps6.2Modular/Partial Maps
6.1JSON Schema for
6.2Modular/Partial Maps
Complex SPA Patterns
Head/Meta Tags for MAIA
Security and Privacy Considerations
Examples
Introduction
Goals and Use Cases
Key Concepts and Terminology
MAIA Markup Elements
4.1Global Attributes
4.2Extended Interaction Metadata
4.3Role-Based and Conditional Access Attributes
4.4Form Extensions and Validation
4.1Global Attributes
4.2Extended Interaction Metadata
4.3Role-Based and Conditional Access Attributes
4.4Form Extensions and Validation
Navigation and Interaction Trees
External MAIA Map / Site Files
6.1JSON Schema for
6.2Modular/Partial Maps
6.1JSON Schema for
6.2Modular/Partial Maps
Complex SPA Patterns
Head/Meta Tags for MAIA
Security and Privacy Considerations
Examples
10.1Simple Navigation Button
10.2Drag and
10.3Complex Single-Page Application Flow
10.1Simple Navigation Button
10.2Drag and
10.3Complex Single-Page Application Flow
Conformance
Change Log
Conformance
Change Log
Introduction
Modern websites and web applications have grown in complexity, offering sophisticated UI interactions, dynamic updates, and context-driven user flows. While existing semantic standards (e.g., ) improve accessibility for assistive technologies, (Machine Accessible Internet Applications)focuses specifically on making these interfaces more understandable tomachine agents—especially large language models (LLMs).
By providing detailed metadata on navigation paths, triggers, application states, and expected behaviors, MAIA aspires to empower these agents with the ability to:
Understand and describe potential user actions and outcomes.
Automate tasks (e.g., form completion, multi-step workflows) with minimal guesswork.
Adhere to role-based or permission-based constraints to prevent invalid or unwanted actions.
Avoid visual ambiguity by providing machine-readable explanations of interactive gestures (drag, swipe, context menus, etc.).
Understand and describe potential user actions and outcomes.
Automate tasks (e.g., form completion, multi-step workflows) with minimal guesswork.
Adhere to role-based or permission-based constraints to prevent invalid or unwanted actions.
Avoid visual ambiguity by providing machine-readable explanations of interactive gestures (drag, swipe, context menus, etc.).
Goals and Use Cases
Expose Full Interaction GraphsLet LLMs and other agents see what’s “behind” each click or gesture, enabling them to build a mental model of the UI.
Let LLMs and other agents see what’s “behind” each click or gesture, enabling them to build a mental model of the UI.
Support Complex UI StatesMany web apps (SPAs, wizard flows, dynamic modals) rely on transitions that aren’t tied to classic page reloads. MAIA helps define those ephemeral or dynamic states.
Many web apps (SPAs, wizard flows, dynamic modals) rely on transitions that aren’t tied to classic page reloads. MAIA helps define those ephemeral or dynamic states.
Facilitate Role/Permission AwarenessProvide a way to communicate that certain buttons, links, or sections are only relevant or clickable for authorized roles.
Provide a way to communicate that certain buttons, links, or sections are only relevant or clickable for authorized roles.
Enhance Discoverability of Visual InteractionsSubtle interactions (like drag handles, swipe gestures) should have explicit, machine-readable cues.
Subtle interactions (like drag handles, swipe gestures) should have explicit, machine-readable cues.
Seamless Integration with ARIAMAIA complements ARIA rather than competing with it; existingaria-*attributes remain vital for screen readers and accessibility.
MAIA complements rather than competing with it; existingaria-*attributes remain vital for screen readers and accessibility.
Expose Full Interaction Graphs
Let LLMs and other agents see what’s “behind” each click or gesture, enabling them to build a mental model of the UI.
Let LLMs and other agents see what’s “behind” each click or gesture, enabling them to build a mental model of the UI.
Support Complex UI States
Many web apps (SPAs, wizard flows, dynamic modals) rely on transitions that aren’t tied to classic page reloads. MAIA helps define those ephemeral or dynamic states.
Many web apps (SPAs, wizard flows, dynamic modals) rely on transitions that aren’t tied to classic page reloads. MAIA helps define those ephemeral or dynamic states.
Facilitate Role/Permission Awareness
Provide a way to communicate that certain buttons, links, or sections are only relevant or clickable for authorized roles.
Provide a way to communicate that certain buttons, links, or sections are only relevant or clickable for authorized roles.
Enhance Discoverability of Visual Interactions
Subtle interactions (like drag handles, swipe gestures) should have explicit, machine-readable cues.
Subtle interactions (like drag handles, swipe gestures) should have explicit, machine-readable cues.
Seamless Integration with complements rather than competing with it; existingaria-*attributes remain vital for screen readers and accessibility.
MAIA complements rather than competing with it; existingaria-*attributes remain vital for screen readers and accessibility.
Key Concepts and Terminology
LLM (Large Language Model): A machine learning system capable of parsing and generating human-like text, often used for conversation-based user interactions.
Attributes: HTML or XML attributes used to annotate interactive elements with machine-accessible metadata.
MAIA Map / Site Files: External files (e.g., JSON) that define application routes, UI states, and transitions in more detail.
Interaction Tree: A structured representation (in JSON or XML) of possible user actions within a single page or across multiple pages.
LLM (Large Language Model): A machine learning system capable of parsing and generating human-like text, often used for conversation-based user interactions.
Attributes: HTML or XML attributes used to annotate interactive elements with machine-accessible metadata.
MAIA Map / Site Files: External files (e.g., JSON) that define application routes, UI states, and transitions in more detail.
Interaction Tree: A structured representation (in JSON or XML) of possible user actions within a single page or across multiple pages.
4.1 Global Attributes
MAIA introducesglobal attributesthat can appear on any valid HTML element. These attributes are purely informational: they do not override native browser behavior, but convey extra semantic detail to machine agents.
-labelDescription: A human-friendly, descriptive label for the element’s primary function or purpose, specifically aimed at LLM understanding.Example:htmlCopy<buttonmaia-label="Confirm order and proceed to payment">Confirm Order
Description: A human-friendly, descriptive label for the element’s primary function or purpose, specifically aimed at LLM understanding.
Example:htmlCopy<buttonmaia-label="Confirm order and proceed to payment">Confirm Order
maia-purposeDescription: A short code or keyword describing the element’s intended usage (e.g., “navigation-button”, “primary-action”, “modal-trigger”).Example:htmlCopy<buttonmaia-purpose="modal-trigger"maia-label="Open the advanced settings modal">
Advanced Settings
Description: A short code or keyword describing the element’s intended usage (e.g., “navigation-button”, “primary-action”, “modal-trigger”).
Example:htmlCopy<buttonmaia-purpose="modal-trigger"maia-label="Open the advanced settings modal">
Advanced Settings
maia-targetDescription: Indicates the destination or resulting state of an action. Can be a URL, a named route, a component ID, or a reference to another part of the page.Example:htmlCopy<ahref="/profile"maia-target="/profile"maia-label="Go to user profile">Profile
Description: Indicates the destination or resulting state of an action. Can be a URL, a named route, a component ID, or a reference to another part of the page.
Example:htmlCopy<ahref="/profile"maia-target="/profile"maia-label="Go to user profile">Profile
maia-next-stepsDescription: References a block of or an external resource describing thepossible subsequent interactionsif this element is activated.Example:htmlCopy<buttonmaia-target="/dashboard"maia-next-steps="#dashboardInteractions"maia-label="Navigate to user dashboard">
Dashboard<scripttype="application/json"id="dashboardInteractions">{"componentName":"Dashboard","possibleActions": [
{"elementId":"settingsButton","actionDescription":"Opens the settings panel","resultingPage":"/settings"}
]
}
Description: References a block of or an external resource describing thepossible subsequent interactionsif this element is activated.
Example:htmlCopy<buttonmaia-target="/dashboard"maia-next-steps="#dashboardInteractions"maia-label="Navigate to user dashboard">
Dashboard<scripttype="application/json"id="dashboardInteractions">{"componentName":"Dashboard","possibleActions": [
{"elementId":"settingsButton","actionDescription":"Opens the settings panel","resultingPage":"/settings"}
]
}
maia-label
Description: A human-friendly, descriptive label for the element’s primary function or purpose, specifically aimed at LLM understanding.
Example:htmlCopy<buttonmaia-label="Confirm order and proceed to payment">Confirm Order
Description: A human-friendly, descriptive label for the element’s primary function or purpose, specifically aimed at LLM understanding.
htmlCopy<button
maia-purpose="modal-trigger"
maia-label="Open the advanced settings modal"
Advanced Settings
maia-target
Description: Indicates the destination or resulting state of an action. Can be a URL, a named route, a component ID, or a reference to another part of the page.
Example:htmlCopy<ahref="/profile"maia-target="/profile"maia-label="Go to user profile">Profile
Description: Indicates the destination or resulting state of an action. Can be a URL, a named route, a component ID, or a reference to another part of the page.
Description: References a block of or an external resource describing thepossible subsequent interactionsif this element is activated.
Example:htmlCopy<buttonmaia-target="/dashboard"maia-next-steps="#dashboardInteractions"maia-label="Navigate to user dashboard">
Dashboard<scripttype="application/json"id="dashboardInteractions">{"componentName":"Dashboard","possibleActions": [
{"elementId":"settingsButton","actionDescription":"Opens the settings panel","resultingPage":"/settings"}
]
}
Description: References a block of or an external resource describing thepossible subsequent interactionsif this element is activated.
htmlCopy<button
maia-target="/dashboard"
-next-steps="#dashboardInteractions"
maia-label="Navigate to user dashboard"
Dashboard
4.2 Extended Interaction Metadata
For non-trivial interactions that go beyond basic clicks or navigation:
maia-drag-handle(Boolean)Use: Marks an element as draggable or the “handle” for a drag operation.Example:htmlCopy<divmaia-drag-handle="true"maia-label="Drag handle for reordering the item">⋮
Use: Marks an element as draggable or the “handle” for a drag operation.
Example:htmlCopy<divmaia-drag-handle="true"maia-label="Drag handle for reordering the item">⋮
maia-drop-target(String)Use: Indicates valid item types or references that can be dropped on this element.Example:htmlCopy<divmaia-drop-target="file-card"maia-label="Drop file cards here to upload">
Drop Zone
Use: Indicates valid item types or references that can be dropped on this element.
Example:htmlCopy<divmaia-drop-target="file-card"maia-label="Drop file cards here to upload">
Drop Zone
maia-gestureUse: Describes a gesture-based action (swipe-left, swipe-right, pinch, etc.).Example:htmlCopy<divmaia-gesture="swipe-left"maia-label="Swipe left to reveal additional images">
Image Carousel
Use: Describes a gesture-based action (swipe-left, swipe-right, pinch, etc.).
Example:htmlCopy<divmaia-gesture="swipe-left"maia-label="Swipe left to reveal additional images">
Image Carousel
maia-context-menuUse: Signals that right-click or long-press triggers a context menu, linking to JSON data describing its items.Example:htmlCopy<divmaia-context-menu="#fileContextMenu"maia-label="Right-click for file operations">
cx<scripttype="application/json"id="fileContextMenu">{"menuItems": [
{"label":"Rename","action":"/rename-file"},
{"label":"Delete","action":"/delete-file"}
]
}
Use: Signals that right-click or long-press triggers a context menu, linking to JSON data describing its items.
Example:htmlCopy<divmaia-context-menu="#fileContextMenu"maia-label="Right-click for file operations">
cx<scripttype="application/json"id="fileContextMenu">{"menuItems": [
{"label":"Rename","action":"/rename-file"},
{"label":"Delete","action":"/delete-file"}
]
}
maia-drag-handle(Boolean)
Use: Marks an element as draggable or the “handle” for a drag operation.
Example:htmlCopy<divmaia-drag-handle="true"maia-label="Drag handle for reordering the item">⋮
Use: Marks an element as draggable or the “handle” for a drag operation.
htmlCopy<div maia-context-menu="#fileContextMenu" -label="Right-click for file operations">
cx
4.3 Role-Based and Conditional Access Attributes
Complex apps often have role- or permission-based elements. To reduce guesswork for LLMs, provides:
maia-role-requiredDescription: A comma-separated list of user roles (or permission names) required to interact with the element.Example:htmlCopy<buttonmaia-label="Delete user account"maia-role-required="admin,-target="/delete-user?id=123">
Delete
Description: A comma-separated list of user roles (or permission names) required to interact with the element.
Example:htmlCopy<buttonmaia-label="Delete user account"maia-role-required="admin,-target="/delete-user?id=123">
Delete
maia-conditional-visibilityDescription: References a condition or set of conditions under which this element is visible or enabled.Example:htmlCopy<buttonmaia-label="Submit changes"maia-conditional-visibility="formIsValid"maia-target="/submit-changes">
Submit
Description: References a condition or set of conditions under which this element is visible or enabled.
These attributes help an LLM-based agent decide whether it should even attempt to interact with certain UI parts, or to prompt for login/permissions first.
4.4 Form Extensions and Validation
To assist LLMs in filling out forms correctly, proposes additional attributes:
maia-input-intentDescription: Explains the semantic purpose of the input—e.g., “email-address”, “phone-number”, “search-query”.Example:htmlCopy<inputtype="text"maia-input-intent="email-address"maia-label="Your email address"placeholder="e.g. "/>
Description: Explains the semantic purpose of the input—e.g., “email-address”, “phone-number”, “search-query”.
maia-validation-patternDescription: A regex or named rule for validation.Example:htmlCopy<inputtype="text"maia-label="Enter your 5-digit ZIP code"maia-validation-pattern="^\d{5}$"placeholder="12345"/>
Description: A regex or named rule for validation.
Example:htmlCopy<inputtype="text"maia-label="Enter your 5-digit ZIP code"maia-validation-pattern="^\d{5}$"placeholder="12345"/>
maia-required(Boolean)Description: Indicates that the field must be filled before form submission. specifically hints to LLMs.Example:htmlCopy<inputtype="password"maia-label="Your account password"maia-required="true"/>
Description: Indicates that the field must be filled before form submission. specifically hints to LLMs.
htmlCopy
{
"componentName": "Dashboard",
"possibleActions": [
{
"elementId": "settingsButton",
"actionDescription": "Opens the settings panel",
"resultingPage": "/settings",
"conditions": ["userLoggedIn", "userRoleAdmin"]
},
{
"elementId": "logoutLink",
"actionDescription": "Logs the user out and redirects to /login",
"resultingPage": "/login"
}
]
}
Key additions:
conditionsfield can define role requirements or other application states needed for the action to be valid.
TheresultingPagemight also reference subroutes or state changes if it’s a single-page application.
conditionsfield can define role requirements or other application states needed for the action to be valid.
TheresultingPagemight also reference subroutes or state changes if it’s a single-page application.
External MAIA Map / Site Files
For large applications with multiple routes and states, you can maintain an external MAIA file (JSON, XML, etc.) describing the entire application’s interaction graph.
routes: An array of route definitions, each with:path: The URL path or route name (for : Identifies the UI component for the scription: Human-friendly description for LLM summarization.possibleInteractions: Describes clickable buttons, links, or gestures on the route.
path: The URL path or route name (for SPAs).
componentName: Identifies the UI component for the route.
description: Human-friendly description for LLM summarization.
possibleInteractions: Describes clickable buttons, links, or gestures on the route.
appName: Application name.
maiaVersion: Version of the MAIA spec in use.
routes: An array of route definitions, each with:
path: The URL path or route name (for SPAs).
componentName: Identifies the UI component for the route.
description: Human-friendly description for LLM summarization.
possibleInteractions: Describes clickable buttons, links, or gestures on the route.
path: The URL path or route name (for SPAs).
componentName: Identifies the UI component for the route.
description: Human-friendly description for LLM summarization.
possibleInteractions: Describes clickable buttons, links, or gestures on the route.
6.2 Modular/Partial Maps
Larger apps can split the map into multiple files. For example,/maia-site-map.jsoncould reference sub-maps:
Points to an external map describing your site’s routes and interactions.
Points to an external map describing your site’s routes and interactions.
Describes global constraints or best practices for bots/LLMs (e.g., rate limits, disclaimers, user data handling).
Describes global constraints or best practices for bots/LLMs (e.g., rate limits, disclaimers, user data handling).
Declares which version of the MAIA spec is in use.
which version of the MAIA spec is in use.
Points to an external map describing your site’s routes and interactions.
Points to an external map describing your site’s routes and interactions.
Describes global constraints or best practices for bots/LLMs (e.g., rate limits, disclaimers, user data handling).
Describes global constraints or best practices for bots/LLMs (e.g., rate limits, disclaimers, user data handling).
which version of the MAIA spec is in use.
which version of the MAIA spec is in use.
Security and Privacy Considerations
Sensitive Data ExposureAvoid embedding private or PII inmaia-*attributes or public ore only the minimal necessary interaction details for LLM navigation.
Avoid embedding private or PII inmaia-*attributes or public JSON.
Store only the minimal necessary interaction details for LLM navigation.
Role/Permission LeaksCarefully handlemaia-role-requiredattributes. Do not inadvertently expose admin or privileged routes that should be hidden from general audiences.
Carefully handlemaia-role-requiredattributes. Do not inadvertently expose admin or privileged routes that should be hidden from general audiences.
Bot AbusesBy exposing a complete UI map, automated tools might more easily script interactions at scale. Employ rate limiting, captcha, or authentication gates if needed.
By exposing a complete UI map, automated tools might more easily script interactions at scale. Employ rate limiting, captcha, or authentication gates if needed.
TamperingMalicious scripts could alter attributes to mislead LLMs. Consider digital signatures or secure server-side generation for critical attributes.
Malicious scripts could alter attributes to mislead LLMs. Consider digital signatures or secure server-side generation for critical attributes.
Sensitive Data Exposure
Avoid embedding private or PII inmaia-*attributes or public JSON.
Store only the minimal necessary interaction details for LLM navigation.
Avoid embedding private or PII inmaia-*attributes or public JSON.
Store only the minimal necessary interaction details for LLM navigation.
Role/Permission Leaks
Carefully handlemaia-role-requiredattributes. Do not inadvertently expose admin or privileged routes that should be hidden from general audiences.
Carefully handlemaia-role-requiredattributes. Do not inadvertently expose admin or privileged routes that should be hidden from general audiences.
Bot Abuses
By exposing a complete UI map, automated tools might more easily script interactions at scale. Employ rate limiting, captcha, or authentication gates if needed.
By exposing a complete UI map, automated tools might more easily script interactions at scale. Employ rate limiting, captcha, or authentication gates if needed.
Tampering
Malicious scripts could alter attributes to mislead LLMs. Consider digital signatures or secure server-side generation for critical attributes.
Malicious scripts could alter attributes to mislead LLMs. Consider digital signatures or secure server-side generation for critical attributes.
Conforming DocumentsMust adhere to y use any subset or superset ofmaia-*attributes relevant to their ould not interfere with existingaria-*attributes or native browser behaviors.
Must adhere to HTML5.
<DATE_TIME> use any subset or superset ofmaia-*attributes relevant to their needs.
Should not interfere with existingaria-*attributes or native browser behaviors.
Conforming User AgentsMust parse attributes and be able to interpret them ould consult anycontent for st handle partial or modular site maps gracefully.
Must parse attributes and be able to interpret them logically.
Should consult anycontent for policies.
Must handle partial or modular site maps gracefully.
Graceful DegradationBrowsers or assistive technologies that do not implement attributes should remain l core site functionality should still be accessible without attributes.
Browsers or assistive technologies that do not implement attributes should remain unaffected.
All core site functionality should still be accessible without attributes.
Conforming Documents
Must adhere to HTML5.
<DATE_TIME> use any subset or superset ofmaia-*attributes relevant to their needs.
Should not interfere with existingaria-*attributes or native browser behaviors.
Must adhere to HTML5.
<DATE_TIME> use any subset or superset ofmaia-*attributes relevant to their needs.
Should not interfere with existingaria-*attributes or native browser behaviors.
Conforming User Agents
Must parse attributes and be able to interpret them logically.
Should consult anycontent for policies.
Must handle partial or modular site maps gracefully.
Must parse attributes and be able to interpret them logically.
Should consult anycontent for policies.
Must handle partial or modular site maps gracefully.
Graceful Degradation
Browsers or assistive technologies that do not implement attributes should remain unaffected.
All core site functionality should still be accessible without attributes.
Browsers or assistive technologies that do not implement attributes should remain unaffected.
All core site functionality should still be accessible without attributes.
Change Log
0.2 DraftNew: Role-based attributes (-role-required,-conditional-visibility).New: Form extensions (maia-input-intent,-validation-pattern,-required).Enhanced: JSON schema for site maps.Enhanced: SPA patterns (multi-state flows, wizard steps).
MAIA 0.2offers a more comprehensive structure for exposing web application UI flows, states, and permissions to machine-based agents—especially large language models. Itsmarkup attributesandexternal site mapstogether create a rich environment where AI can:
Understand gestures, drag-and-drop, and context menus in a direct, machine-friendly way.
While stillexperimental, lays the groundwork for a future where AI agents and user interfaces can collaborate in a transparent, context-rich manner. Feedback and iteration areencouragedto refine this emerging standard.
“Implement a specification draft for MAIA, Machine Accessible Internet Applications It's….” Conversation with o1, from the ShareChat — Chatbot Conversations in the Wild dataset. The Chat Archive, 2026. https://thechatarchive.com/c/01m84tmh5cke3wzwxtp5f8kazk