docs: Clarify symbol_delete limitations (built-in vs custom symbols)

This commit is contained in:
YueGuobin 2026-06-11 01:35:14 +08:00
parent c2aae9529b
commit d0960812aa
No known key found for this signature in database

View File

@ -1101,9 +1101,14 @@ async def symbol_upload(
@mcp.tool()
async def symbol_delete(
symbol_id: Annotated[str, Field(description="Symbol ID to delete")],
symbol_id: Annotated[str, Field(description="Symbol ID to delete (e.g. ':/symbols/my_custom_symbol.svg'). Use symbol_list to get existing IDs.")],
) -> list[dict[str, Any]]:
"""Delete a custom symbol from the server."""
"""Delete a custom symbol from the server.
NOTE: Only custom (user-uploaded) symbols can be deleted.
Built-in symbols (starting with ':/symbols/') will be rejected with 403.
Use symbol_list to see which symbols are available and their IDs.
"""
return await asyncio.to_thread(_run_handler_sync, delete_symbol_handler, {
"symbol_id": symbol_id,
})