Content
Less than 1 minute
Content
A content block in a tool result.
interface Content extends \JsonSerializableExtends: JsonSerializable
Tools that return a string or array get their content block built for them; implement or return these only when a tool needs to say something the automatic mapping cannot, such as returning an image.
Methods
jsonSerialize
Returns the content block as it appears on the wire.
public jsonSerialize(): arrayReturns: array
Generated by Hazaar API Doc Generator on Sun, 23 Aug 2026 10:49:44 +0000