Skip to main content
Glama

pfc_capture_plot

Generate and save PFC simulation plot images with customizable visualization settings for balls, walls, and contacts, handling complex plot setup automatically.

Instructions

Capture a PFC plot image. The image is saved to output_path and returned for visual inspection.

ALWAYS use this tool for plot visualization. Do NOT write PFC plot commands manually via pfc_execute_task — the PFC plot command syntax is complex and error-prone. This tool handles all plot setup, camera, coloring, and export internally.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_pathYesAbsolute output path for plot screenshot PNG
sizeNoImage size in pixels [width, height]
include_ballNo
ball_shapeNosphere
ball_color_byNoBall coloring key (string). Examples: velocity, displacement, force-contact, radius, density, group, extra-1. Aliases like force_contact are accepted.
ball_color_by_quantityNomag
include_wallNo
wall_color_byNoWall coloring key (string). Examples: velocity, force-contact, name, group, extra-1.
wall_color_by_quantityNomag
wall_transparencyNo
include_contactNo
contact_color_byNoContact coloring key (string). Examples: force, contact-type, model-name, fric, kn, ks, extra-1.force
contact_color_by_quantityNomag
contact_scale_by_forceNo
centerNo
eyeNo
rollNoCamera roll angle in degrees
magnificationNoZoom factor (1.0 = fit model, >1 = zoom in)
projectionNoperspective
ball_cutNo
wall_cutNo
contact_cutNo
timeoutNoCapture timeout in seconds

Latest Blog Posts

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/yusong652/pfc-mcp'

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