INNER CODE UNIT · Python
upload_file
SamurAIGPT/Seedance-2.5-API · mcp_server.py:185
def upload_file(file_path: str) -> str:
"""Upload a local image or video for use in a generation request."""
return json.dumps(get_api().upload_file(file_path), indent=2)
@mcp.tool()
def get_task_status(request_id: str) -> str:
"""Check the status and output of a generation task."""
return json.dumps(get_api().get_result(request_id), indent=2)
if __name__ == "__main__":
mcp.run()