curl --request POST \
--url https://api.example.com/api/presets \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"base_tool": "<string>",
"description": "<string>",
"name": "<string>",
"extensions": [],
"fixed_kwargs": {},
"input_schema": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"output_schema": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"state_binding": {
"states": [
{
"state": "<string>",
"subject_expr": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"input_injections": [
{
"into": "<string>",
"jq": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"template_jq": "<string>"
}
],
"scope_expr": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"templates": [
"<string>"
],
"updates": [
{
"adapter": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"jq": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"op_id": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"template_jq": "<string>"
}
]
}
]
}
}
'import requests
url = "https://api.example.com/api/presets"
payload = {
"base_tool": "<string>",
"description": "<string>",
"name": "<string>",
"extensions": [],
"fixed_kwargs": {},
"input_schema": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"output_schema": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"state_binding": { "states": [
{
"state": "<string>",
"subject_expr": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"input_injections": [
{
"into": "<string>",
"jq": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"template_jq": "<string>"
}
],
"scope_expr": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"templates": ["<string>"],
"updates": [
{
"adapter": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"jq": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"op_id": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"template_jq": "<string>"
}
]
}
] }
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
base_tool: '<string>',
description: '<string>',
name: '<string>',
extensions: [],
fixed_kwargs: {},
input_schema: {content: '<string>', id: '<string>', kwargs: {}},
output_schema: {content: '<string>', id: '<string>', kwargs: {}},
state_binding: {
states: [
{
state: '<string>',
subject_expr: {content: '<string>', id: '<string>', kwargs: {}},
input_injections: [
{
into: '<string>',
jq: {content: '<string>', id: '<string>', kwargs: {}},
template_jq: '<string>'
}
],
scope_expr: {content: '<string>', id: '<string>', kwargs: {}},
templates: ['<string>'],
updates: [
{
adapter: {content: '<string>', id: '<string>', kwargs: {}},
jq: {content: '<string>', id: '<string>', kwargs: {}},
op_id: {content: '<string>', id: '<string>', kwargs: {}},
template_jq: '<string>'
}
]
}
]
}
})
};
fetch('https://api.example.com/api/presets', 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.example.com/api/presets",
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([
'base_tool' => '<string>',
'description' => '<string>',
'name' => '<string>',
'extensions' => [
],
'fixed_kwargs' => [
],
'input_schema' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'output_schema' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'state_binding' => [
'states' => [
[
'state' => '<string>',
'subject_expr' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'input_injections' => [
[
'into' => '<string>',
'jq' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'template_jq' => '<string>'
]
],
'scope_expr' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'templates' => [
'<string>'
],
'updates' => [
[
'adapter' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'jq' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'op_id' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'template_jq' => '<string>'
]
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/presets"
payload := strings.NewReader("{\n \"base_tool\": \"<string>\",\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"extensions\": [],\n \"fixed_kwargs\": {},\n \"input_schema\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"output_schema\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"state_binding\": {\n \"states\": [\n {\n \"state\": \"<string>\",\n \"subject_expr\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"input_injections\": [\n {\n \"into\": \"<string>\",\n \"jq\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"template_jq\": \"<string>\"\n }\n ],\n \"scope_expr\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"templates\": [\n \"<string>\"\n ],\n \"updates\": [\n {\n \"adapter\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"jq\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"op_id\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"template_jq\": \"<string>\"\n }\n ]\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.example.com/api/presets")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"base_tool\": \"<string>\",\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"extensions\": [],\n \"fixed_kwargs\": {},\n \"input_schema\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"output_schema\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"state_binding\": {\n \"states\": [\n {\n \"state\": \"<string>\",\n \"subject_expr\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"input_injections\": [\n {\n \"into\": \"<string>\",\n \"jq\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"template_jq\": \"<string>\"\n }\n ],\n \"scope_expr\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"templates\": [\n \"<string>\"\n ],\n \"updates\": [\n {\n \"adapter\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"jq\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"op_id\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"template_jq\": \"<string>\"\n }\n ]\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/presets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"base_tool\": \"<string>\",\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"extensions\": [],\n \"fixed_kwargs\": {},\n \"input_schema\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"output_schema\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"state_binding\": {\n \"states\": [\n {\n \"state\": \"<string>\",\n \"subject_expr\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"input_injections\": [\n {\n \"into\": \"<string>\",\n \"jq\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"template_jq\": \"<string>\"\n }\n ],\n \"scope_expr\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"templates\": [\n \"<string>\"\n ],\n \"updates\": [\n {\n \"adapter\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"jq\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"op_id\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"template_jq\": \"<string>\"\n }\n ]\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"active_version": 123,
"base_tool": "<string>",
"conflicted": true,
"conflicted_reason": "<string>",
"description": "<string>",
"extensions": [
[
"<string>"
]
],
"fanout": {
"mode": "<string>",
"error": "<string>",
"local_only": true,
"note": "<string>",
"op": "<string>",
"reachable": true,
"results": [
{
"name": "<string>",
"outcome": "<string>",
"detail": "<string>",
"error": "<string>",
"payload": null
}
]
},
"input_schema": {},
"name": "<string>",
"output_schema": {},
"used_by": [
"<string>"
],
"uses": [
"<string>"
]
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "reloading — the server is applying a config reload; retry shortly",
"reloading": true
}Create a preset
Create a preset, ATOMIC: the shared :func:_create_preset_core runs the ordered
name pre-checks, validation, store write THEN register (rolling the row fully back on
a register failure), one list_changed, and the bus rebind fan-out. The response
embeds the per-worker fleet report under fanout.
A preset’s NAME is its identity everywhere — it IS the live tool binding, and every reference keys on it deliberately; there are no surrogate ids.
curl --request POST \
--url https://api.example.com/api/presets \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"base_tool": "<string>",
"description": "<string>",
"name": "<string>",
"extensions": [],
"fixed_kwargs": {},
"input_schema": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"output_schema": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"state_binding": {
"states": [
{
"state": "<string>",
"subject_expr": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"input_injections": [
{
"into": "<string>",
"jq": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"template_jq": "<string>"
}
],
"scope_expr": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"templates": [
"<string>"
],
"updates": [
{
"adapter": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"jq": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"op_id": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"template_jq": "<string>"
}
]
}
]
}
}
'import requests
url = "https://api.example.com/api/presets"
payload = {
"base_tool": "<string>",
"description": "<string>",
"name": "<string>",
"extensions": [],
"fixed_kwargs": {},
"input_schema": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"output_schema": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"state_binding": { "states": [
{
"state": "<string>",
"subject_expr": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"input_injections": [
{
"into": "<string>",
"jq": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"template_jq": "<string>"
}
],
"scope_expr": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"templates": ["<string>"],
"updates": [
{
"adapter": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"jq": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"op_id": {
"content": "<string>",
"id": "<string>",
"kwargs": {}
},
"template_jq": "<string>"
}
]
}
] }
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
base_tool: '<string>',
description: '<string>',
name: '<string>',
extensions: [],
fixed_kwargs: {},
input_schema: {content: '<string>', id: '<string>', kwargs: {}},
output_schema: {content: '<string>', id: '<string>', kwargs: {}},
state_binding: {
states: [
{
state: '<string>',
subject_expr: {content: '<string>', id: '<string>', kwargs: {}},
input_injections: [
{
into: '<string>',
jq: {content: '<string>', id: '<string>', kwargs: {}},
template_jq: '<string>'
}
],
scope_expr: {content: '<string>', id: '<string>', kwargs: {}},
templates: ['<string>'],
updates: [
{
adapter: {content: '<string>', id: '<string>', kwargs: {}},
jq: {content: '<string>', id: '<string>', kwargs: {}},
op_id: {content: '<string>', id: '<string>', kwargs: {}},
template_jq: '<string>'
}
]
}
]
}
})
};
fetch('https://api.example.com/api/presets', 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.example.com/api/presets",
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([
'base_tool' => '<string>',
'description' => '<string>',
'name' => '<string>',
'extensions' => [
],
'fixed_kwargs' => [
],
'input_schema' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'output_schema' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'state_binding' => [
'states' => [
[
'state' => '<string>',
'subject_expr' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'input_injections' => [
[
'into' => '<string>',
'jq' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'template_jq' => '<string>'
]
],
'scope_expr' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'templates' => [
'<string>'
],
'updates' => [
[
'adapter' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'jq' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'op_id' => [
'content' => '<string>',
'id' => '<string>',
'kwargs' => [
]
],
'template_jq' => '<string>'
]
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/presets"
payload := strings.NewReader("{\n \"base_tool\": \"<string>\",\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"extensions\": [],\n \"fixed_kwargs\": {},\n \"input_schema\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"output_schema\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"state_binding\": {\n \"states\": [\n {\n \"state\": \"<string>\",\n \"subject_expr\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"input_injections\": [\n {\n \"into\": \"<string>\",\n \"jq\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"template_jq\": \"<string>\"\n }\n ],\n \"scope_expr\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"templates\": [\n \"<string>\"\n ],\n \"updates\": [\n {\n \"adapter\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"jq\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"op_id\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"template_jq\": \"<string>\"\n }\n ]\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.example.com/api/presets")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"base_tool\": \"<string>\",\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"extensions\": [],\n \"fixed_kwargs\": {},\n \"input_schema\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"output_schema\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"state_binding\": {\n \"states\": [\n {\n \"state\": \"<string>\",\n \"subject_expr\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"input_injections\": [\n {\n \"into\": \"<string>\",\n \"jq\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"template_jq\": \"<string>\"\n }\n ],\n \"scope_expr\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"templates\": [\n \"<string>\"\n ],\n \"updates\": [\n {\n \"adapter\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"jq\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"op_id\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"template_jq\": \"<string>\"\n }\n ]\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/presets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"base_tool\": \"<string>\",\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"extensions\": [],\n \"fixed_kwargs\": {},\n \"input_schema\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"output_schema\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"state_binding\": {\n \"states\": [\n {\n \"state\": \"<string>\",\n \"subject_expr\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"input_injections\": [\n {\n \"into\": \"<string>\",\n \"jq\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"template_jq\": \"<string>\"\n }\n ],\n \"scope_expr\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"templates\": [\n \"<string>\"\n ],\n \"updates\": [\n {\n \"adapter\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"jq\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"op_id\": {\n \"content\": \"<string>\",\n \"id\": \"<string>\",\n \"kwargs\": {}\n },\n \"template_jq\": \"<string>\"\n }\n ]\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"active_version": 123,
"base_tool": "<string>",
"conflicted": true,
"conflicted_reason": "<string>",
"description": "<string>",
"extensions": [
[
"<string>"
]
],
"fanout": {
"mode": "<string>",
"error": "<string>",
"local_only": true,
"note": "<string>",
"op": "<string>",
"reachable": true,
"results": [
{
"name": "<string>",
"outcome": "<string>",
"detail": "<string>",
"error": "<string>",
"payload": null
}
]
},
"input_schema": {},
"name": "<string>",
"output_schema": {},
"used_by": [
"<string>"
],
"uses": [
"<string>"
]
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "reloading — the server is applying a config reload; retry shortly",
"reloading": true
}Authorizations
Body
A preset-creation request. description is the bound tool's LLM-facing
docstring — REQUIRED non-empty on every create. extensions is the list of
extension combos (each element an extension name or a {"name", "config"}
mapping binding author config). output_schema is the optional author-set
OUTPUT JSON Schema (an object schema).
A renderable text: its source plus the parameters its render takes.
EXACTLY ONE source is set — content (the text inline) or id (the id of a
stored resource holding the text); neither and both are refused at construction.
kwargs are the render parameters for the TEXT and apply either way, so moving a
text from inline to stored (or back) leaves its parameters untouched.
- TemplatedText
- Input Schema
Show child attributes
Show child attributes
A renderable text: its source plus the parameters its render takes.
EXACTLY ONE source is set — content (the text inline) or id (the id of a
stored resource holding the text); neither and both are refused at construction.
kwargs are the render parameters for the TEXT and apply either way, so moving a
text from inline to stored (or back) leaves its parameters untouched.
- TemplatedText
- Output Schema
Show child attributes
Show child attributes
The optional binding a door carries: one or more :class:StateAttach entries. Frozen.
The same shape is stored on PresetBody/PresetSeed, TargetConversationConfig,
HookRegister and ScheduleCreate, deposited on ToolInvocation through the
ambient dispatch context, and repeated per node by a flow engine.
Show child attributes
Show child attributes
Response
Success.
A created preset's record with the per-worker rebind fan-out report.
Show child attributes
Show child attributes

