> ## Documentation Index
> Fetch the complete documentation index at: https://docs.matrices.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit a client tool result

> Delivers the output or model-visible error for a pending client-executed tool call. A 200 response means the result was durably accepted by the runtime; the turn may consume it asynchronously. Error reasons are shown to the model as tool failure text and are not rewritten by after_tool_result hooks.




## OpenAPI

````yaml /openapi/platform.v1.json post /v1/threads/{threadId}/tool-calls/{toolCallId}/result
openapi: 3.0.3
info:
  description: Public platform API for catalog and proxied data-plane routes.
  title: Matrices Platform API
  version: v1
servers:
  - url: https://api.matrices.com
security: []
tags:
  - description: Authenticated bearer credential context.
    name: auth
    x-group: Auth
  - description: Write-only provider credentials with safe connection metadata.
    name: connections
    x-group: Connections
  - description: Materialized workspace principals and active agent counts.
    name: identities
    x-group: Identities
  - description: Remote MCP server registrations.
    name: toolsets
    x-group: Toolsets
  - description: Named allow-only agent tool permissions.
    name: roles
    x-group: Roles
  - description: Client-executed tool calls.
    name: tools
    x-group: Tools
  - description: Reusable agent behavior profiles.
    name: profiles
    x-group: Profiles
  - description: Workspace-owned agent identities.
    name: agents
    x-group: Agents
  - description: Immutable private image inputs.
    name: images
    x-group: Images
  - description: Public model catalog.
    name: models
    x-group: Models
  - description: Running agent threads.
    name: threads
    x-group: Threads
  - description: Agent schedules.
    name: schedules
    x-group: Schedules
  - description: Workspace append-only feeds.
    name: feeds
    x-group: Feeds
  - description: Agent subscriptions over workspace feeds.
    name: subscriptions
    x-group: Subscriptions
  - description: Agent-private and workspace-shared durable memory notes.
    name: memory
    x-group: Memory
  - description: Thread messages.
    name: messages
    x-group: Messages
  - description: Thread event log data.
    name: events
    x-group: Events
  - description: Runtime hook audit and wait resolution.
    name: hooks
    x-group: Hooks
paths:
  /v1/threads/{threadId}/tool-calls/{toolCallId}/result:
    post:
      tags:
        - tools
      summary: Submit a client tool result
      description: >
        Delivers the output or model-visible error for a pending client-executed
        tool call. A 200 response means the result was durably accepted by the
        runtime; the turn may consume it asynchronously. Error reasons are shown
        to the model as tool failure text and are not rewritten by
        after_tool_result hooks.
      operationId: SubmitToolResult
      parameters:
        - $ref: '#/components/parameters/ThreadID'
        - in: path
          name: toolCallId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolResultRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolResultResponse'
          description: Tool result accepted.
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '503':
          $ref: '#/components/responses/RuntimeUnavailable'
      security:
        - APIKeyBearer: []
components:
  parameters:
    ThreadID:
      in: path
      name: threadId
      required: true
      schema:
        type: string
  schemas:
    ToolResultRequest:
      oneOf:
        - required:
            - output
        - required:
            - error
      properties:
        error:
          $ref: '#/components/schemas/ToolResultError'
        output:
          $ref: '#/components/schemas/JSONValue'
      type: object
    ToolResultResponse:
      properties:
        status:
          enum:
            - resolved
          type: string
        threadId:
          type: string
        toolCallId:
          type: string
        waitId:
          type: string
      required:
        - threadId
        - toolCallId
        - waitId
        - status
      type: object
    ToolResultError:
      properties:
        reason:
          maxLength: 4096
          type: string
      required:
        - reason
      type: object
    JSONValue:
      description: Arbitrary JSON value.
    ErrorResponse:
      properties:
        attemptsRemaining:
          type: integer
        code:
          type: string
        error:
          type: string
        message:
          type: string
        retryAfterSeconds:
          type: integer
      required:
        - error
        - message
      type: object
  responses:
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Invalid request.
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Resource not found.
    Conflict:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Request conflicts with the thread's current state.
    PayloadTooLarge:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Request payload is too large.
    RuntimeUnavailable:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Runtime environment is unavailable or cannot be selected.
  securitySchemes:
    APIKeyBearer:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.