---
title: "Tools and actions | Docs | AI Assistant by R&D Copilot"
description: "Find the tool and the step that produced an output or failed."
canonical: "https://ai.rdcopilot.com/docs/guides/tools-and-actions/"
language: en
updated: 2026-11-22
---

# Tools and actions

Find the tool and the step that produced an output or failed.

The run reads the request from CRM, prices the offer from ERP and sends through CRM after approval. Read `steps` in order and use each step’s `tool`, `status` and optional `output` to trace the run.

curl

```bash
curl "$RDC_BASE_URL/ai/v1/tasks/runs/run-1042" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/ai/v1/tasks/runs/run-1042`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/ai/v1/tasks/runs/run-1042',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/ai/v1/tasks/runs/run-1042');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
    ],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/ai/v1/tasks/runs/run-1042");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 200

```json
{
  "status": "waiting_for_approval",
  "draft": {
    "net": "399.81",
    "lines": [
      {
        "sku": "DT-0412",
        "name": "Dishwashing liquid, 5 l",
        "quantity": "12",
        "unitPrice": "23.47",
        "net": "281.64"
      },
      {
        "sku": "AM-0518",
        "name": "Paper bags, pack of 100",
        "quantity": "9",
        "unitPrice": "13.13",
        "net": "118.17"
      }
    ]
  },
  "revision": 2,
  "steps": [
    {
      "id": "read_request",
      "tool": "CRM",
      "status": "done",
      "output": "CV-1042"
    },
    {
      "id": "price_offer",
      "tool": "ERP",
      "status": "done"
    },
    {
      "id": "send_offer",
      "tool": "CRM",
      "status": "waiting_for_approval"
    }
  ],
  "id": "run-1042"
}
```

For `connector_unavailable`, check connector status before starting another run. For `dispatch_failed`, reconcile the original request and the delivery system before authorizing another send.
