Skip to main content
Glama

PlayCanvas Editor MCP Server

Official
by playcanvas

set_material_diffuse

Assign RGB color values to the diffuse property of a material in PlayCanvas Editor by specifying an asset ID and a color array.

Instructions

Set diffuse property on a material

Input Schema

NameRequiredDescriptionDefault
assetIdYesAn asset ID.
colorYesA 3-channel RGB color

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "assetId": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "An asset ID." }, "color": { "description": "A 3-channel RGB color", "items": [ { "description": "Red", "maximum": 1, "minimum": 0, "type": "number" }, { "description": "Green", "maximum": 1, "minimum": 0, "type": "number" }, { "description": "Blue", "maximum": 1, "minimum": 0, "type": "number" } ], "maxItems": 3, "minItems": 3, "type": "array" } }, "required": [ "assetId", "color" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/playcanvas/editor-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server