# Class Tool (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

    Tool(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A tool represents an action that the CES agent can take to
achieve certain goals.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `client_function` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.ClientFunction` Optional. The client function. This field is a member of `oneof`_ `tool_type`. |
| `open_api_tool` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.OpenApiTool` Optional. The open API tool. This field is a member of `oneof`_ `tool_type`. |
| `google_search_tool` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.GoogleSearchTool` Optional. The google search tool. This field is a member of `oneof`_ `tool_type`. |
| `connector_tool` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.ConnectorTool` Optional. The Integration Connector tool. This field is a member of `oneof`_ `tool_type`. |
| `data_store_tool` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.DataStoreTool` Optional. The data store tool. This field is a member of `oneof`_ `tool_type`. |
| `python_function` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.PythonFunction` Optional. The python function tool. This field is a member of `oneof`_ `tool_type`. |
| `mcp_tool` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.McpTool` Optional. The MCP tool. An MCP tool cannot be created or updated directly and is managed by the MCP toolset. This field is a member of `oneof`_ `tool_type`. |
| `file_search_tool` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.FileSearchTool` Optional. The file search tool. This field is a member of `oneof`_ `tool_type`. |
| `system_tool` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.SystemTool` Optional. The system tool. This field is a member of `oneof`_ `tool_type`. |
| `agent_tool` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.AgentTool` Optional. The agent tool. This field is a member of `oneof`_ `tool_type`. |
| `widget_tool` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.WidgetTool` Optional. The widget tool. This field is a member of `oneof`_ `tool_type`. |
| `remote_agent_tool` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.RemoteAgentTool` Optional. The remote agent tool. This field is a member of `oneof`_ `tool_type`. |
| `name` | `str` Identifier. The resource name of the tool. Format: - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for standalone tools. - `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for tools retrieved from a toolset. These tools are dynamic and output-only; they cannot be referenced directly where a tool is expected. |
| `display_name` | `str` Output only. The display name of the tool, derived based on the tool's type. For example, display name of a `ClientFunction][Tool.ClientFunction]` is derived from its `name` property. |
| `execution_type` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.ExecutionType` Optional. The execution type of the tool. |
| `timeout` | `google.protobuf.duration_pb2.Duration` Optional. The timeout for the tool execution. If not set, the default timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for `ASYNCHRONOUS` tools. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Timestamp when the tool was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Timestamp when the tool was last updated. |
| `etag` | `str` Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes. |
| `generated_summary` | `str` Output only. If the tool is generated by the LLM assistant, this field contains a descriptive summary of the generation. |
| `tool_fake_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.ToolFakeConfig` Optional. Configuration for tool behavior in fake mode. |