curl --request POST \
--url https://mcp.sagescreen.net/tools/upload_spaces_object \
--header 'Content-Type: application/json' \
--header 'X-Service-Token: <api-key>' \
--data '
{
"filename": "<string>",
"content_base64": "<string>",
"source_url": "<string>",
"source_key": "<string>",
"app": "<string>",
"alias": "uploads",
"content_type": "<string>",
"source_alias": "<string>",
"source_bucket": "<string>"
}
'import requests
url = "https://mcp.sagescreen.net/tools/upload_spaces_object"
payload = {
"filename": "<string>",
"content_base64": "<string>",
"source_url": "<string>",
"source_key": "<string>",
"app": "<string>",
"alias": "uploads",
"content_type": "<string>",
"source_alias": "<string>",
"source_bucket": "<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({
filename: '<string>',
content_base64: '<string>',
source_url: '<string>',
source_key: '<string>',
app: '<string>',
alias: 'uploads',
content_type: '<string>',
source_alias: '<string>',
source_bucket: '<string>'
})
};
fetch('https://mcp.sagescreen.net/tools/upload_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/upload_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([
'filename' => '<string>',
'content_base64' => '<string>',
'source_url' => '<string>',
'source_key' => '<string>',
'app' => '<string>',
'alias' => 'uploads',
'content_type' => '<string>',
'source_alias' => '<string>',
'source_bucket' => '<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/upload_spaces_object"
payload := strings.NewReader("{\n \"filename\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"source_url\": \"<string>\",\n \"source_key\": \"<string>\",\n \"app\": \"<string>\",\n \"alias\": \"uploads\",\n \"content_type\": \"<string>\",\n \"source_alias\": \"<string>\",\n \"source_bucket\": \"<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/upload_spaces_object")
.header("X-Service-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filename\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"source_url\": \"<string>\",\n \"source_key\": \"<string>\",\n \"app\": \"<string>\",\n \"alias\": \"uploads\",\n \"content_type\": \"<string>\",\n \"source_alias\": \"<string>\",\n \"source_bucket\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.sagescreen.net/tools/upload_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 \"filename\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"source_url\": \"<string>\",\n \"source_key\": \"<string>\",\n \"app\": \"<string>\",\n \"alias\": \"uploads\",\n \"content_type\": \"<string>\",\n \"source_alias\": \"<string>\",\n \"source_bucket\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"detail": "<string>"
}{
"error": "Unauthorized"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Upload an artifact to DO Spaces and return its durable CDN URL + key.
Upload an artifact to DO Spaces and return its durable CDN URL + key.
Stores the object under <app>/YYYY/MM/<filename> (date derived
server-side) in a dedicated artifact bucket, then returns a public CDN link.
Use this whenever an agent produces a file — an image, diagram, rendered
doc, export — that needs a real URL to attach to a ticket, post, or message.
Provide the content exactly one of three ways:
content_base64: raw bytes, base64-encoded.source_url: an http(s) URL the server fetches (size-capped, SSRF-guarded).source_key: the key of an object already in Spaces to copy into the dated path (optionally withsource_alias/source_bucket).
Args: filename: desired filename (sanitized; extension drives content-type). app: optional namespace segment for the path (default “shared”). alias: write target — “uploads” (default) or “artifacts”. content_type: optional MIME override; otherwise guessed from the filename.
On a name collision in the same prefix, an incrementing zero-padded suffix is appended before the extension (report.png → report-001.png) so existing objects are never clobbered. Returns JSON: .
curl --request POST \
--url https://mcp.sagescreen.net/tools/upload_spaces_object \
--header 'Content-Type: application/json' \
--header 'X-Service-Token: <api-key>' \
--data '
{
"filename": "<string>",
"content_base64": "<string>",
"source_url": "<string>",
"source_key": "<string>",
"app": "<string>",
"alias": "uploads",
"content_type": "<string>",
"source_alias": "<string>",
"source_bucket": "<string>"
}
'import requests
url = "https://mcp.sagescreen.net/tools/upload_spaces_object"
payload = {
"filename": "<string>",
"content_base64": "<string>",
"source_url": "<string>",
"source_key": "<string>",
"app": "<string>",
"alias": "uploads",
"content_type": "<string>",
"source_alias": "<string>",
"source_bucket": "<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({
filename: '<string>',
content_base64: '<string>',
source_url: '<string>',
source_key: '<string>',
app: '<string>',
alias: 'uploads',
content_type: '<string>',
source_alias: '<string>',
source_bucket: '<string>'
})
};
fetch('https://mcp.sagescreen.net/tools/upload_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/upload_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([
'filename' => '<string>',
'content_base64' => '<string>',
'source_url' => '<string>',
'source_key' => '<string>',
'app' => '<string>',
'alias' => 'uploads',
'content_type' => '<string>',
'source_alias' => '<string>',
'source_bucket' => '<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/upload_spaces_object"
payload := strings.NewReader("{\n \"filename\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"source_url\": \"<string>\",\n \"source_key\": \"<string>\",\n \"app\": \"<string>\",\n \"alias\": \"uploads\",\n \"content_type\": \"<string>\",\n \"source_alias\": \"<string>\",\n \"source_bucket\": \"<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/upload_spaces_object")
.header("X-Service-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filename\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"source_url\": \"<string>\",\n \"source_key\": \"<string>\",\n \"app\": \"<string>\",\n \"alias\": \"uploads\",\n \"content_type\": \"<string>\",\n \"source_alias\": \"<string>\",\n \"source_bucket\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.sagescreen.net/tools/upload_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 \"filename\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"source_url\": \"<string>\",\n \"source_key\": \"<string>\",\n \"app\": \"<string>\",\n \"alias\": \"uploads\",\n \"content_type\": \"<string>\",\n \"source_alias\": \"<string>\",\n \"source_bucket\": \"<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
Body
Response
Tool result. The shape is tool-specific; most tools return a JSON object, some a {"result": ...} envelope.
The response is of type object.