Files
google__adk-docs/docs/tools/google-cloud/spanner.md
Joe Fernandez 90ef1a65dc Reorganize Built-In tools, Cloud, and Gemini tools pages (#1085)
* Reorg third-party tools pages (#1084)

* respond to review comments

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2025-12-19 09:59:23 -08:00

966 B

Spanner database tool for ADK

Supported in ADKPython v1.11.0

These are a set of tools aimed to provide integration with Spanner, namely:

  • list_table_names: Fetches table names present in a GCP Spanner database.
  • list_table_indexes: Fetches table indexes present in a GCP Spanner database.
  • list_table_index_columns: Fetches table index columns present in a GCP Spanner database.
  • list_named_schemas: Fetches named schema for a Spanner database.
  • get_table_schema: Fetches Spanner database table schema and metadata information.
  • execute_sql: Runs a SQL query in Spanner database and fetch the result.
  • similarity_search: Similarity search in Spanner using a text query.

They are packaged in the toolset SpannerToolset.

--8<-- "examples/python/snippets/tools/built-in-tools/spanner.py"