Call one tool as the caller (AS3)
curl --request POST \
--url https://api.eddy.engineer/v1/tools.call \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"input": {}
}
'import requests
url = "https://api.eddy.engineer/v1/tools.call"
payload = {
"name": "<string>",
"input": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', input: {}})
};
fetch('https://api.eddy.engineer/v1/tools.call', 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://api.eddy.engineer/v1/tools.call",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'input' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/tools.call"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"input\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/tools.call")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"input\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/tools.call")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"input\": {}\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"ok": true,
"result": "<unknown>",
"status": 123
}Meta
Call one tool as the caller (AS3)
Runs the named tool with input (path and query parameters plus the JSON body, as tools.describe shows) in-process AS THE CALLER: the caller’s own credentials ride the call, so their identity, scopes (a scoped caller is refused SCOPE_DENIED for a tool its scopes do not grant, inside result) and credits apply exactly as on a direct call. The reply carries the inner HTTP status, ok, and the result (JSON; text and binary replies are summarised). TL3b: a binary reply (a STEP export, a PDF, a zip; anything neither JSON nor text) is kept as a blob the caller may read, and result is {blob, bytes, content_type, name} (name from the reply’s Content-Disposition, else the operation and the type); a reply over 64 MiB is summarised with a note instead.
POST
/
v1
/
tools.call
Call one tool as the caller (AS3)
curl --request POST \
--url https://api.eddy.engineer/v1/tools.call \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"input": {}
}
'import requests
url = "https://api.eddy.engineer/v1/tools.call"
payload = {
"name": "<string>",
"input": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', input: {}})
};
fetch('https://api.eddy.engineer/v1/tools.call', 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://api.eddy.engineer/v1/tools.call",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'input' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/tools.call"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"input\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/tools.call")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"input\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/tools.call")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"input\": {}\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"ok": true,
"result": "<unknown>",
"status": 123
}