control_space
Control Space
Control a Space's lifecycle: pause, restart, or change hardware. Use this to manage running Spaces.
control_space
Control a Space's lifecycle: pause, restart, or change hardware. Use this to manage running Spaces.
run_inference
Run generic inference on any Hugging Face model. Supports a wide range of tasks: summarization, classification, NER, translation, embeddings, image classification, and more. Pass task-specific inputs and parameters.
create_discussion
Create a new discussion or pull request on a Hugging Face repository. Use this for opening conversations, requesting changes, or proposing contributions.
search_datasets
Search for datasets on Hugging Face Hub. Filter by keyword, author, and tags. Results include dataset metadata such as downloads and likes.
create_collection
Create a new collection to curate related models, datasets, and Spaces.
manage_space_secrets
Add or delete secrets on a Space. Secrets are encrypted environment variables available at runtime.
get_discussion
Get detailed information about a specific discussion or pull request, including all comments and events.
list_discussions
List discussions and pull requests on a Hugging Face repository. Returns summaries including title, status, and whether each item is a PR.
get_user_info
Get information about the authenticated user, including username, email, organizations, and account details.
create_repository
Create a new model, dataset, or Space repository on Hugging Face Hub. Supports setting visibility, SDK type (for Spaces), and license.
delete_repository
Permanently delete a model, dataset, or Space repository from Hugging Face Hub. This action is irreversible.
upload_file
Upload or update a text file in a Hugging Face repository. Creates a commit with the file content.
remove_collection_item
Remove an item from a collection.
update_repository_visibility
Change a repository's visibility between public and private.
list_repo_files
List files and directories in a Hugging Face repository at a given path and revision. Returns file metadata including type, size, and OID.
get_collection
Retrieve a Hugging Face collection by its slug. Returns the collection's title, description, and all items (models, datasets, spaces) it contains.
search_spaces
Search for Spaces (ML application demos) on Hugging Face Hub. Filter by keyword, author, and tags. Results include Space metadata such as SDK type and likes.
manage_space_variables
Add or delete environment variables on a Space. Variables are public configuration values available at runtime.
add_collection_item
Add a model, dataset, or space to an existing collection with an optional note.
get_space_runtime
Get runtime information for a Space, including hardware, stage, SDK, and storage details.
get_file_content
Read the text content of a file in a Hugging Face repository. Best suited for text files such as config files, model cards, and code.
text_generation
Generate text using a model on the Hugging Face Inference API. Provide a prompt and receive generated text continuation.
chat_completion
Run a chat completion using a model on the Hugging Face Inference API. Follows the OpenAI-compatible chat completions format. Supports conversation history with system, user, and assistant messages.
delete_file
Delete a file from a Hugging Face repository. Creates a commit that removes the specified file.
update_discussion_status
Open or close a discussion or pull request. Optionally merge a pull request instead of just closing it.
comment_on_discussion
Post a comment on an existing discussion or pull request.
get_repository_info
Get detailed information about a model, dataset, or Space repository on Hugging Face Hub. Returns metadata including tags, downloads, likes, pipeline task, and configuration.
delete_collection
Delete a collection. This does not delete the items within the collection, only the collection grouping itself.
search_models
Search for machine learning models on Hugging Face Hub. Filter by keyword, author, library framework, pipeline task, and tags. Results include model metadata such as downloads, likes, and pipeline task.
Manage machine learning model, dataset, and Spaces repositories on Hugging Face Hub. Create, update, delete, and configure Git-based repositories with version control, branching, tagging, and pull requests. Upload and download model files and datasets. Run model inference for tasks like text generation, image generation, summarization, embeddings, and classification via serverless or dedicated endpoints. Search and discover models, datasets, and Spaces by author, task, language, or tags. Create and manage Spaces for hosting ML-powered application demos. Participate in community discussions, open pull requests, and post comments on repositories. Organize related items into collections. Manage organizations and access control. Listen for repository, discussion, and comment events via webhooks.
Common questions about connecting Hugging Face to AI agents with Metorial.