Skip to content
Prompty

HostToolResult

Result returned by a host tool executor.

---
title: HostToolResult
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class HostToolResult {
        +string requestId
        +string toolCallId
        +string toolName
        +boolean success
        +unknown result
        +int32 exitCode
        +float64 durationMs
        +string errorKind
        +dictionary telemetry
    }
requestId: exec_abc123
toolCallId: call_abc123
toolName: powershell
success: true
exitCode: 0
durationMs: 250
errorKind: timeout
Name Type Description
requestId string Stable host execution request identifier
toolCallId string Associated model tool call identifier, when available
toolName string Name of the host tool that executed
success boolean Whether the host execution completed successfully
result unknown Host-normalized execution result
exitCode int32 Process or host exit code, when applicable
durationMs float64 Tool execution duration in milliseconds
errorKind string Machine-readable error category when success is false
telemetry dictionary Host-specific telemetry for the execution