# Class ExecuteToolRequest (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

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

Request message for
ToolService.ExecuteTool.

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** |
| `tool` | `str` Optional. The name of the tool to execute. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool} This field is a member of `oneof`_ `tool_identifier`. |
| `toolset_tool` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.ToolsetTool` Optional. The toolset tool to execute. Only one tool should match the predicate from the toolset. Otherwise, an error will be returned. This field is a member of `oneof`_ `tool_identifier`. |
| `variables` | `google.protobuf.struct_pb2.Struct` Optional. The variables that are available for the tool execution. This field is a member of `oneof`_ `tool_execution_context`. |
| `context` | `google.protobuf.struct_pb2.Struct` Optional. The \[ToolCallContext\](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment for details) to be passed to the Python tool. This field is a member of `oneof`_ `tool_execution_context`. |
| `parent` | `str` Required. The resource name of the app which the tool/toolset belongs to. Format: `projects/{project}/locations/{location}/apps/{app}` |
| `args` | `google.protobuf.struct_pb2.Struct` Optional. The input parameters and values for the tool in JSON object format. |
| `mock_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.MockConfig` Optional. Mock configuration for the tool execution. If this field is set, tools that call other tools will be mocked based on the provided patterns and responses. |