Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes the 1.3 schema used by the declarative agent manifest. The manifest is a machine-readable document that provides a Large Language Model (LLM) with the necessary instructions, knowledge, and actions to specialize in addressing a select set of user problems. Declarative agent manifests are referenced by the Microsoft 365 app manifest inside an app package. For details, see the Microsoft 365 app manifest reference.
Important
The latest version of the declarative agent manifest schema is version 1.4. We recommend new agents use the latest schema version.
Declarative agents are valuable in understanding and generating human-like text, making them versatile for tasks like writing and answering questions. This specification is focused on the declarative agent manifest that acts as a structured framework to specialize and enhance functionalities a specific user needs.
Changes from previous version
This schema version introduces the following changes from version 1.2:
- The Dataverse capability is added to the list of
capabilities
. It supports an array of objects in theknowledge_sources
field that contain Dataverse instances. - The Teams messages capability is added to the list of
capabilities
. It supports an array of objects in theurls
field that contain well-formatted Teams URLs to Team channel, team, or meeting chat. - The Email capability is added to the list of
capabilities
. It supports a shared mailbox and an array of folder IDs for the agent to search. - The People capability is added to the list of
capabilities
. This capability is unscoped and allows agents to search for information about people in an organization.
JSON schema
The schema described in this document can be found in JSON Schema format here.
Conventions
Relative references in URLs
Unless specified otherwise, all properties that are URLs MAY be relative references. Relative references in the manifest document are relative the ___location of the manifest document.
String length
Unless specified otherwise, all string properties SHOULD be limited to 4K characters. This string length doesn't confer any acceptable size for the entire document. Implementations are free to impose their own practical limits on manifest length.
Unrecognized properties
JSON objects defined in this document support only the described properties. Unrecognized or extraneous properties in any JSON object SHOULD make the entire document invalid.
String localization
Localizable strings can use a localization key instead of a literal value. The syntax is [[key_name]]
, where key_name
is the key name in the localizationKeys
property in your localization files. For details on localization, see Localize your agent.
Declarative agent manifest object
The root of the manifest document is a JSON object that covers required fields, capabilities, conversation starters, and actions.
The declarative agent manifest object contains the following properties.
Property | Type | Description |
---|---|---|
version |
String | Required. The schema version. Must be set to v1.3 . |
id |
String | Optional. |
name |
String | Required. Localizable. The name of the declarative agent. It MUST contain at least one nonwhitespace character and MUST be 100 characters or less. |
description |
String | Required. Localizable. The description of the declarative agent. It MUST contain at least one nonwhitespace character and MUST be 1,000 characters or less. |
instructions |
String | Required. The detailed instructions or guidelines on how the declarative agent should behave, its functions, and any behaviors to avoid. It MUST contain at least one nonwhitespace character and MUST be 8,000 characters or less. |
capabilities |
Array of Capabilities object | Optional. Contains an array of objects that define capabilities of the declarative agent. There MUST NOT be more than one of each derived type of Capabilities object in the array. |
conversation_starters |
Array of Conversation starter object | Optional. Title and Text are localizable. A list of examples of questions that the declarative agent can answer. There MUST NOT be more than six objects in the array. |
actions |
Array of Action object | Optional. A list of objects that identify API plugins that provide actions accessible to the declarative agent. |
Declarative agent manifest object example
The following JSON is an example of required fields within a declarative agent manifest.
{
"name" : "Repairs agent",
"description": "This declarative agent is meant to help track any tickets and repairs",
"instructions": "This declarative agent needs to look at my Service Now and Jira tickets/instances to help me keep track of open items"
}
Capabilities object
The capabilities object is the base type of objects in the capabilities
property in the declarative agent manifest object. The possible object types are:
- Web search object
- OneDrive and SharePoint object
- Copilot connectors object
- Graphic art object
- Code interpreter object
- Dataverse object
- Teams messages object
- Email object
- People object
Note
Declarative agents with any capabilities other than Web search are only available to users in tenants that allow metered usage or tenants that have a Microsoft 365 Copilot license.
Capabilities object example
{
"capabilities": [
{
"name": "WebSearch",
"sites": [
{
"url": "https://contoso.com"
}
]
},
{
"name": "OneDriveAndSharePoint",
"items_by_sharepoint_ids": [
{
"site_id": "bc54a8cc-8c2e-4e62-99cf-660b3594bbfd",
"web_id": "a5377427-f041-49b5-a2e9-0d58f4343939",
"list_id": "78A4158C-D2E0-4708-A07D-EE751111E462",
"unique_id": "304fcfdf-8842-434d-a56f-44a1e54fbed2"
}
],
"items_by_url": [
{
"url": "https://contoso.sharepoint.com/teams/admins/Documents/Folders1"
}
]
},
{
"name": "GraphConnectors",
"connections": [
{
"connection_id": "jiraTickets"
}
]
},
{
"name": "GraphicArt"
},
{
"name": "CodeInterpreter"
},
{
"name": "Dataverse",
"knowledge_sources": [
{
"host_name": "organization.crm.dynamics.com",
"skill": "DVCopilotSkillName",
"tables": [
{
"table_name": "account"
},
{
"table_name": "opportunity"
}
]
}
]
},
{
"name": "TeamsMessages",
"urls": [
{
"url": "https://teams.microsoft.com/l/channel/19%3ApO0102YGEBRSH6RziXCxEgB4mtb7-5hIlDzAjtxs_dg1%40thread.tacv2/G%C3%A9n%C3%A9ral?groupId=2670cf94-acf5-48f4-96d4-c58dd8937afc&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
}
]
},
{
"name": "People"
}
]
}
Web search object
Indicates that the declarative agent can search the web for grounding information.
The web search object contains the following properties.
Property | Type | Description |
---|---|---|
name |
String | Required. Must be set to WebSearch . |
sites |
Array of Site object | Optional. An array of objects that identify sites the agent is allowed to search. If this property is omitted, all the agent is allowed to search all sites. The array MUST NOT contain more than four items. |
Note
For details about data, privacy, and security for web search in Microsoft 365 Copilot Chat and Microsoft 365 Copilot, see Data, privacy, and security for web search.
Site object
Indicates a site that a declarative agent can search for content.
The site object contains the following properties.
Property | Type | Description |
---|---|---|
url |
String | Required. An absolute URL to a site to be searched for content. The URL MUST NOT contain more than two path segments (for example, https://contoso.com/projects/mark-8 is valid, https://contoso.com/projects/mark-8/beta-program isn't valid). The URL MUST NOT contain any query parameters. |
OneDrive and SharePoint object
Indicates that the declarative agent can search a user's SharePoint and OneDrive for grounding information.
The OneDrive and SharePoint object contains the following properties.
Property | Type | Description |
---|---|---|
name |
String | Required. Must be set to OneDriveAndSharePoint . |
items_by_sharepoint_ids |
Array of Items by SharePoint IDs object | Optional. An array of objects that identify SharePoint or OneDrive sources using IDs. If both the items_by_sharepoint_ids and the items_by_url properties are omitted, all OneDrive and Sharepoint sources in the organization are available to the declarative agent. |
items_by_url |
Array of Items by URL object | Optional. An array of objects that identify SharePoint or OneDrive sources by URL. If both the items_by_sharepoint_ids and the items_by_url properties are omitted, all OneDrive and Sharepoint sources in the organization are available to the declarative agent. |
For information about how to optimize SharePoint content for Copilot, see Optimize SharePoint content retrieval.
Items by SharePoint IDs object
The items by SharePoint IDs object contains the following properties.
Property | Type | Description |
---|---|---|
site_id |
String | Optional. A unique GUID identifier for a SharePoint or OneDrive site. |
web_id |
String | Optional. A unique GUID identifier for a specific web within a SharePoint or OneDrive site. |
list_id |
String | Optional. A unique GUID identifier for a list within a SharePoint or OneDrive site. |
unique_id |
String | Optional. A unique GUID identifier used to represent a specific entity or resource. |
search_associated_sites |
Boolean | Optional. Indicates whether to enable searching associated sites. This value is only applicable when the site_id value references a SharePoint HubSite. |
Tip
For information about how to get the unique identifiers for a SharePoint or OneDrive resource, see Retrieving capabilities IDs for declarative agent manifest.
Items by URL object
The items by URL object contains the following properties.
Property | Type | Description |
---|---|---|
url |
String | Optional. An absolute URL to a SharePoint or OneDrive resource. |
Copilot connectors object
Indicates that the declarative agent can search selected Microsoft 365 Copilot connectors (formerly Microsoft Graph connectors) for grounding information.
The Copilot connectors object contains the following properties.
Property | Type | Description |
---|---|---|
name |
String | Required. Must be set to GraphConnectors . |
connections |
Array of Connection object | Optional. An array of objects that identify the Copilot connectors available to the declarative agent. If this property is omitted, all Copilot connectors in the organization are available to the declarative agent. |
Connection object
Identifies a Copilot connector.
The connection object contains the following properties.
Property | Type | Description |
---|---|---|
connection_id |
String | Required. The unique identifier of the Copilot connector. |
Tip
For instructions for getting the unique identifier for a Copilot connector, see Retrieving capabilities IDs for declarative agent manifest.
Graphic art object
Indicates that the declarative agent can create images and art based on the text input from the user. For more information, see Image generator.
The graphic art object contains the following properties.
Property | Type | Description |
---|---|---|
name |
String | Required. Must be set to GraphicArt . |
Code interpreter object
Indicates that the declarative agent can generate and execute Python code to solve complex math problems, analyze data, generate visualizations, and more. For more information, see Code interpreter.
The code interpreter object contains the following properties.
Property | Type | Description |
---|---|---|
name |
String | Required. Must be set to CodeInterpreter . |
Dataverse object
Indicates that the declarative agent can search through data from tables in Microsoft Dataverse.
The Dataverse object contains the following properties.
Property | Type | Description |
---|---|---|
name |
String | Required. Must be set to Dataverse . |
knowledge_sources |
Array of knowledge sources | Optional. An array of objects that contain the identifiers, skills, and table names for Dataverse instances to include as knowledge. |
Knowledge sources object
Contains information about the Dataverse instances to include as knowledge.
The knowledge sources object contains the following properties.
Property | Type | Description |
---|---|---|
host_name |
String | Required. A unique identifier for the host in Dataverse. |
skill |
String | A unique identifier that defines the configuration for how the agent interacts with Dataverse knowledge. |
tables |
Array of tables | An array of tables to scope the agent's knowledge. |
Tables object
Contains the tables to scope the agent's knowledge.
The tables object contains the following property.
Property | Type | Description |
---|---|---|
table |
String | Required. A unique identifier for the table. |
Teams messages object
Indicates that the declarative agent can search through Teams channels, teams, meetings, 1:1 chats, and group chats.
The Teams messages object contains the following properties.
Property | Type | Description |
---|---|---|
name |
String | Required. Must be set to TeamsMessages . |
urls |
Array of Teams URLs | Optional. An array of objects that identify the URLs of the Teams channels, teams, or meeting chats available to the declarative agent. There MUST NOT be more than five objects in the array. Omitting this property allows an unscoped search through all of channels, teams, meetings, 1:1 chats, and group chats. |
Teams URL object
Identifies a Teams channel, team, or meeting chat.
The Teams URL object contains the following properties.
Property | Type | Description |
---|---|---|
url |
String | Required. A well-formatted Teams URL that links to either a Team channel, team, or meeting chat. |
Email object
Indicates that the declarative agent can search through email messages in the mailboxes that the user has access to.
The email object contains the following properties.
Property | Type | Description |
---|---|---|
name |
String | Required. Must be set to Email . |
shared_mailbox |
String | Optional. The SMTP address of a shared mailbox. |
folders |
String | Optional. An array of folder_id objects. |
Folders object
Contains the folders to scope the agent's knowledge.
The folders object contains the following property.
Property | Type | Description |
---|---|---|
folder_id |
String | Required. The well-known folder name or folder ID of the folder to reference. |
People object
Indicates that the declarative agent can search for information about people in the organization.
The people object contains the following property.
Property | Type | Description |
---|---|---|
name |
String | Required. Must be set to People . |
Conversation starters object
The conversation starters object is optional in the manifest. It contains hints that are displayed to the user to demonstrate how they can get started using the declarative agent.
The conversation starter object contains the following properties:
Property | Type | Description |
---|---|---|
text |
String | Required. Localizable. A suggestion that the user can use to obtain the desired result from the declarative agent. It MUST contain at least one nonwhitespace character. |
title |
String | Optional. Localizable. A unique title for the conversation starter. It MUST contain at least one nonwhitespace character. |
Conversation starters object example
{
"conversation_starters": [
{
"title": "My Open Repairs",
"text": "What open repairs are assigned to me?"
}
]
}
Actions object
Actions are an optional JSON object in the manifest. It acts as a developer input and can be considered as plugins.
The action object contains the following properties.
Property | Type | Description |
---|---|---|
id |
String | Required. A unique identifier for the action. It MAY be a GUID. |
file |
String | Required. A path to the API plugin manifest for this action. |
Actions object example
Declarative agent manifest example
The following example shows a declarative agent manifest file that uses most of the manifest properties described in this article.
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.3/schema.json",
"version": "v1.3",
"name": "Microsoft 365 Agents Toolkit declarative copilot",
"description": "Declarative copilot created with Agents Toolkit",
"instructions": "You are a repairs expert copilot. With the response from the listRepairs function, you **must** create a poem out of the repairs listed and always include their title and the assigned person. The poem **must** not use the quote markdown and use regular text. If the user is asking to create a new repair, use the createRepair function and do not add poems.",
"conversation_starters": [
{
"title": "Getting Started",
"text": "How can I get started with Agents Toolkit?"
},
{
"title": "Getting Help",
"text": "How can I get help with Agents Toolkit?"
}
],
"actions": [
{
"id": "repairsPlugin",
"file": "repairs-hub-api-plugin.json"
}
],
"capabilities": [
{
"name": "WebSearch",
"sites": [
{
"url": "https://contoso.com/projects/mark-8"
}
]
},
{
"name": "OneDriveAndSharePoint",
"items_by_url": [
{
"url": "https://contoso.sharepoint.com/sites/ProductSupport"
}
]
},
{
"name": "GraphConnectors",
"connections": [
{
"connection_id": "foodStore"
}
]
},
{
"name": "GraphicArt"
},
{
"name": "CodeInterpreter"
},
{
"name": "Dataverse",
"knowledge_sources": [
{
"host_name": "organization.crm.dynamics.com",
"skill": "DVCopilotSkillName",
"tables": [
{
"table_name": "account"
},
{
"table_name": "opportunity"
}
]
}
]
},
{
"name": "TeamsMessages",
"urls": [
{
"url": "https://teams.microsoft.com/l/channel/19%3ApO0102YGEBRSH6RziXCxEgB4mtb7-5hIlDzAjtxs_dg1%40thread.tacv2/G%C3%A9n%C3%A9ral?groupId=2670cf94-acf5-48f4-96d4-c58dd8937afc&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
}
]
},
{
"name": "Email",
"shared_mailbox": "sample@service.microsoft.com",
"folders": [
{
"folder_id": "sentitems"
}
]
},
{
"name": "People"
}
]
}