DocsRuntimetoolsGetHandoffTargetFromToolName
Package: @hexos/runtime

Extracts the target agent ID from a handoff tool name.

Strips the handoff_to_ prefix to recover the original agent ID. Returns null if the tool name is not a handoff tool.

function getHandoffTargetFromToolName(toolName: string): string | null

Parameters

toolName

string