get_flutter_performance_overlay
Display Flutter rendering performance overlay to analyze UI frame rates, identify rendering bottlenecks, and optimize app performance during development.
Instructions
Get Flutter rendering performance info
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package_name": "<package_name>"
},
"name": "get_flutter_performance_overlay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | ||
| device_serial | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/adb_mcp_server/server.py:1013-1022 (handler)The main handler function for the 'get_flutter_performance_overlay' tool, registered via @mcp.tool() decorator. It executes ADB command to dump Flutter gfxinfo framestats for the given package on the specified device.
@mcp.tool() def get_flutter_performance_overlay( package_name: str, device_serial: str | None = None ) -> str: """Get Flutter rendering performance info""" output = run_adb([ "shell", "dumpsys", "gfxinfo", package_name, "framestats" ], device_serial) return output - src/adb_mcp_server/server.py:1013-1013 (registration)The @mcp.tool() decorator registers the get_flutter_performance_overlay function as an MCP tool.
@mcp.tool()