Skip to content

Design a tool from a request

The asFinger designer turns a request in words, or a picture, into a tool that you can print and simulate: a spoon, a fork, a spatula, a scoop, a hook, or a simple head of your own, on a rod with a phone as the wrist camera. A language model reads the request and says which parts to use and how the tool works. A program shapes the tool from that, builds it and checks it. This page describes the three ways to use the designer, the rules, and the limits.

The feature is a prototype. Check the pictures and the printed part before you use the tool on a robot.

Way For whom Model Needs
The web page A first try, without an installation Your own chat model or agent: you copy the prompt and paste the reply A browser
The command asfinger design Scripts, many designs, pictures from MuJoCo Your own API key, a local model, or a chat window The package asfinger
The plugin Claude, ChatGPT, DeepSeek clients, IDE agents The model of that program The package asfinger[mcp]

All three run the same program with the same rules, and give the same files.

The model does not draw the tool. It writes a brief: one JSON object that picks a carrier, a mount adapter, a camera and a tool head from a catalog, and says how the tool is used.

{
"name": "soup_spoon_ur5e",
"carrier": "ur5e",
"camera": "iphone17pro",
"tool": "spoon",
"params": {"rod_L": 170, "spoon_w": 50, "spoon_depth": 16, "use_flange": 75, "use_attack": 0, "load_N": 2},
"match": "exact",
"summary": "A deep spoon on a 170 mm rod for a UR5e. The bowl is level while the arm holds it.",
"assumptions": ["The request gave no length: 170 mm keeps the bowl clear of the wrist."]
}

The program then does these steps:

  1. It compares the brief with the catalog: the ids, the ranges of the parameters, and the adapter of the carrier.
  2. It writes the brief into a copy of the config hardware/configs/tool_rod.json and solves the frames.
  3. It chooses the values that the brief leaves out. See What the program derives.
  4. It runs the checks and interference rules of the config, among them the rules of the working pose and of strength. It builds the solids, and tests that the print is one body, fits the printer (256 × 256 × 256 mm) and is not too heavy for the arm.
  5. It sends each error back to the model, and the model corrects the brief. The default is four rounds at most.

match is the opinion of the model: exact, approximate (the summary says what differs) or unsupported (nothing is built).

A tool is not only a head on a rod. A spoon must be level when the arm holds it, a turner must meet the pan at a flat angle, and a hook that pulls a drawer needs a thicker rod than a spoon. So the brief says how the tool works, with three numbers:

Parameter Meaning Range
use_flange The angle of the flange axis from straight down, while the tool works. 0 = the flange looks down at the table. 90 = it is level. 0 to 120°
use_attack The angle of the forward axis of the head below the horizontal. 0 = level (a spoon). 15 = a turner. 60 to 90 = a scraper or a rake. −30 to 90°
load_N The force at the tool centre point (TCP), across the rod. 1 N holds about 100 g. 0.5 to 50 N

Each tool head has defaults for these numbers. The working pose is the tool over a level surface, with the TCP on that surface. The frame W_use of the config has its origin at the TCP in this pose, with +Z up.

When the brief leaves these parameters out, the program sets them:

Parameter Rule
head_roll The open side of the head looks up in the working pose.
head_pitch The neck bends so that the head points use_attack below the horizontal. The neck is an arc of radius neck_R, as thick as the rod.
rod_D The thinnest of 10, 12, 15, 18, 20, 22 and 25 mm with which the TCP gives way by at most 2 % of the length of the tool under load_N, and the stress stays under 15 MPa.
distance The distance from the camera to the TCP, between 130 and 320 mm, so that the phone holder can be built.
mount_rot The turn about the flange axis, so that the flange screws can be reached.

If the brief sets distance or mount_rot and the tool cannot be built with that value, the program replaces the value and says so in a warning with the rule program_changed.

Rule What it tests
table_vs_camera In the working pose, the phone and its holder stay at least 10 mm above the surface under the TCP.
table_vs_wrist The same for the base of the tool, the adapters and the wrist of the robot. The wrist is a cylinder with an estimated radius for each arm.
Rod The deflection at the TCP and the bending stress at the base, under load_N. The rod is a round cantilever of printed plastic (E = 2500 MPa).
Tines, blade, hook bar The bending stress at the root of the fork tines, of the spatula blade and of the hook bar, under load_N.
Neck neck_R is at least the rod radius plus 1 mm, so that the bend has no fold.

The numbers of the built tool are in design.json under facts: the size of the print, the mass, the working pose, the bend of the neck, the deflection and its limit, and the values that the program chose.

Open the designer page. It runs the same program in your browser. It has no server: the design stays in the tab, and the page keeps nothing.

  1. Write what the tool is for.
  2. The page calls no model. It shows a prompt: copy it into your own chat model or agent (Claude, ChatGPT, DeepSeek, Kimi and others), and paste the reply into the page. If the reply has an error, the page shows a short message for the same chat. No key and no account are necessary. To use a picture, attach it in the chat next to the prompt.
  3. The page shows each round with its errors, then the result: the summary and the assumptions of the model, the warnings that remain, and the measured numbers.
  4. Look at the tool in 3D, in the working pose over a table or on the flange. Download the STL, the config and the brief.

The page has two more ways to reach a model. Both are off in the published site.

Build variable What the page shows
PUBLIC_DESIGNER_KEY=1 My API key. The visitor selects a provider and enters a model and a key. The key goes from the browser to the provider and to no other place. Some providers do not accept calls from a web page.
PUBLIC_DESIGNER_API=<address> Free trial, without a key. The address is a server that accepts the chat protocol and holds the key. A static site cannot hold a key, so this repository has no such server.
Terminal window
export DEEPSEEK_API_KEY=... # or another provider, see below
uv run asfinger design "a soup spoon for the UR5e, large and deep" -o out/spoon --views
uv run asfinger design "make the tool in this sketch" --image sketch.png -o out/scoop

The command prints the status, the summary, the assumptions of the model, the warnings that remain, and the measured numbers. The output folder contains:

File Content
design.json The status, the brief, the remaining warnings and the measured numbers.
configs/<name>.json, assets/ The design as an ordinary config file. Edit it, build it again with asfinger build, or send it to the Fusion add-in.
print/, meshes/, ipush_tool.xml, preview.html, report.json, resolved.json The same files as asfinger build writes. See Quick start.
views/*.png With --views: the working pose over a table from two sides, the tool on its mount face, and the view of the phone camera. This needs the extra asfinger[views], and MUJOCO_GL=egl on a computer without a display.
designer/state.json The complete conversation with the model.

The exit code is 0 when a tool was built, 1 when it was not, and 2 when the run waits for a reply.

Any server with the OpenAI chat protocol works. The command reads these environment variables:

Variable Meaning
DEEPSEEK_API_KEY, GEMINI_API_KEY, OPENROUTER_API_KEY, GROQ_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY The key of a provider. The first one that is set decides the provider.
ASFINGER_LLM The provider, when more than one key is set: deepseek, gemini, openrouter, groq, openai, ollama, anthropic or manual.
ASFINGER_LLM_MODEL The model id. Only deepseek and anthropic have a default.
ASFINGER_LLM_BASE_URL, ASFINGER_LLM_KEY Another server, for example a local one: http://localhost:11434/v1.

The options --llm, --model and --base-url do the same on the command line. The provider anthropic needs the package anthropic. A request with --image needs a model that reads images.

With --llm manual the command writes the prompt to a file and stops. Give the file to a chat assistant, save its reply, and continue:

Terminal window
uv run asfinger design "a pirate hook for the G1" -o out/hook --llm manual
# paste out/hook/designer/prompt.md into a chat window, save the reply as reply.json
uv run asfinger design -o out/hook --llm manual --reply reply.json

If the reply has an error, the command writes the prompt again with the error at the end, and exits with code 2.

asfinger design --brief brief.json -o out/x builds a brief that you wrote yourself, with the same tests. asfinger design --prompt prints the instructions that the model gets, with the catalog and all parameters.

A program that already runs a language model can use the designer as a tool. Its own model writes the brief, so no API key is necessary. The folder plugin/ of the repository contains the parts:

  • An MCP server, asfinger-mcp, with two tools. design_guide returns the instructions: the catalog, the parameters, the rules and the form of the brief. build_design builds one brief and returns the errors and warnings, the measured numbers, the paths of the files and a sheet of four pictures.
  • A skill, plugin/skills/asfinger-design/SKILL.md, that tells an agent how to use these tools, or the command asfinger design --brief when it has a shell and no MCP.
Terminal window
pip install "asfinger[mcp]"
asfinger-mcp # stdio, for a program on the same computer
asfinger-mcp --http --port 8765 # streamable HTTP, for a program that connects over the network

The server writes every design into <out>/<name of the brief>. <out> is the option --out, the variable ASFINGER_DESIGNS, or ./asfinger-designs.

Program How to add it Good to know
Claude Code (terminal, VS Code, the Code tab of the desktop app) claude plugin install asfinger-designer --marketplace asEmbodiedAISyst/asFinger. Inside a session: /plugin marketplace add asEmbodiedAISyst/asFinger, then /plugin install asfinger-designer@asfinger. The plugin starts the server with uvx, so uv must be on the computer.
Claude Desktop Download asfinger-designer-<version>.mcpb from the release page and open it: double-click it, or drop it on the Claude window. Then choose the folder for the designs. Claude Desktop installs the Python packages with uv.
Claude, under Customize > Plugins Add > Add marketplace, and enter asEmbodiedAISyst/asFinger. Or Add > Upload plugin, with asfinger-designer-plugin-<version>.zip from the release page. The server runs on your computer. It works in Claude Code and in a Cowork session of the desktop app, not in a chat on the web.
ChatGPT Start asfinger-mcp --http --port 8765 on your computer. In ChatGPT open Plugins, select the plus button, then “Add custom MCP server”. Enter the HTTPS address of the server, or select Tunnel. Set the authentication to none. ChatGPT cannot start a program on your computer, so the server must run while you chat. ChatGPT asks before each build_design, because that tool writes files.
DeepSeek The DeepSeek chat has no plugins. Use a DeepSeek model in a program that has them: Claude Code set to the DeepSeek address (guide of DeepSeek) with the plugin of the first row, or an MCP client of the next row. Without any installation, use the web page with the DeepSeek chat.
Cursor, Cline, Cherry Studio and other MCP clients, with any model Add the server of plugin/.mcp.json to the MCP settings of the program.
An agent with a shell and no MCP Give it plugin/skills/asfinger-design/SKILL.md.

The file for Claude Desktop and the steps for ChatGPT follow the documentation of these programs. The server in the file was tested over the protocol, the way Claude Desktop starts it; the installation inside the two programs was not tested yet.

tool Shape Main parameters Default pose and load
ball The round rod with a hemispherical end. (none) Flange down, 5 N
spoon A round bowl: a spherical cap. spoon_w, spoon_depth, spoon_t, spoon_neck Flange at 75°, head level, 2 N
fork A flat plate with 2 to 5 straight tines. fork_n, fork_w, fork_L, fork_tine_w Flange at 75°, head 20° down, 5 N
spatula A flat blade with a bevelled front edge. With spat_wall it has a back wall and two side walls: a scoop. spat_w, spat_L, spat_wall, spat_slots Flange at 75°, head 15° down, 5 N
hook A round bar bent into an arc, with a ball end. It works sideways. hook_R, hook_d, hook_sweep, hook_stem Flange down, 10 N
custom Up to 40 boxes, cylinders and spheres that the model places in the head frame. custom.shapes, custom.tcp Flange at 75°, head level, 5 N

The heads are written in the config language, in the config tool_rod.json: the parameter head picks one, the part tool_head holds the head and the neck, and the frame H_head at the end of the neck carries them. The file is generated: python -m asfinger.designer.heads writes it from iphone17pro_default.json.

A tool without moving parts cannot grasp. What such tools do falls into eight kinds, and the prompt of the designer names them with the head to take for each. The list was not chosen by taste. It follows the functions that datasets of tool affordances label, the actions that studies of everyday hand use count, and the tasks of robot benchmarks.

Kind Head Where the kind comes from
Press, hold down ball; custom with a flat pad Press is the third most frequent of 20 force types in a count of everyday hand actions (Liu et al.). press is an affordance in 3D AffordanceNet. Meta-World has button and handle pressing tasks.
Push, sweep spatula held steep push in 3D AffordanceNet. Push, sweep and slide tasks in Meta-World. Pushing is a primitive of non-prehensile manipulation (Ruggiero et al.).
Hook, pull hook Pull is the fourth most frequent force type (Liu et al.). pull in 3D AffordanceNet. Pull tasks in Meta-World.
Scoop spoon; spatula with walls scoop is one of the five tool functions of the UMD dataset (spoons, scoops, trowels).
Contain, carry a deep spoon; spatula with walls contain in the UMD dataset (bowls, cups, ladles) and in 3D AffordanceNet.
Slide under, support spatula held flat support in the UMD dataset (turners, shovels).
Pound custom pound in the UMD dataset (hammers, mallets). Meta-World has a hammer task.
Wipe, scrape spatula at a middle angle Rub and stroke is the sixth most frequent force type (Liu et al.). Cleaning chores are among the activities that people most want a robot to do (BEHAVIOR-1K).

Cutting is the fifth tool function of the UMD dataset. It needs a sharp edge, so the designer does not make it.

A simple end effector is used in these ways more than a hand is. In home videos of people with a body-powered prosthesis below the elbow, 79 % of what the prosthesis did was non-prehensile; for the intact hand it was 16 to 19 % (Spiers et al.).

These sources show that the kinds are common. None of them ranks tools for robots, and the assignment of a kind to its sources is ours.

  • The tool is one rigid printed part. The designer does not make mechanisms, grippers, springs, soft parts or sharp edges.
  • The tool is printed in one piece, so it is at most about 250 mm long.
  • The shapes are simple. A spoon bowl is a spherical cap, a hook is 14 straight pieces with round joints, and tines are blunt.
  • The strength rules are an estimate: a round cantilever with the load across the rod, and one stress limit for printed plastic. They do not know the print direction, the infill, heat, or a load above 50 N. They do not make a tool safe for food.
  • The wrist radius of each arm in the rule table_vs_wrist is an estimate, not a value from a drawing.
  • A custom head is checked for size, for one body, for collisions and for the strength of the rod. The strength of the head itself and what the head does are not checked.
  • A thick rod can cover the flange screws of a small flange. The error then names what to change: a smaller rod_tilt, a thinner rod (a smaller load or a shorter rod), or another adapter.
  • The tests do not find everything. Read what the tests do not find.
  • A request goes to the provider of the model that you chose. Do not put private data in it.