Skip to main content

Tool Results

All CTP tool functions return a standardized result object.

Result Structure

Success Response

Error Response

Error Codes

Implementation Patterns

Basic Success/Error

With Metadata

With Warnings

Try-Catch Pattern

Async with Timeout

Result Validation

JSON Schema