https://developer.android.com/agents/skills/device-ai/appfunctions/skill

Generate Kotlin AppFunctions from Android app user workflows for agent discovery and invocation.

5|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/fornewid/android-developers-changelog --skill https-developer-android-com-agents-skills-device-ai-appfunctions-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: https://developer.android.com/agents/skills/device-ai/appfunctions/skill
Source: https://github.com/fornewid/android-developers-changelog/tree/main/docs/agents/skills/device-ai/appfunctions
Command: npx skills add https://github.com/fornewid/android-developers-changelog --skill https-developer-android-com-agents-skills-device-ai-appfunctions-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you turn an Android app’s useful user workflows into AppFunctions so system agents can discover and execute them on-device without relying on the app UI.

Core Features & Use Cases

  • Workflow Discovery: Analyze your codebase to recommend high-value AppFunctions that improve hands-free, AI-driven task execution.
  • AppFunction Implementation & Configuration: Generate Kotlin AppFunction implementations and the required metadata/config so the system can register and run them.
  • KDoc Refinement for AI: Refine AppFunction documentation so AI agents interpret parameters, constraints, and dependencies correctly.
  • Testing & Debugging with ADB: Provide commands to list registered functions, execute them, and verify enable/disable state for local evaluation.

Use case example: you want an AI assistant to handle “create a note with a title and content” and “send a message via the app” by mapping those workflows into AppFunctions that a system agent can trigger reliably.

Quick Start

Ask the AI to discover, implement, and KDoc-optimize AppFunctions for your app that enable “creating a note” and “playing media” via system agents.

Frequently Asked Questions about https://developer.android.com/agents/skills/device-ai/appfunctions/skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I expose my Android app's workflows as AppFunctions for an AI agent to execute?

To expose Android app workflows as AppFunctions, you map user tasks like creating notes or sending messages into Kotlin code and metadata configurations, allowing a system agent to discover and execute them on-device without relying on the app UI.

What are AppFunctions and when do I need them for on-device automation?

AppFunctions are on-device capabilities that allow system agents to execute app workflows hands-free. You need them when you want an AI assistant to trigger in-app tasks like playing media or creating notes directly, bypassing manual UI interactions.

How do I test and debug AppFunctions locally using ADB?

You test AppFunctions locally using ADB by running commands to list registered functions, execute them, and verify their enable or disable state, ensuring your on-device agent tooling behaves correctly on supported Android devices.

Do I need a specific Android SDK version to implement AppFunctions?

Yes, implementing AppFunctions requires targetSdk 36+ and compileSdk 37+ to support the Jetpack generated Kotlin code and safety constraints needed for system agents to properly discover and invoke your on-device workflows.

How do I write KDoc for AppFunctions so AI agents interpret parameters correctly?

You refine KDoc for AppFunctions by explicitly documenting parameters, constraints, and dependencies, which ensures the AI agent accurately interprets the function requirements and safely executes the on-device Kotlin implementation.

What's the best way to discover high-value workflows to convert into AppFunctions?

The best way to discover high-value workflows is to analyze your Android codebase to identify and recommend user tasks that significantly improve hands-free, AI-driven task execution, then map those specific workflows into Kotlin AppFunction implementations.