Skip to content
Get Pro

Tool Error

A recoverable connection failure with a clear explanation and compact recovery actions.

Workspace connection lost partway through

Your session expired. Reconnect to continue from where you left off.

Installation

Add the component source directly to your project.

pnpm dlx shadcn@latest add https://pastaui.com/r/tool-error.json

API reference

Tool Error

Tool Error properties
PropTypeDefaultDescription
toolstringNames the tool in the default error summary.
titlestringOverrides the default connection failure summary.
messagestringExplains what happened and what was preserved.
onFix() => voidShows the primary recovery action and handles its selection.
fixLabelstringFix connectionLabels the primary recovery action.
onRetry() => voidShows Retry and handles retrying the failed tool call.
codestringOptional diagnostic error code.
attemptsnumberOptional attempt count.