get_hours_of_operation | Get the hours of operation for a DevHub location Returns a list of items representing days of the week
Except for the special case formatting, this object is a list of 7 items which represent each day.
Each day can can have one-four time ranges. For example, two time ranges denotes a "lunch-break". No time ranges denotes closed.
Examples:
9am-5pm [["09:00:00", "17:00:00"]]
9am-12pm and 1pm-5pm [["09:00:00", "12:00:00"], ["13:00:00", "17:00:00"]]
Closed - an empty list []
Args:
location_id: DevHub Location ID
hours_type: Defaults to 'primary' unless the user specifies a different type |
get_businesses | Get all businesses within the DevHub account Returns a list of businesses with the following fields:
- id: Business ID that can be used in the other tools
- business_name: Business name
If only one business exists in the account, you can assume that the user wants to use that business for any business_id related tools. |
get_locations | Get all locations for a business Returns a list of locations with the following fields:
- id: Location ID that can be used in the other tools
- location_name: Location name
- location_url: Location URL in DevHub
- street: Street address
- city: City
- state: State
- country: Country
- postal_code: Postal code
- lat: Latitude
- lon: Longitude |
update_hours | Update the hours of operation for a DevHub location Send a list of items representing days of the week
Except for the special case formatting, this object is a list of 7 items which represent each day.
Each day can can have one-four time ranges. For example, two time ranges denotes a "lunch-break". No time ranges denotes closed.
Examples:
9am-5pm [["09:00:00", "17:00:00"]]
9am-12pm and 1pm-5pm [["09:00:00", "12:00:00"], ["13:00:00", "17:00:00"]]
Closed - an empty list []
Args:
location_id: DevHub Location ID
new_hours: Structured format of the new hours
hours_type: Defaults to 'primary' unless the user specifies a different type |
site_from_url | Get the DevHub site ID from a URL. Can prompt the user for the URL instead of passing a site_id.
Returns details about the Site matches the URL that can be used in the other tools.
- Site ID: ID of the DevHub site
- Site URL: URL of the DevHub site
- Site Location IDs: List of location IDs associated with the site
Args:
url: URL of the DevHub site, all lowercase and ends with a slash |
upload_image | Upload an image to the DevHub media gallery Supports webp, jpeg and png images
Args:
base64_image_content: Base 64 encoded content of the image file
filename: Filename including the extension |
get_blog_post | Get a single blog post Args:
post_id: Blog post id |
create_blog_post | Create a new blog post Args:
site_id: Website ID where the post will be published. Prompt the user for this ID.
title: Blog post title
content: HTML content of blog post. Should not include a <h1> tag, only h2+ |
update_blog_post | Update a single blog post Args:
post_id: Blog post ID
title: Blog post title
content: HTML content of blog post. Should not include a <h1> tag, only h2+ |
get_nearest_location | Get the nearest DevHub location Args:
business_id: DevHub Business ID associated with the location. Prompt the user for this ID
latitude: Latitude of the location
longitude: Longitude of the location |