Database

Configure Flutter native database tools for SQLite discovery, schema inspection, and constrained read-only queries.

final options = createOptionsBuilder()
    .withRemoteTools(
      const AnsightRemoteToolsOptions(
        database: AnsightDatabaseToolsOptions(
          includePlatformRoots: true,
          additionalRoots: <AnsightNativeToolRoot>[
            AnsightNativeToolRoot(alias: 'fixtures', path: '/tmp/app-db'),
          ],
        ),
      ),
    )
    .withReadOnlyToolAccess()
    .build();

The native suite exposes data.list_databases, data.describe_schema, and read-only data.query. Paths are interpreted by the target platform. Database rows may contain sensitive data, so keep roots and tool access narrow.