> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct Tool Execution Context

> Per-call context supplied to a tool execution intercept.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker`.

```rust
pub struct ToolExecutionContext { /* private fields */ }
```

Per-call context supplied to a tool execution intercept.

`tool_call_id` is the provider-issued correlation identifier recorded on the managed tool call, and is `None` when the call did not record one.

## Implementations

### `impl ToolExecutionContext`

<pre />

#### `tool_name`

<pre />

Returns the tool name associated with the execution.

#### `args`

<pre />

Returns the JSON argument payload entering this intercept.

#### `into_args`

<pre />

Consumes the context and returns its JSON argument payload.

#### `tool_call_id`

<pre />

Returns the provider-issued tool-call correlation identifier.

## Trait Implementations

### `impl Clone for ToolExecutionContext`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for ToolExecutionContext`

<pre />

#### `fmt`

<pre />