M365 Declarative Agent Debugging Skill
M365 Declarative Agent Debugging Skill
Debug non-functional M365 Copilot declarative agents.
⚠️ Staleness Warning
M365 Copilot and Teams platform APIs are in rapid evolution. Schema versions, capabilities, and tooling change frequently.
Refresh triggers:
- New declarativeAgent schema versions
- Teams Toolkit updates
- New M365 Copilot capabilities
- Developer Portal changes
Last validated: February 2026 (Schema v1.6+)
Check current state: Declarative Agent Schema, Teams Toolkit
Schema Version Validation
Critical: Schema versions and their capabilities:
| Version | Status | Key Additions |
|---|---|---|
| v1.0 | Original baseline | Core capabilities |
| v1.2 | Stable | WebSearch sites, GraphicArt, CodeInterpreter |
| v1.5 | Extended | TeamsMessages, Email, People |
| v1.6 | LATEST | Dataverse, Meetings, EmbeddedKnowledge, worker_agents |
v1.3 and v1.4 DO NOT EXIST — unrecognized schema makes entire document invalid.
Capability Compatibility
| Capability | v1.2 | v1.5 | v1.6 |
|---|---|---|---|
| OneDriveAndSharePoint | ✅ | ✅ | ✅ |
| WebSearch | ✅ | ✅ | ✅ |
| GraphicArt | ✅ | ✅ | ✅ |
| CodeInterpreter | ✅ | ✅ | ✅ |
| GraphConnectors | ✅ | ✅ | ✅ |
| TeamsMessages | ❌ | ✅ | ✅ |
| ❌ | ✅ | ✅ | |
| People | ❌ | ✅ | ✅ |
| Meetings | ❌ | ❌ | ✅ |
| Dataverse | ❌ | ❌ | ✅ |
| EmbeddedKnowledge | ❌ | ❌ | ✅ (not yet available) |
| ScenarioModels | ❌ | ❌ | ✅ |
Lesson: v1.5/v1.6 capabilities with v1.2 schema = silent failure.
Manifest Limits (v1.6)
| Property | Limit |
|---|---|
name |
100 characters |
description |
1,000 characters |
instructions |
8,000 characters |
conversation_starters |
6 items max (was 12 in v1.2) |
actions |
1-10 items |
WebSearch.sites |
4 items |
TeamsMessages.urls |
5 items |
Meetings.items_by_id |
5 items |
Icon Requirements
color.png: 192×192px, solid background, logo in center 120×120 safe zone
outline.png: 32×32px, white only (#FFFFFF), transparent background (Alpha=0)
Common error:
Error: Outline icon is not transparent. Alpha,R,G,B: 255,X,X,X
Alpha=255 means opaque. Background pixels must be Alpha=0.
Debugging Workflow
-
Validate:
teamsapp validate --package-file <zip>(must pass all checks) -
Check schema:
- ✅
.../declarative-agent/v1.2/schema.json - ❌
.../declarative-agent/v1.3/schema.json(doesn't exist)
- ✅
-
Verify capabilities match schema version
-
Test icon transparency:
Add-Type -AssemblyName System.Drawing
$bmp = New-Object System.Drawing.Bitmap("outline.png")
$pixel = $bmp.GetPixel(0, 0)
$bmp.Dispose()
"Alpha: $($pixel.A)" # Should be 0
Package Checklist
-
manifest.json— Teams app manifest (v1.19) -
declarativeAgent.json— Agent config (v1.2) -
color.png— 192×192 solid -
outline.png— 32×32 white on transparent
Symptom → Cause
| Symptom | Likely Cause |
|---|---|
| Agent not responding | Invalid schema version |
| Only 1 conversation starter | Schema validation failed |
| Validation errors on icon | Wrong transparency/size |
Memory via OneDrive
Agent reads from OneDrive using OneDriveAndSharePoint capability:
- User creates
Alex-Memory/folder in OneDrive - User shares folder link in chat
- Agent reads cognitive files from shared folder
- For writes: Alex generates content → user pastes
Benefits: No Azure Functions, no API costs, user controls data.
Deployment Flow
npx teamsapp package --env local
npx teamsapp validate --package-file appPackage/build/*.zip
# Upload to Developer Portal → Preview in Teams
Synapses
See synapses.json for connections.
More from fabioc-aloha/windowswidget
prompt engineering skill
Craft effective prompts that get the best results from language models.
3text-to-speech
Alex's voice synthesis capability for reading documents aloud
1socratic questioning skill
Help users discover answers, don't just deliver them.
1academic research skill
Patterns for thesis writing, dissertations, research papers, literature reviews, and scholarly work.
1work-life balance skill
Detect burnout signals and proactively support sustainable productivity.
1grant writing skill
Translate research vision into funded reality.
1