Skip to content

McpOutputContext ​

Type
Final Class
Namespace
craft\mcp
Inherits
craft\mcp\McpOutputContext
Since
5.12.1

McpOutputContext describes the context a field value is being returned in by MCP tools.

  • public is whether the value is being returned by the public MCP server.
  • requested is whether the field was explicitly requested via the fields argument, rather than included because all fields were requested.

View source

Public Properties ​

PropertyDescription
public
requested

public ​

Default value
false

View source

requested ​

Default value
false

View source

Public Methods ​

MethodDescription
__construct()Constructor.

__construct() ​

Constructor.

View source

Arguments ​