s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Editor Classes
McpResult
chevron_left
Editor Classes
class
McpResult
Methods
functions
WithImage
functions
WithText
Static Methods
functions
Image
functions
Structured
functions
Text
McpResult
The result of an MCP tool call - one or more content blocks the agent reads. Tools can return plain values and get shaped into a single block automatically, but returning one of these gives full control, like pairing a screenshot with a caption.
class
Editor.Mcp
.
sealed
Sandbox.Tools
functions
Methods
2
WithImage
(
bitmap
)
McpResult
Append a png image block.
WithText
(
value
)
McpResult
Append a text block. Anything that isn't a string gets serialized to json.
functions
Static Methods
3
Image
(
bitmap
)
McpResult
A png image block.
Structured
(
value
)
McpResult
A structured content block - the value as json the client binds against the tool's output schema, paired with the same json as text for clients that don't.
Text
(
value
)
McpResult
A text block. Anything that isn't a string gets serialized to json.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.