Unisono.AppFunctions 0.1.0-preview.2

This is a prerelease version of Unisono.AppFunctions.
dotnet add package Unisono.AppFunctions --version 0.1.0-preview.2
                    
NuGet\Install-Package Unisono.AppFunctions -Version 0.1.0-preview.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Unisono.AppFunctions" Version="0.1.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Unisono.AppFunctions" Version="0.1.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="Unisono.AppFunctions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Unisono.AppFunctions --version 0.1.0-preview.2
                    
#r "nuget: Unisono.AppFunctions, 0.1.0-preview.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Unisono.AppFunctions@0.1.0-preview.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Unisono.AppFunctions&version=0.1.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Unisono.AppFunctions&version=0.1.0-preview.2&prerelease
                    
Install as a Cake Tool

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 UnisonoAppFunctionService in the app and declare it in the manifest with android.permission.BIND_APP_FUNCTION_SERVICE, the android.app.appfunctions.AppFunctionService intent action and the android.app.appfunctions property pointing at the XML that lists the functions.
  • Parameters arrive as an AppSearch GenericDocument and are converted to the tool's JSON arguments; the result goes back as a document under androidAppFunctionReturnValue.

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 Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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