Skip to content

Referência das ferramentas ​

As ferramentas que o servidor MCP (pbrgen mcp) oferece a um agente. As descrições abaixo são os textos exatos que o agente recebe, por isso ficam em inglês nos dois idiomas deste site.

Toda ferramenta que roda o pipeline resolve os parâmetros como o pbrgen generate: padrões, depois o preset ou material, depois params, depois macros, depois params de novo. Os caminhos são caminhos completos no computador onde o servidor roda.

generate ​

Generate the tileable PBR maps of ONE image (or of a procedural generator) and write them to a folder. From a height map, a photo / albedo or a normal map it makes the final height and derives normal, ambient occlusion, curvature, cavity, roughness and a packed mask map (plus smoothness, threshold mask, tone and slope maps when enabled, and the seamless albedo of a photo). Every map comes from the same final height with wrap-around filters, so the set tiles without seams. Also written: <prefix>_manifest.json (files, sizes, colour spaces), <prefix>_params.json (the exact parameters, itself a preset that reproduces the run) and, for an engine profile, <prefix>_IMPORT_NOTES.md. Same result as the CLI pbrokkr-cli generate and the web app's Export. The parameters are resolved exactly like pbrokkr-cli generate: defaults, then the preset (or material), then params, then macros, then params again. Returns the output folder, the written files by role, the pixel size and any input warnings. Use preview first when you want to look at the result before writing full-size files.

ArgumentoTipoDescrição
inputstringFull path of the source image (PNG, JPG, TGA, TIFF, BMP or WebP; 8 or 16 bit). Leave it out for a procedural run (kind = procedural or a proc_* preset) or when material names a saved material that has its own source image.
kindstring: height, photo, normal, proceduralWhat the input is. height: a grey height map (bright = high), used as it is. photo: a colour photo or albedo, the relief is estimated from it and its seamless version is written as the albedo. normal: a tangent-space normal map, the height is rebuilt from its slopes. procedural: no image, the height is generated (bubbles, ropes, billows). Default: the preset's input_kind (height when no preset).
presetstringStarting point: the name of a bundled preset (see list_presets, e.g. photo_rock, proc_bubbles) or the full path of a preset / <prefix>_params.json file. A preset sets every parameter; params and macros then change it.
materialstringFull path of a material saved in the library (see list_materials). Used as the preset, and its stored source image is the input unless input is given.
paramsobjectParameter overrides by name, with JSON values of the parameter's type, e.g. {"normal_strength": 12, "seam_mode": "periodic", "ao_enabled": false}. See list_params / describe_param for the names, defaults, ranges and what each one affects. Unknown names and out-of-range values are refused.
macrosobjectSimple-mode macros, the same sliders as the web app's simple mode, e.g. {"relief_depth": 1.8, "roughness": -0.4, "seamless": true}. Each one moves several parameters at once (see list_macros). Order: preset, then params, then macros, then params again, so an explicit parameter wins over a macro.
sizeintegerOutput size in pixels (square). 0 or omitted keeps the input size (1024 for a procedural run).
profilestring: standalone, unity_urp, unity_hdrp, unreal, godotEngine export profile: which files are written, how channels are packed and the normal convention. standalone (default) writes one PNG per map; unity_urp, unity_hdrp, unreal and godot write that engine's set plus IMPORT_NOTES.md. See list_profiles.
out_dirstringFull path of the folder to write into (created when missing; existing files with the same names are replaced). Default: <library>/exports/<prefix>, the same folder the web app uses.
prefixstringFile name prefix of the outputs (<prefix>_Height.png, <prefix>_Normal.png, ...). Default: the input file name without its extension, or the generator name for a procedural run.
packstring: generic, bark, leaf, groundAlso write <prefix>.pbrpack: one file (a zip of the manifest and the PNG maps) that AskrGarden imports as a PBR material. The kind chooses the material defaults: generic, bark, leaf (cut-out alpha, two-sided) or ground. Needs PNG heights and not the godot profile.
sheetbooleanAlso write <prefix>_sheet.png, a labelled contact sheet of the main maps.

batch ​

Generate the maps of EVERY image in a folder or matching a glob, with one preset and the same overrides for all of them (the CLI pbrokkr-cli batch). Each image keeps its own file name as prefix, so the outputs never collide in the shared output folder. One bad image does not stop the others. Returns, per input, the written files or the error.

ArgumentoTipoDescrição
inputsstring (obrigatório)Full path of a folder (every image directly inside it), or a glob such as 'D:/textures/*_Albedo.jpg' ('**' matches sub-folders).
out_dirstring (obrigatório)Full path of the folder all the outputs are written into.
presetstringStarting point: the name of a bundled preset (see list_presets, e.g. photo_rock, proc_bubbles) or the full path of a preset / <prefix>_params.json file. A preset sets every parameter; params and macros then change it.
kindstring: height, photo, normal, proceduralWhat the input is. height: a grey height map (bright = high), used as it is. photo: a colour photo or albedo, the relief is estimated from it and its seamless version is written as the albedo. normal: a tangent-space normal map, the height is rebuilt from its slopes. procedural: no image, the height is generated (bubbles, ropes, billows). Default: the preset's input_kind (height when no preset).
paramsobjectParameter overrides by name, with JSON values of the parameter's type, e.g. {"normal_strength": 12, "seam_mode": "periodic", "ao_enabled": false}. See list_params / describe_param for the names, defaults, ranges and what each one affects. Unknown names and out-of-range values are refused.
macrosobjectSimple-mode macros, the same sliders as the web app's simple mode, e.g. {"relief_depth": 1.8, "roughness": -0.4, "seamless": true}. Each one moves several parameters at once (see list_macros). Order: preset, then params, then macros, then params again, so an explicit parameter wins over a macro.
sizeintegerOutput size in pixels (square). 0 or omitted keeps the input size (1024 for a procedural run).
profilestring: standalone, unity_urp, unity_hdrp, unreal, godotEngine export profile: which files are written, how channels are packed and the normal convention. standalone (default) writes one PNG per map; unity_urp, unity_hdrp, unreal and godot write that engine's set plus IMPORT_NOTES.md. See list_profiles.
packstring: generic, bark, leaf, groundAlso write one <prefix>.pbrpack per image (see generate).
sheetbooleanAlso write one contact sheet per image.

preview ​

Run the pipeline at a small size and RETURN AN IMAGE to look at, without writing anything to the output folders (the web app's live preview). Use it to judge parameters before generate: pixel sizes scale with the image, so a 256 or 512 px preview shows the same proportions as the full-size result. view = lit (default) is the surface lit from the upper left, with the albedo of a photo, tiled 2x2 so seams would show; view = sheet is a labelled contact sheet of height, normal, AO, curvature, cavity and roughness; any map name returns that single map. The text part of the result gives the size, the input warnings and min / max / mean of the height. The parameters are resolved exactly like pbrokkr-cli generate: defaults, then the preset (or material), then params, then macros, then params again.

ArgumentoTipoDescrição
inputstringFull path of the source image (PNG, JPG, TGA, TIFF, BMP or WebP; 8 or 16 bit). Leave it out for a procedural run (kind = procedural or a proc_* preset) or when material names a saved material that has its own source image.
kindstring: height, photo, normal, proceduralWhat the input is. height: a grey height map (bright = high), used as it is. photo: a colour photo or albedo, the relief is estimated from it and its seamless version is written as the albedo. normal: a tangent-space normal map, the height is rebuilt from its slopes. procedural: no image, the height is generated (bubbles, ropes, billows). Default: the preset's input_kind (height when no preset).
presetstringStarting point: the name of a bundled preset (see list_presets, e.g. photo_rock, proc_bubbles) or the full path of a preset / <prefix>_params.json file. A preset sets every parameter; params and macros then change it.
materialstringFull path of a material saved in the library (see list_materials). Used as the preset, and its stored source image is the input unless input is given.
paramsobjectParameter overrides by name, with JSON values of the parameter's type, e.g. {"normal_strength": 12, "seam_mode": "periodic", "ao_enabled": false}. See list_params / describe_param for the names, defaults, ranges and what each one affects. Unknown names and out-of-range values are refused.
macrosobjectSimple-mode macros, the same sliders as the web app's simple mode, e.g. {"relief_depth": 1.8, "roughness": -0.4, "seamless": true}. Each one moves several parameters at once (see list_macros). Order: preset, then params, then macros, then params again, so an explicit parameter wins over a macro.
sizeintegerPreview size in pixels, 64..1024 (default 256). Never larger than the input.
viewstring: lit, sheet, height, normal, ao, curvature, cavity, roughness, smoothness, mask, tone, slope, packed, albedoWhat to return: lit (default), sheet, or one map (height, normal, ao, curvature, cavity, roughness, smoothness, mask, tone, slope, packed, albedo). A map that is not enabled or does not exist for this input (albedo needs a photo) is an error that names the available ones.

list_params ​

List the parameters of the pipeline (about 150), each with its type, default, typical range or choices and a one-line description: the CLI pbrokkr-cli params. They are grouped (General, Input, Seam, Photo, Height, Normal, AO, Curvature, Cavity, Roughness, Mask, Pack, Export, Physical, Tone, Slope, Procedural, Texture pack). Filter with group and / or search to keep the answer short, then call describe_param for the full help of the ones you will change. Radii, blurs and the normal strength are defined at reference_size (1024) pixels and scale with the image.

ArgumentoTipoDescrição
groupstring: General, Input, Procedural, Seam, Photo, Physical, Height, Normal, AO, Curvature, Cavity, Roughness, Tone, Slope, Mask, Pack, Export, Texture pack, OtherOnly the parameters of this group.
searchstringOnly parameters whose name or help contains this text (case-insensitive), e.g. 'crevice'.
langstring: en, ptLanguage of the descriptions: en (default) or pt (Brazilian Portuguese).

describe_param ​

The full help of one parameter: what it does, a practical tip, its type, default, typical range or choices, its group and which maps it affects. The same single source as the web app's '?' buttons (pbrgen/params.py and pbrgen/param_help.py).

ArgumentoTipoDescrição
namestring (obrigatório)The parameter name, e.g. normal_strength.
langstring: en, ptLanguage of the help text: en (default) or pt (Brazilian Portuguese).

list_presets ​

List the bundled presets (read-only examples in presets/): name, input kind and its note. A preset is a flat JSON object of parameters; pass its name as preset to generate / preview / batch. proc_* presets need no input image.

Sem argumentos.

get_preset ​

The parameters a preset (bundled name or full path of a JSON file, including a <prefix>_params.json written by an earlier run or a library material) changes from the defaults, and its notes. Use it to see what a starting point does before overriding it.

ArgumentoTipoDescrição
namestring (obrigatório)A bundled preset name or the full path of a preset file.

list_macros ​

List the simple-mode macros (the CLI pbrokkr-cli macros): the eight sliders / switches of the web app's simple mode, each with its type, range and neutral value. A macro moves several parameters together (for example relief_depth scales the normal, AO, cavity and curvature strengths), which is the quickest way to steer a result. Pass them as macros to generate / preview / batch.

Sem argumentos.

list_profiles ​

List the engine export profiles: for each one the files it writes (role, suffix, channel packing, bit depth, colour space) and the normal-map convention it fixes (OpenGL green = +Y for Unity and Godot, DirectX for Unreal). Pass the key as profile to generate / batch.

Sem argumentos.

get_library ​

Where the user's PBrokkR library folder is (default <Documents>/PBrokkR, or the folder given with --library) and its sub-folders: materials/<category>/<name>.json (saved materials), exports/<prefix>/ (exported maps), layouts/, thumbnails/ and .cache/. The web app uses the same folder.

Sem argumentos.

list_materials ​

List the materials saved in the library, by category (a category is a sub-folder of materials/). Each has a name and the full path of its JSON file: pass that path as material to generate / preview to re-open it with its own source image.

Sem argumentos.

save_material ​

Save a set of parameters as a material in the library: <library>/materials/<category>/<name>.json, with a copy of the source image beside it and a 256 px thumbnail, exactly what the web app's 'Save material' writes. The material then shows in the web app's Library panel and can be re-opened with material. Nothing is exported: call generate for the maps. The parameters are resolved exactly like pbrokkr-cli generate: defaults, then the preset (or material), then params, then macros, then params again.

ArgumentoTipoDescrição
inputstringFull path of the source image (PNG, JPG, TGA, TIFF, BMP or WebP; 8 or 16 bit). Leave it out for a procedural run (kind = procedural or a proc_* preset) or when material names a saved material that has its own source image.
kindstring: height, photo, normal, proceduralWhat the input is. height: a grey height map (bright = high), used as it is. photo: a colour photo or albedo, the relief is estimated from it and its seamless version is written as the albedo. normal: a tangent-space normal map, the height is rebuilt from its slopes. procedural: no image, the height is generated (bubbles, ropes, billows). Default: the preset's input_kind (height when no preset).
presetstringStarting point: the name of a bundled preset (see list_presets, e.g. photo_rock, proc_bubbles) or the full path of a preset / <prefix>_params.json file. A preset sets every parameter; params and macros then change it.
materialstringFull path of a material saved in the library (see list_materials). Used as the preset, and its stored source image is the input unless input is given.
paramsobjectParameter overrides by name, with JSON values of the parameter's type, e.g. {"normal_strength": 12, "seam_mode": "periodic", "ao_enabled": false}. See list_params / describe_param for the names, defaults, ranges and what each one affects. Unknown names and out-of-range values are refused.
macrosobjectSimple-mode macros, the same sliders as the web app's simple mode, e.g. {"relief_depth": 1.8, "roughness": -0.4, "seamless": true}. Each one moves several parameters at once (see list_macros). Order: preset, then params, then macros, then params again, so an explicit parameter wins over a macro.
namestring (obrigatório)Material name (also its file name; letters, digits, spaces, '-', '_' and '.').
categorystringCategory = folder inside materials/, created when missing. Free text; the usual ones are rock, ground, sand, bark, wood, foliage, metal, fabric, water, foam, procedural. Empty = no category.
overwritebooleanReplace a material of the same name in that category. Default false: an existing one is an error.