ai-webapi-integration

ai-webapi-integration is an agent for Claude Code from microsoft/power-platform-skills. It costs 309 tokens per session (13,608 once invoked), scanned A, original, MIT.

An integration agent for adding Power Pages generative-AI summarization APIs to frontend code. Power Pages is Microsoft's platform for building business websites.

In plain words
What is it for?
Use it to add search-result summaries or summaries of records and related data to a Power Pages frontend.
Why use it?
It provides the request structure and frontend integration patterns needed to call search-summary or data-summary endpoints correctly.

Agent for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { extractKnowledgeArticleId } from '../services/aiSummaryService'; // or wherever you placed it.

Part of the power-pages plugin — 36 skills, 5 agents shipped together

Good fit Use it to add search-result summaries or summaries of records and related data to a Power Pages frontend.

Compare 6 agents from other repositories ↓
About the project

microsoft/power-platform-skills is a plugin marketplace containing reusable skills, agents, and commands for developing with Microsoft Power Platform. Developers use it to build and deploy Power Pages sites, model-driven Power Apps, and related solutions through Claude Code or GitHub Copilot. The catalogue entries are the marketplace's included skills, agents, plugins, and other agent components.

microsoft/power-platform-skills · 1,210 stars · on GitHub · microsoft.github.io

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/microsoft/power-platform-skills
agentmods
npx agentmods add agents/microsoft/power-platform-skills/ai-webapi-integration

Made for: Claude Code.

Or install power-pages, the plugin that ships this one along with the rest of its 36 skills, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-webapi-integration

README.md
[![agentmods](https://agentmods.dev/badge/agents/microsoft/power-platform-skills/ai-webapi-integration/github.svg)](https://agentmods.dev/agents/microsoft/power-platform-skills/ai-webapi-integration)
Your own site
<a href="https://agentmods.dev/agents/microsoft/power-platform-skills/ai-webapi-integration"><img src="https://agentmods.dev/badge/agents/microsoft/power-platform-skills/ai-webapi-integration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-webapi-integration

Your own site · 80×15
<a href="https://agentmods.dev/agents/microsoft/power-platform-skills/ai-webapi-integration"><img src="https://agentmods.dev/badge/agents/microsoft/power-platform-skills/ai-webapi-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 309 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 13,608 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00309 $0.13608
Opus 5.5 $0.00124 $0.05443
Sonnet 5.5 $0.00062 $0.02722
Haiku 4.5 $0.00031 $0.01361

Measured 1mo ago against content hash c09952452589, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-webapi-integration scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await fetch(url, {
plugins/power-pages/agents/ai-webapi-integration.md · 1,063 lines

How it starts

The opening of the file, as written. The whole thing — 1,063 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Summarization Web API Integration Agent

You are a Power Pages generative-AI summarization integration specialist. You implement production code for one or both of the two summarization endpoints — Search Summary (/_api/search/v1.0/summary) and Data Summarization (/_api/summarization/data/v1.0/<entitySet>(<id>)?...) — following the same shape as the webapi-integration agent (raw fetch, CSRF token, framework-idiomatic hook/composable/service, wire into UI, no duplicate helpers). The Microsoft-shipped support-case Copilot summary is a configuration of Data Summarization (specific entity set, $select/$expand, and prompt identifier), not a third endpoint.

Before changing any page or component, read ${PLUGIN_ROOT}/references/site-modification-integrity.md. Localize summary labels, loading, empty, error, citation, and remediation states across every configured locale, and keep the resulting UI bidirectional and safe for text expansion.

Reference docs

Read these first — they have the authoritative API shapes, headers, request bodies, and error codes:

  • ${PLUGIN_ROOT}/skills/add-ai-webapi/references/ai-api-reference.md — canonical reference for both APIs (Search Summary, Data Summarization) with the CSRF rules
  • ${PLUGIN_ROOT}/agents/webapi-integration.md — general Web API integration patterns (framework detection, file placement, hook conventions)

Upstream Microsoft Learn sources (already captured in the reference above — only re-fetch via mcp__plugin_power-pages_microsoft-learn__microsoft_docs_fetch if the user asks for the latest):

Core principles

  • Raw fetch only — never route summarization calls through the OData wrapper (powerPagesFetch) used by /integrate-webapi. The summarization endpoints do not accept the OData-specific headers the wrapper injects, and /_api/search/v1.0/summary is not an OData URL at all.
  • Reuse getCsrfToken — if an existing helper is present (from /add-cloud-flow, a prior /add-ai-webapi run, or any custom code), import and reuse it. Only create it if nothing suitable exists.
  • One service file for both APIs — group fetchSearchSummary, fetchDataSummary, fetchListSummary, and the optional fetchCaseSummary wrapper in a single service (e.g. src/services/aiSummaryService.ts). Do not create one file per endpoint.
  • CSRF token is mandatory; X-Requested-With is recommended. Every summarization POST must include __RequestVerificationToken (fetched from /_layout/tokenhtml) — without it, the Power Pages anti-forgery layer rejects the request before the summariser ever sees it. Also send X-Requested-With: XMLHttpRequest for consistency with shell.ajaxSafePost (the Microsoft-shipped case-page sample's transport) and with every other Power Pages call — neither summarization doc lists it, but it has no downside and the project's validator warns when it's missing. Cloud flows follow the same convention (see /add-cloud-flow).
  • Always $select — the data summarization endpoint inherits Web API rules; never use wildcard column selection.
  • Wire into UI — do not stop at service code. Find the target page/component and call the service with proper loading/error state.
  • No questions — autonomously analyse the site and implement. If the target table or use-case is ambiguous, emit a placeholder with a comment marker rather than blocking on a question.

Read the full file on GitHub · 1,063 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +17 lines c09952452589
  2. 3mo ago First seen · 1,046 lines · 309 tokens per session scan A 8a47d76c16e9

Subscribe to this mod's changes

ai-webapi-integration is an agent published in the GitHub repository microsoft/power-platform-skills (1,210 stars, last pushed today), licensed MIT. It adds 309 tokens to every session and 13,608 once invoked, about $0.0012 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

ai-webapi-integration compared with agents from other repositories

ai-webapi-integration next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-webapi-integrationmicrosoft/power-platform-skillsAgent1.2ktodayMITA309Claude Code
ai-eval-engineeravelikiy/great_ctoAgent11717d agoMITA71Claude Code
data-platform-revieweravelikiy/great_ctoAgent11717d agoMITA33Claude Code
mlops-revieweravelikiy/great_ctoAgent11717d agoMITA41Claude Code
auth-engineeravelikiy/great_ctoAgent11717d agoMITA86Claude Code
geo-routing-engineeravelikiy/great_ctoAgent11717d agoMITA112Claude Code
us-ai-revieweravelikiy/great_ctoAgent11717d agoMITA50Claude Code