Preview Connector Tools
curl --request GET \
--url https://tavusapi.com/v2/connectors/{connector_id}/preview \
--header 'x-api-key: <api-key>'import requests
url = "https://tavusapi.com/v2/connectors/{connector_id}/preview"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://tavusapi.com/v2/connectors/{connector_id}/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tavusapi.com/v2/connectors/{connector_id}/preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://tavusapi.com/v2/connectors/{connector_id}/preview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tavusapi.com/v2/connectors/{connector_id}/preview")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tavusapi.com/v2/connectors/{connector_id}/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"tools": [
{
"name": "search_messages",
"description": "Search messages across channels.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string"
}
}
}
},
{
"name": "post_message",
"description": "Post a message to a channel."
}
],
"selected_tool_names": [
"<string>"
]
}Connectors
Preview Connector Tools
The tools the server currently exposes, without importing anything. Use it to show a picker before scoping a PAL down with layers.mcp.connector_tools.
GET
/
v2
/
connectors
/
{connector_id}
/
preview
Preview Connector Tools
curl --request GET \
--url https://tavusapi.com/v2/connectors/{connector_id}/preview \
--header 'x-api-key: <api-key>'import requests
url = "https://tavusapi.com/v2/connectors/{connector_id}/preview"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://tavusapi.com/v2/connectors/{connector_id}/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tavusapi.com/v2/connectors/{connector_id}/preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://tavusapi.com/v2/connectors/{connector_id}/preview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tavusapi.com/v2/connectors/{connector_id}/preview")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tavusapi.com/v2/connectors/{connector_id}/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"tools": [
{
"name": "search_messages",
"description": "Search messages across channels.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string"
}
}
}
},
{
"name": "post_message",
"description": "Post a message to a channel."
}
],
"selected_tool_names": [
"<string>"
]
}Authorizations
Path Parameters
Example:
"c8-58ea0f6420b2"
Response
Tool list returned
The server's own tools/list response, untouched. Each entry's name is what you list in a PAL's layers.mcp.connector_tools to scope that connector down.
Show child attributes
Show child attributes
Example:
[
{
"name": "search_messages",
"description": "Search messages across channels.",
"inputSchema": {
"type": "object",
"properties": { "query": { "type": "string" } }
}
},
{
"name": "post_message",
"description": "Post a message to a channel."
}
]
Always null on connectors created today. A connector-level selection left over from the removed tool importer; tool scoping is a per-PAL decision, so use layers.mcp.connector_tools.

