The Tool component currently only works with ToolUIPart. Specifically, the ToolHeader component props is the issue. It looks like it would be trivial to make it's props compatible with both ToolUIPart and DyanmicToolUIPart.
export type ToolHeaderProps = {
title?: string;
type: ToolUIPart["type"]; // `tool-${NAME}`
state: ToolUIPart["state"];
className?: string;
};
Alternatively a dedicated DynamicToolHeader component could work too.