Unisono.AppFunctions
0.1.0-preview.2
dotnet add package Unisono.AppFunctions --version 0.1.0-preview.2
NuGet\Install-Package Unisono.AppFunctions -Version 0.1.0-preview.2
<PackageReference Include="Unisono.AppFunctions" Version="0.1.0-preview.2" />
<PackageVersion Include="Unisono.AppFunctions" Version="0.1.0-preview.2" />
<PackageReference Include="Unisono.AppFunctions" />
paket add Unisono.AppFunctions --version 0.1.0-preview.2
#r "nuget: Unisono.AppFunctions, 0.1.0-preview.2"
#:package Unisono.AppFunctions@0.1.0-preview.2
#addin nuget:?package=Unisono.AppFunctions&version=0.1.0-preview.2&prerelease
#tool nuget:?package=Unisono.AppFunctions&version=0.1.0-preview.2&prerelease
Unisono.AppFunctions
Android projection for Unisono: the tools in a ToolRegistry become Android
AppFunctions, the surface Gemini and other assistants call on API 36+. One AppFunctionService subclass dispatches
every function to the same C# handlers that serve MCP (and, on Apple platforms, App Intents).
UnisonoAppFunctions.Attach(registry)once at application start.- Subclass
UnisonoAppFunctionServicein the app and declare it in the manifest withandroid.permission.BIND_APP_FUNCTION_SERVICE, theandroid.app.appfunctions.AppFunctionServiceintent action and theandroid.app.appfunctionsproperty pointing at the XML that lists the functions. - Parameters arrive as an AppSearch
GenericDocumentand are converted to the tool's JSON arguments; the result goes back as a document underandroidAppFunctionReturnValue.
Verify on a device or emulator with adb shell cmd app_function list-app-functions and execute-app-function.
Notes: the manifest <property android:name="android.app.appfunctions" android:value="app_functions.xml"/> names an
assets path (API 36 reads only that form); the v1 XML carries function_id and enabled_by_default per function and
no parameter schema, so parameters are read by name at run time. When calling from adb shell, quote the whole
command so the JSON keeps its quotes on the phone. A top-level id key in that JSON becomes the document id, which
GenericDocumentJson passes on to a tool parameter named id. Verified on a Pixel 7 running Android 17.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. |
-
net10.0-android36.0
- Unisono.Core (>= 0.1.0-preview.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.2 | 51 | 11/11/2026 |
First public preview: tool registry, in-app MCP server, and the Siri/Shortcuts bridge for iOS and Mac Catalyst. Full notes: https://github.com/egarim/unisono/blob/main/CHANGELOG.md