Write one object to a configured alias or explicitly named existing bucket.
curl --request POST \
--url https://mcp.sagescreen.net/tools/write_spaces_object \
--header 'Content-Type: application/json' \
--header 'X-Service-Token: <api-key>' \
--data '
{
"name": "<string>",
"content_base64": "<string>",
"alias": "<string>",
"bucket": "<string>",
"prefix": "<string>",
"content_type": "<string>"
}
'import requests
url = "https://mcp.sagescreen.net/tools/write_spaces_object"
payload = {
"name": "<string>",
"content_base64": "<string>",
"alias": "<string>",
"bucket": "<string>",
"prefix": "<string>",
"content_type": "<string>"
}
headers = {
"X-Service-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Service-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
content_base64: '<string>',
alias: '<string>',
bucket: '<string>',
prefix: '<string>',
content_type: '<string>'
})
};
fetch('https://mcp.sagescreen.net/tools/write_spaces_object', 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://mcp.sagescreen.net/tools/write_spaces_object",
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>',
'content_base64' => '<string>',
'alias' => '<string>',
'bucket' => '<string>',
'prefix' => '<string>',
'content_type' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Service-Token: <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://mcp.sagescreen.net/tools/write_spaces_object"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"alias\": \"<string>\",\n \"bucket\": \"<string>\",\n \"prefix\": \"<string>\",\n \"content_type\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Service-Token", "<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://mcp.sagescreen.net/tools/write_spaces_object")
.header("X-Service-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"alias\": \"<string>\",\n \"bucket\": \"<string>\",\n \"prefix\": \"<string>\",\n \"content_type\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.sagescreen.net/tools/write_spaces_object")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Service-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"alias\": \"<string>\",\n \"bucket\": \"<string>\",\n \"prefix\": \"<string>\",\n \"content_type\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"detail": "<string>"
}{
"error": "Unauthorized"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Other
Write one object to a configured alias or explicitly named existing bucket.
Write one object to a configured alias or explicitly named existing bucket.
This tool never lists or creates buckets. bucket is accepted only when
the caller supplies its exact name. Writing an existing key replaces it.
POST
/
tools
/
write_spaces_object
Write one object to a configured alias or explicitly named existing bucket.
curl --request POST \
--url https://mcp.sagescreen.net/tools/write_spaces_object \
--header 'Content-Type: application/json' \
--header 'X-Service-Token: <api-key>' \
--data '
{
"name": "<string>",
"content_base64": "<string>",
"alias": "<string>",
"bucket": "<string>",
"prefix": "<string>",
"content_type": "<string>"
}
'import requests
url = "https://mcp.sagescreen.net/tools/write_spaces_object"
payload = {
"name": "<string>",
"content_base64": "<string>",
"alias": "<string>",
"bucket": "<string>",
"prefix": "<string>",
"content_type": "<string>"
}
headers = {
"X-Service-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Service-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
content_base64: '<string>',
alias: '<string>',
bucket: '<string>',
prefix: '<string>',
content_type: '<string>'
})
};
fetch('https://mcp.sagescreen.net/tools/write_spaces_object', 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://mcp.sagescreen.net/tools/write_spaces_object",
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>',
'content_base64' => '<string>',
'alias' => '<string>',
'bucket' => '<string>',
'prefix' => '<string>',
'content_type' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Service-Token: <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://mcp.sagescreen.net/tools/write_spaces_object"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"alias\": \"<string>\",\n \"bucket\": \"<string>\",\n \"prefix\": \"<string>\",\n \"content_type\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Service-Token", "<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://mcp.sagescreen.net/tools/write_spaces_object")
.header("X-Service-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"alias\": \"<string>\",\n \"bucket\": \"<string>\",\n \"prefix\": \"<string>\",\n \"content_type\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.sagescreen.net/tools/write_spaces_object")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Service-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"alias\": \"<string>\",\n \"bucket\": \"<string>\",\n \"prefix\": \"<string>\",\n \"content_type\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"detail": "<string>"
}{
"error": "Unauthorized"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Authorizations
serviceTokentokenQuery
Body
application/json
Response
Tool result. The shape is tool-specific; most tools return a JSON object, some a {"result": ...} envelope.
The response is of type object.