Android 17 pushes mobile apps toward a more agentic shape. Instead of treating every app as a touchscreen surface that an assistant must poke through, App Functions let apps expose specific capabilities as typed, documented tools.
That difference matters.
UI automation asks an agent to behave like a very patient user: find a button, tap it, wait for a screen, type into a field, hope the layout did not change. App Functions give the agent a safer contract: here is a function, here are the parameters, here is what it returns, and here is the permission boundary.
In agentic terms, App Functions turn mobile apps into local tool providers.
The Story: A Notes App Becomes A Tool
Imagine a user asks Gemini:
Summarize my meeting notes from today and create follow-up tasks.Without App Functions, the assistant might need to open the notes app, search visually, inspect note contents, switch to a task app, and enter tasks through the UI. That is fragile.
With App Functions, the notes app can expose capabilities like:
searchNotes(query, limit)
getNote(noteId)
createTask(title, dueDate, sourceNoteId)
linkTaskToNote(taskId, noteId)Now the agent workflow becomes explicit:
User intent
-> discover available app functions
-> call searchNotes("today meeting")
-> call getNote(noteId)
-> extract action items
-> call createTask(...)
-> call linkTaskToNote(...)
-> report outcomeThe assistant still reasons, but the app controls the execution surface.
App Functions As Mobile-Native Agent Skills
On the web and server side, agent systems often expose tools through APIs, MCP servers, or skill registries. Android App Functions bring the same pattern onto the device.
The app contributes local capabilities. Android provides the registry and execution boundary. A trusted system agent can discover the functions and invoke them on behalf of the user.
That makes App Functions feel like mobile-native agent skills:
| Agent concept | Android App Functions equivalent |
|---|---|
| Tool registry | Android platform function registry |
| Skill definition | Annotated app function |
| Tool schema | Function signature and metadata |
| Tool description | KDoc / function documentation |
| Local execution | App-owned implementation |
| Governance boundary | Platform and app permission model |
The app is not giving the agent full control. It is exposing narrow doors into app-owned behavior.
Why UI Automation Is The Wrong Abstraction
UI automation is tempting because every app already has a UI. But it has structural problems:
- UI layouts change.
- Buttons may be hidden behind state.
- Accessibility labels may be incomplete.
- The agent may click the wrong control.
- It is hard to know what permission was actually granted.
- It is hard to audit intent versus execution.
Typed functions are a cleaner boundary. A function like createTask(title, dueDate, sourceNoteId) is easier to validate, log, test, and explain than a sequence of taps across multiple screens.
The goal is not to remove UI. The goal is to stop using UI as the only machine interface.
A Minimal Notes App Example
The Jetpack AppFunctions SDK lets an app expose callable functions with annotations and documentation. A simplified notes app might look like this:
class NoteFunctions(
private val noteRepository: NoteRepository,
private val taskRepository: TaskRepository
) {
/**
* Searches the user's notes for matching content.
*
* @param appFunctionContext The execution context for this function call.
* @param query The search text supplied by the agent.
* @param limit The maximum number of matching notes to return.
*/
@AppFunction(isDescribedByKDoc = true)
suspend fun searchNotes(
appFunctionContext: AppFunctionContext,
query: String,
limit: Int = 5
): List<NoteSummary> {
return noteRepository.search(query, limit)
}
/**
* Creates a follow-up task from a note.
*
* @param appFunctionContext The execution context for this function call.
* @param title The task title to create.
* @param dueDate The optional due date in ISO-8601 format.
* @param sourceNoteId The note that produced this task.
*/
@AppFunction(isDescribedByKDoc = true)
suspend fun createTask(
appFunctionContext: AppFunctionContext,
title: String,
dueDate: String?,
sourceNoteId: String?
): Task {
return taskRepository.create(title, dueDate, sourceNoteId)
}
}The KDoc matters because the function description becomes part of the tool-calling surface. Good documentation helps the agent choose the right function and supply better parameters.
Discovery And Execution
At runtime, the system agent does not need to guess what the app can do. It can discover structured metadata and decide whether a user request maps to one or more functions.
{
"function": "createTask",
"description": "Creates a follow-up task from a note.",
"parameters": {
"title": "Send revised API proposal",
"dueDate": "2026-08-21",
"sourceNoteId": "note_meeting_184"
}
}That metadata is what turns the app into an agent-capable surface. The assistant can reason over the user's request, select a function, pass typed inputs, and receive structured results.
Local-First Agent Execution
The most interesting part is locality.
Many agent tools are remote APIs. App Functions are device-local. That means an agent can work with app state without copying everything to a cloud service first.
Local execution has several advantages:
- App data stays under app/platform control.
- Functions can use the app's existing repositories and permissions.
- The agent does not need credentials for every backend directly.
- Offline or low-connectivity workflows become more plausible.
- The app can enforce its own invariants before returning a result.
This is the same direction as local MCP and WebMCP: tools are moving closer to where the user's context already lives.
Permission Boundaries
Exposing functions does not mean exposing everything.
A well-designed App Function should be narrow:
Good:
createTask(title, dueDate, sourceNoteId)
Risky:
executeArbitraryAction(actionJson)
writeAnyAppData(tableName, rawPayload)
exportAllUserData(destination)The function should encode the safe operation, not a generic escape hatch. If the agent needs broader access, that is usually a sign the app should define more specific functions.
Approval UX Still Matters
Some functions are low risk. Searching notes may not need a user prompt every time. Creating tasks might be acceptable if the user directly asked for it. Sending a message, deleting data, sharing files, or posting externally should require explicit approval.
An approval request should include:
{
"action": "createTask",
"app": "Notes",
"risk": "low",
"scope": {
"sourceNoteId": "note_meeting_184",
"createdItems": 3
},
"expiresInSeconds": 300,
"auditTraceId": "trc_android_af_392"
}The important design principle is scope. Approving one task-creation workflow should not grant the agent ongoing broad write access to the app.
Observability For App Functions
If App Functions become a real execution path, they need traces.
Each function call should be observable:
{
"trace_id": "trc_android_af_392",
"event_type": "app_function.called",
"app": "Notes",
"function": "createTask",
"caller": "system_agent",
"parent_intent": "Summarize meeting notes and create follow-up tasks",
"risk": "low",
"status": "success",
"duration_ms": 42
}This gives developers and users a way to answer the basic questions: what did the agent call, why did it call it, what data did it touch, and what happened?
How This Relates To MCP
MCP gives agents a standard way to discover and call external tools. App Functions apply a similar idea to Android apps.
The mental model is:
MCP server on desktop/server:
exposes tools to an agent host
WebMCP:
exposes browser/page capabilities to agents
Android App Functions:
expose app-local capabilities to trusted system agentsThe common pattern is the same: do not make agents infer everything through screens. Give them typed capabilities with descriptions, inputs, outputs, policies, and logs.
Developer Checklist
If you are preparing an Android app for App Functions, start here:
- Identify workflows users already ask assistants to do.
- Prefer narrow functions over generic commands.
- Use clear KDoc for intent, parameters, and return values.
- Keep blocking work off the main thread.
- Return structured data instead of display-only text.
- Add app-level validation before executing side effects.
- Log function calls with trace IDs.
- Require approval for destructive or external actions.
- Test with simulated agent calls, not only manual UI flows.
The best App Functions are boring in the right way: typed, predictable, validated, and easy to explain.
Conclusion
Android 17 App Functions are important because they move mobile agents away from brittle UI control and toward explicit app capabilities.
That is the architecture shift: apps become tool providers, Android becomes the local registry, and trusted assistants become orchestrators that can complete workflows on behalf of the user.
For agentic systems, this is exactly the direction the platform should move: less guessing, more contracts; fewer hidden taps, more typed calls; less magic, more observable execution.
Related Research
Agent Skills: From Monolithic Tools to Atomic Capabilities
Shifting the paradigm from 'Function Calling' to 'Skill Registries.' How to build agents that discover and master capabilities dynamically.
Agentic AIWebMCP: Bridging Model Context Protocol (MCP) and Browser Runtimes
How the latest W3C WebMCP specification transforms web pages into browser-native tool providers via document.modelContext, AbortSignal lifecycles, and Declarative HTML Form attributes.
Agentic AIHow Autonomous Agents Work: The Runtime Loop Behind Agentic AI
A practical walkthrough of the intent, planning, tool use, observation, policy, approval, memory, and outcome loop that powers autonomous agents.
Agentic AIDesigning Approval UX for Autonomous Agents
Autonomous agents need approval surfaces that explain risk, scope, expiration, evidence, and rollback before a human grants permission.
