Manages administrator-created AI tool instances in Orchard Core, covering HTTP API requests, documentation search, website search, data source search, workflow tools, MCP exposure, permissions, and custom sources.
Ships in crestapps-orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An AI tool instance is a function an administrator creates from a developer-registered source. The source describes a capability once (for example "call an HTTP API"); each named instance has its own description, settings, permission, and function name.
| Concept | Registered by | Cardinality |
|---|---|---|
| Tool | Developer, in code | One function per tool |
| Tool instance source | Developer, in code | Blueprint only, never callable directly |
| Tool instance | Administrator, in the admin | Many per source, one function each |
CrestApps.OrchardCore.AI.ToolInstances (depends on CrestApps.OrchardCore.AI). It adds Artificial Intelligence > Tool Instances.tool_instance_ plus the sanitized name, with a short hash suffix when sanitizing changed the name or it is too long. The MCP allow-list accepts either the name or the function name.| Source | Registered when | Settings object |
|---|---|---|
http-api-request | Always | HttpApiRequestToolSettings |
sitemap-documentation | Always | SitemapDocumentationToolSettings |
search-index-documentation | Always | SearchIndexDocumentationToolSettings |
algolia-documentation | Always | AlgoliaDocumentationToolSettings |
website-search | Always | WebsiteSearchToolSettings |
data-source-search | CrestApps.OrchardCore.AI.DataSources is enabled | DataSourceSearchToolSettings |
Workflow | OrchardCore.Workflows is enabled | WorkflowToolSettings (WorkflowTypeId, TimeoutSeconds) |
The documentation, website, and data source sources sit in the Knowledgebase category.
Calls a configured endpoint and returns the response to the model.
BaseUrl, optional PathTemplate (with {parameterName} tokens), HttpMethod (GET, POST, PUT, PATCH, DELETE), TimeoutSeconds, DefaultHeaders.AllowModelProvidedPath, AllowModelProvidedQuery, AllowModelProvidedBody (all default true). Turn off anything the instance should not expose.AuthenticationType None, ApiKey (ApiKeyHeaderName, ApiKey), Bearer (BearerToken), Basic (Username, Password), or OAuth2 (TokenEndpoint, ClientId, ClientSecret, Scope).Declared parameters (AIToolInstanceParametersMetadata.Parameters) shape the function schema the model sees. Each parameter has a Name, Description, Type (String, Integer, Number, Boolean, Array, Object), Required, DefaultValue, AllowedValues, and:
Fill - Model (the model supplies it), Fixed (a pinned value, optionally IsSecret and encrypted), or Context (resolved server-side from ContextKey: user.id, user.name, user.email, resource.id, now.utc).Binding - where the value goes: Query:name, Path:name, Header:name, or Body:name.Use Context fill for anything identifying the caller so the model cannot impersonate another user.
| Source | Best for | Fields |
|---|---|---|
| Documentation search (sitemap) | Sites with sitemap.xml (Docusaurus, MkDocs) | BaseUrl, optional SitemapUrl (default {BaseUrl}/sitemap.xml), MaxResults, MaxPages |
| Documentation search (search index) | Sites publishing a prebuilt JSON index (MkDocs or Docusaurus Lunr, detected automatically) | BaseUrl, optional IndexUrl (default {BaseUrl}/search/search_index.json), MaxResults |
| Documentation search (Algolia DocSearch) | Sites wired to hosted DocSearch | ApplicationId, search-only ApiKey (encrypted), IndexName, MaxResults |
| Website search (live API) | WordPress and any site with its own search API | BaseUrl, SearchPath (/wp-json/wp/v2/search), QueryParameter (search), ExtraQuery (_embed=1), ResultsPath, TitlePath (title), UrlPath (url), SnippetPath (_embedded.self[0].excerpt.rendered), MaxResults |
The sitemap and search index sources crawl or download once, cache the corpus, and reuse it until the instance settings change. Website search keeps no corpus and queries the site live, so there is no cold start and the site does the ranking. Never use an Algolia write key.
Runs a workflow type that starts with the AI Tool Called event and returns its Output as JSON
({"status":"accepted"} when it halts on a blocking activity, {"status":"error","message":...} when it
faults). Declared parameters are bound by the AI, a fixed value or a conversation key such as
conversation.customer_address or variables.<name>; without parameters the tool takes one request
string. Time limit on calls (TimeoutSeconds) caps how long a phone call waits (8 seconds when empty, 0
for no limit). Details are in orchardcore-ai-conversations.
Turns one existing AI data source into a callable vector search, so the model searches a knowledge base only when it decides to (unlike a data source attached to a profile, which retrieves on every turn).
DataSourceId (required), RetrievalMode (Chunk or Hierarchical), Strictness (1-5), TopNDocuments (3-20), and an OData Filter validated on save.[doc:N] citations.orchardcore-ai-data-sources.| Surface | Where | Storage |
|---|---|---|
| AI Profile | Capabilities tab, Tool instances | AIToolInstanceMetadata |
| AI Profile Template (Profile source) | Capabilities tab | Copied to profiles created from the template |
| Chat Interaction | Capabilities tab | Carried over by Chat with preset settings |
| Post-session processing | Data processing & metrics tab, Post-session processing card | Separate from the live selection |
| AI Completion using Direct Config task | Capabilities tab (needs Chat Interactions and Workflows) | The task's embedded interaction |
| MCP Server | Settings > Artificial Intelligence, Exposed tools card, Tool instances | McpServerOptions.Tools |
| WebMCP | Settings > Artificial Intelligence, Exposed tools card, or a content item's WebMCP tools part | See orchardcore-ai-webmcp |
Selectors list only the instances the editing user may access. To expose documentation sites to external AI agents, select their instances on the MCP Server card (orchardcore-ai-mcp-server).
| Permission | Meaning |
|---|---|
ManageAIToolInstances | Reach the list and manage your own instances |
ManageAIToolInstancesCreatedByOthers | Also manage other users' instances; implies ManageAIToolInstances |
AccessAITool_{functionName} | Generated per instance; required to select it, and checked again when a chat interaction sends a message |
The feature uses the default tool instance registry: access is enforced when an instance is selected in an editor (and re-checked for chat interactions at send time), not on every AI profile session. See orchardcore-ai-tools for the full access model.
With OrchardCore.Deployment enabled, the AI Tool Instances deployment step exports all or selected instances. Each source's IAIToolInstanceHandler blanks its secrets (HTTP API key, bearer token, password, client secret and cached OAuth tokens; the Algolia API key). Re-enter credentials after import.
The AIToolInstances step matches each entry by ItemId, then by Name; a match is updated, otherwise a new instance is created from Source, which must be registered on the target tenant.
{
"steps": [
{
"name": "AIToolInstances",
"instances": [
{
"Source": "http-api-request",
"Name": "order-lookup-api",
"Description": "Looks up a customer's order status by order number.",
"Properties": {
"HttpApiRequestToolSettings": {
"BaseUrl": "https://api.example.com/orders",
"PathTemplate": "{orderNumber}",
"HttpMethod": "GET",
"AllowModelProvidedPath": false,
"AllowModelProvidedQuery": false,
"AllowModelProvidedBody": false,
"TimeoutSeconds": 10
},
"AIToolInstanceParametersMetadata": {
"Parameters": [
{
"Name": "orderNumber",
"Description": "The order number to look up.",
"Type": "String",
"Fill": "Model",
"Required": true,
"Binding": "Path:orderNumber"
}
]
}
}
},
{
"Source": "sitemap-documentation",
"Name": "orchardcore-docs",
"Description": "Search the Orchard Core framework documentation.",
"Properties": {
"SitemapDocumentationToolSettings": {
"BaseUrl": "https://docs.orchardcore.net"
}
}
},
{
"Source": "website-search",
"Name": "company-blog-search",
"Description": "Search the company blog for product announcements.",
"Properties": {
"WebsiteSearchToolSettings": {
"BaseUrl": "https://www.example.com"
}
}
},
{
"Source": "data-source-search",
"Name": "hr-policies",
"Description": "Search the HR policy knowledge base.",
"Properties": {
"DataSourceSearchToolSettings": {
"DataSourceId": "{{HrPoliciesDataSourceId}}",
"RetrievalMode": "Chunk"
}
}
}
]
}
]
}
Register sources with AddAIToolInstanceSource from a startup gated on the feature. Do not call AddToolInstances(...) yourself; the feature already configures the registry.
using CrestApps.Core.AI;
using CrestApps.Core.AI.Tooling;
using CrestApps.OrchardCore.AI.Core;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Localization;
using OrchardCore.Modules;
namespace MyModule;
[RequireFeatures(AIConstants.Feature.ToolInstances)]
public sealed class WeatherToolStartup : StartupBase
{
internal readonly IStringLocalizer S;
public WeatherToolStartup(IStringLocalizer<WeatherToolStartup> stringLocalizer)
{
S = stringLocalizer;
}
public override void ConfigureServices(IServiceCollection services)
{
services.AddAIToolInstanceSource<WeatherToolInstanceSource>("weather", entry =>
{
entry.DisplayName = S["Weather lookup"];
entry.Description = S["Looks up the forecast for a configured region."];
});
services.AddDisplayDriver<AIToolInstance, WeatherToolInstanceDisplayDriver>();
}
}
WeatherToolInstanceSource implements IAIToolInstanceSource, turning an AIToolInstance into an AITool (use instance.GetFunctionName() for its name). Its DisplayDriver<AIToolInstance> returns null unless instance.Source is weather, binds a view model, and stores settings with instance.Put(...). Place source fields after Content:1, where the shared name and description render.
If the source stores credentials, add an IAIToolInstanceHandler (namespace CrestApps.OrchardCore.AI.Tools.Handlers) whose Exporting(ExportingAIToolInstanceContext context) blanks them in context.ExportData["Properties"], and register it with services.TryAddEnumerable(ServiceDescriptor.Transient<IAIToolInstanceHandler, WeatherToolInstanceExportHandler>()).
Derive from AIToolInstancesDisplayDriverBase<TModel> (CrestApps.OrchardCore.AI.Core.Drivers, package CrestApps.OrchardCore.AI.Core; never reference the AI module project) to add the instance picker to any ExtensibleEntity. Its constructor takes only an IAIToolInstanceAccessor (CrestApps.OrchardCore.AI.Core.Services), which lists the instances the current user may access; the old (ISourceCatalog<AIToolInstance>, IAIToolAccessEvaluator, IHttpContextAccessor) constructor is gone. Override EditorShapeType (default EditToolInstances_Edit), EditorLocation (default Content:7#Capabilities;9), CanHandle, and GetSelectedInstanceNames / SetSelectedInstanceNames (default storage AIToolInstanceMetadata) only when needed, and register the driver from a startup gated on AIConstants.Feature.ToolInstances.
Tool Instances renders through Orchard Core's AdminList shape (list name AIToolInstances). See orchardcore-admin-lists for layout and column extension.
website-search and data-source-search (with AI Data Sources) are new sources, alongside the documentation search sources (sitemap, search index, Algolia DocSearch). Prefer them over pointing http-api-request at a static documentation index, which returns the whole index unfiltered.AdminList shape; whole-row template overrides only apply to the List layout.| Symptom | Check |
|---|---|
| A source is missing from Add tool instance | Its feature is disabled (data source search needs CrestApps.OrchardCore.AI.DataSources). |
| Recipe import fails for an instance | Source is not registered on the target tenant. |
| The model never calls the instance | The description is vague, or the instance is not selected on the profile or interaction. |
| First documentation search is slow | The sitemap or index is crawled on first use; later searches use the cache. |
| A data source search filter is ignored | The index provider cannot filter (Azure AI Search knowledge base indexes declare no filters field). |
What SKILL.md sets; muted values are Claude Code's defaults
/crestapps-orchardcore:orchardcore-ai-tool-instancesfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts./orchardcore-addressesSkill for the CrestApps Orchard Core Addresses module (CrestApps.OrchardCore.Addresses, Addresses.Countries, Addresses.GooglePlaces). Covers the immutable Address value shared by customers, checkout, orders, shipping and taxation, per-country address formats from Google address data with AddAddressesCore, IAddressFormatProvider and AddressFormat, IAddressValidator and AddressProblem, IAddressFormatter, the AddressEditor shape with IAddressEditorService and AddressEditorOptions, CreateAddressEditorAsync and CreateAddressDisplayAsync, ICountryService and managed Country content items, address suggestions through IAddressAutocompleteProvider, ContactInfo, NamedAddress and IShippingAddressBook, the Google Places provider with its protected API key, the address-autocomplete rate-limit group, and the ManageAddressSuggestions permission. Use it when requests mention Orchard Core addresses, international address formats, address validation, a country list, address autocomplete or Google Places./orchardcore-advanced-seoSkill for the CrestApps Orchard Core Advanced SEO module (CrestApps.OrchardCore.Seo), which publishes schema.org structured data as one JSON-LD graph per page and for NLWeb answers. Covers the Schema.org part (SchemaOrgPart, SchemaOrgPartSettings with SchemaType and property mappings from Content, Fixed, Editor or Liquid sources), the StructuredDataSettings site settings and their deployment step, the ManageAdvancedSeoSettings permission, Orchard Core SEO, Search, Products and Reviews integration, the getSchemaOrgOptions, configureContentTypeSchemaOrg and configureSiteStructuredData AI tools, describing pages in code with IPageStructuredData, the structured-data tag helper and the structured_data Liquid filter, and extending with IStructuredDataProvider, ContentPartStructuredDataProvider and SelfDescribingParts. Use this skill when requests mention schema.org, JSON-LD, structured data, rich results, Google required properties, product or article markup, or Advanced SEO in Orchard Core./orchardcore-agentic-commerceSkill for the CrestApps Orchard Core Agentic Commerce module (CrestApps.OrchardCore.AgenticCommerce), which lets AI agents such as Gemini and ChatGPT buy from the store with the Universal Commerce Protocol (UCP), the Agentic Commerce Protocol (ACP) and the AP2 mandates extension (preview). Covers every feature (UCP, account linking, catalog and cart, MCP and A2A bindings, ACP, Agent Product Feeds, AP2), the /.well-known/ucp and /.well-known/acp.json discovery documents, checkout session endpoints, agent platforms and their sign-in, AgenticCommerceSettings, store signing keys in Secrets, idempotency, payment handlers (Stripe shared payment tokens, Google Pay, test credentials), delegated 3-D Secure, embedded checkout, signed order updates, the AgentPlatforms recipe step, and extending with IAgentPaymentHandler, IUcpProfileContributor, IUcpCheckoutExtension and IAgentOrderPublisher. Use it when requests mention agentic commerce, selling through AI agents, UCP, ACP, AP2, agent checkout or agent product feeds./orchardcore-agreementsSkill for the CrestApps Orchard Core Agreements module (CrestApps.OrchardCore.Agreements), support and maintenance contracts with accounts. Covers the Agreement record with its SA- number, status, period and covered hours (a block or a monthly allowance with rounding), Content > Agreements, the account Service tab, the ManageAgreements and ViewAgreements permissions, the Agreements recipe and deployment step, module terms in Properties with IAgreementTermsValidator, IAgreementUsageProvider and IAgreementBalanceService, the hourly lifecycle task with IAgreementObserver, account manager notifications, and the Agreement Usage and Burn-down reports. Use this skill when requests mention service agreements, support contracts, prepaid or retainer hours, entitlements or agreement expiry. Strong matches include Agreement, AgreementHours, AgreementStatus, AgreementBalance, AgreementUsage, IAgreementManager, IAgreementObserver and TicketAgreementTerms.Other plugins' skills for the same job