Skip to content

box_metadata_template_get_by_key_tool doesn't work #20

@yaiki2514

Description

@yaiki2514

It seems to get the metadata template by 'NAME'. This should be by key.

async def box_metadata_template_get_by_key_tool(
    ctx: Context, template_name: str
) -> dict:
    """
    Retrieve a metadata template by its key.

    Args:
        ctx (Context): The context object containing the request and lifespan context.
        template_key (str): The key of the metadata template to retrieve.

    Returns:
        dict: The metadata template associated with the provided key.
    """
    box_client = get_box_client(ctx)
    return box_metadata_template_get_by_key(box_client, template_name <- this one)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions